Can't compile lxpanel

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Can't compile lxpanel

Walter Hurry
I'm running 10.0-CORRENT on amd64. Ports and source are both up to date.

When I try to compile x11/lxpanel I get this:
------------------------------------------
gmake[4]: Entering directory `/usr/ports/x11/lxpanel/work/lxpanel-0.5.12/
src/plugins/volume'
  CC       volume_la-volume.lo
volume.c:193:20: error: non-void function 'on_button_press' should return
a value [-Wreturn-type]
                        if (! vol_spin) return;
                                        ^
volume.c:196:26: error: non-void function 'on_button_press' should return
a value [-Wreturn-type]
                        if (! vol_adjustment) return;
                                              ^
volume.c:217:19: error: non-void function 'on_button_press' should return
a value [-Wreturn-type]
                if (! vol_spin) return;
                                ^
volume.c:220:25: error: non-void function 'on_button_press' should return
a value [-Wreturn-type]
                if (! vol_adjustment) return;
                                      ^
volume.c:286:21: error: non-void function 'volume_constructor' should
return a value [-Wreturn-type]
    if (! vol_spin) return;
                    ^
volume.c:289:27: error: non-void function 'volume_constructor' should
return a value [-Wreturn-type]
    if (! vol_adjustment) return;
                          ^
volume.c:309:5: warning: use of GNU old-style field designator extension
[-Wgnu-designator]
    PLUGINCLASS_VERSIONING,
    ^
../../../src/plugin.h:35:5: note: expanded from macro
'PLUGINCLASS_VERSIONING'
    structure_size : sizeof(PluginClass), \
    ^
volume.c:309:5: warning: use of GNU old-style field designator extension
[-Wgnu-designator]
../../../src/plugin.h:36:5: note: expanded from macro
'PLUGINCLASS_VERSIONING'
    structure_version : PLUGINCLASS_VERSION
    ^
volume.c:311:5: warning: use of GNU old-style field designator extension
[-Wgnu-designator]
    type : "volume",
    ^~~~~~
    .type =
volume.c:312:5: warning: use of GNU old-style field designator extension
[-Wgnu-designator]
    name : N_("Volume Control"),
    ^~~~~~
    .name =
volume.c:313:5: warning: use of GNU old-style field designator extension
[-Wgnu-designator]
    version: "1.0",
    ^~~~~~~~
    .version =
volume.c:314:5: warning: use of GNU old-style field designator extension
[-Wgnu-designator]
    description : "Display and control volume",
    ^~~~~~~~~~~~~
    .description =
volume.c:316:5: warning: use of GNU old-style field designator extension
[-Wgnu-designator]
    constructor : volume_constructor,
    ^~~~~~~~~~~~~
    .constructor =
volume.c:317:5: warning: use of GNU old-style field designator extension
[-Wgnu-designator]
    destructor  : volume_destructor,
    ^~~~~~~~~~~~~
    .destructor =
volume.c:318:5: warning: use of GNU old-style field designator extension
[-Wgnu-designator]
    config : NULL,
    ^~~~~~~~
    .config =
volume.c:319:5: warning: use of GNU old-style field designator extension
[-Wgnu-designator]
    save : NULL
    ^~~~~~
    .save =
10 warnings and 6 errors generated.
gmake[4]: *** [volume_la-volume.lo] Error 1
gmake[4]: Leaving directory `/usr/ports/x11/lxpanel/work/lxpanel-0.5.12/
src/plugins/volume'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/usr/ports/x11/lxpanel/work/lxpanel-0.5.12/
src/plugins'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/ports/x11/lxpanel/work/lxpanel-0.5.12/
src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/x11/lxpanel/work/lxpanel-0.5.12'
gmake: *** [all] Error 2
*** Error code 1

Stop.
make: stopped in /usr/ports/x11/lxpanel
*** Error code 1

Stop.
make: stopped in /usr/ports/x11/lxpanel
------------------------------------------
Is there anything I can do?

_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: Can't compile lxpanel

alan somers-3
Looks like a bug upstream.  If this port worked in FreeBSD-9, then the
difference might be the switch from gcc to clang.  You could try
compiling the port with gcc.  Just add these lines to /etc/make.conf

CC=gcc
CXX=g++
CPP=gcpp

Note: that will change the compiler used for ALL ports, as well as
kernel and world.  To selectively change the compiler for just a few
ports, you can follow the examples here:
http://www.freebsd.org/doc/en/articles/custom-gcc/article.html

On Wed, Jun 5, 2013 at 5:54 PM, Walter Hurry <[hidden email]> wrote:

> I'm running 10.0-CORRENT on amd64. Ports and source are both up to date.
>
> When I try to compile x11/lxpanel I get this:
> ------------------------------------------
> gmake[4]: Entering directory `/usr/ports/x11/lxpanel/work/lxpanel-0.5.12/
> src/plugins/volume'
>   CC       volume_la-volume.lo
> volume.c:193:20: error: non-void function 'on_button_press' should return
> a value [-Wreturn-type]
>                         if (! vol_spin) return;
>                                         ^
> volume.c:196:26: error: non-void function 'on_button_press' should return
> a value [-Wreturn-type]
>                         if (! vol_adjustment) return;
>                                               ^
> volume.c:217:19: error: non-void function 'on_button_press' should return
> a value [-Wreturn-type]
>                 if (! vol_spin) return;
>                                 ^
> volume.c:220:25: error: non-void function 'on_button_press' should return
> a value [-Wreturn-type]
>                 if (! vol_adjustment) return;
>                                       ^
> volume.c:286:21: error: non-void function 'volume_constructor' should
> return a value [-Wreturn-type]
>     if (! vol_spin) return;
>                     ^
> volume.c:289:27: error: non-void function 'volume_constructor' should
> return a value [-Wreturn-type]
>     if (! vol_adjustment) return;
>                           ^
> volume.c:309:5: warning: use of GNU old-style field designator extension
> [-Wgnu-designator]
>     PLUGINCLASS_VERSIONING,
>     ^
> ../../../src/plugin.h:35:5: note: expanded from macro
> 'PLUGINCLASS_VERSIONING'
>     structure_size : sizeof(PluginClass), \
>     ^
> volume.c:309:5: warning: use of GNU old-style field designator extension
> [-Wgnu-designator]
> ../../../src/plugin.h:36:5: note: expanded from macro
> 'PLUGINCLASS_VERSIONING'
>     structure_version : PLUGINCLASS_VERSION
>     ^
> volume.c:311:5: warning: use of GNU old-style field designator extension
> [-Wgnu-designator]
>     type : "volume",
>     ^~~~~~
>     .type =
> volume.c:312:5: warning: use of GNU old-style field designator extension
> [-Wgnu-designator]
>     name : N_("Volume Control"),
>     ^~~~~~
>     .name =
> volume.c:313:5: warning: use of GNU old-style field designator extension
> [-Wgnu-designator]
>     version: "1.0",
>     ^~~~~~~~
>     .version =
> volume.c:314:5: warning: use of GNU old-style field designator extension
> [-Wgnu-designator]
>     description : "Display and control volume",
>     ^~~~~~~~~~~~~
>     .description =
> volume.c:316:5: warning: use of GNU old-style field designator extension
> [-Wgnu-designator]
>     constructor : volume_constructor,
>     ^~~~~~~~~~~~~
>     .constructor =
> volume.c:317:5: warning: use of GNU old-style field designator extension
> [-Wgnu-designator]
>     destructor  : volume_destructor,
>     ^~~~~~~~~~~~~
>     .destructor =
> volume.c:318:5: warning: use of GNU old-style field designator extension
> [-Wgnu-designator]
>     config : NULL,
>     ^~~~~~~~
>     .config =
> volume.c:319:5: warning: use of GNU old-style field designator extension
> [-Wgnu-designator]
>     save : NULL
>     ^~~~~~
>     .save =
> 10 warnings and 6 errors generated.
> gmake[4]: *** [volume_la-volume.lo] Error 1
> gmake[4]: Leaving directory `/usr/ports/x11/lxpanel/work/lxpanel-0.5.12/
> src/plugins/volume'
> gmake[3]: *** [all-recursive] Error 1
> gmake[3]: Leaving directory `/usr/ports/x11/lxpanel/work/lxpanel-0.5.12/
> src/plugins'
> gmake[2]: *** [all-recursive] Error 1
> gmake[2]: Leaving directory `/usr/ports/x11/lxpanel/work/lxpanel-0.5.12/
> src'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory `/usr/ports/x11/lxpanel/work/lxpanel-0.5.12'
> gmake: *** [all] Error 2
> *** Error code 1
>
> Stop.
> make: stopped in /usr/ports/x11/lxpanel
> *** Error code 1
>
> Stop.
> make: stopped in /usr/ports/x11/lxpanel
> ------------------------------------------
> Is there anything I can do?
>
> _______________________________________________
> [hidden email] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "[hidden email]"
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: Can't compile lxpanel

Jakub Lach
Last time I've checked lxde was unfortunately not worth hassle.

e.g. it depends on /proc
Reply | Threaded
Open this post in threaded view
|

Re: Can't compile lxpanel

Walter Hurry
In reply to this post by alan somers-3
On Thu, 06 Jun 2013 09:19:20 -0600, asomers wrote:

> Looks like a bug upstream.  If this port worked in FreeBSD-9, then the
> difference might be the switch from gcc to clang.  You could try
> compiling the port with gcc.  Just add these lines to /etc/make.conf
>
> CC=gcc CXX=g++
> CPP=gcpp
>
> Note: that will change the compiler used for ALL ports, as well as
> kernel and world.  To selectively change the compiler for just a few
> ports, you can follow the examples here:
> http://www.freebsd.org/doc/en/articles/custom-gcc/article.html
>
Thank you. Yes, switching to gcc (for that port only) worked.

So should that go down as a defect in lxpanel, or in clang?

_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: Can't compile lxpanel

Walter Hurry
In reply to this post by Jakub Lach
On Thu, 06 Jun 2013 08:37:10 -0700, Jakub Lach wrote:

> Last time I've checked lxde was unfortunately not worth hassle.
>
> e.g. it depends on /proc
>
Sorry, I'm no expert, but is that a problem? I routinely mount proc on
/proc in fstab. Is that what you are referring to? Is it undesirable to
do so? Sorry to ask more questions, but I'd like to understand the issue.


_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: Can't compile lxpanel

Dimitry Andric-4
In reply to this post by Walter Hurry
On Jun 6, 2013, at 18:21, Walter Hurry <[hidden email]> wrote:

> On Thu, 06 Jun 2013 09:19:20 -0600, asomers wrote:
>> Looks like a bug upstream.  If this port worked in FreeBSD-9, then the
>> difference might be the switch from gcc to clang.  You could try
>> compiling the port with gcc.  Just add these lines to /etc/make.conf
>>
>> CC=gcc CXX=g++
>> CPP=gcpp
>>
>> Note: that will change the compiler used for ALL ports, as well as
>> kernel and world.  To selectively change the compiler for just a few
>> ports, you can follow the examples here:
>> http://www.freebsd.org/doc/en/articles/custom-gcc/article.html
>>
> Thank you. Yes, switching to gcc (for that port only) worked.
>
> So should that go down as a defect in lxpanel, or in clang?

It is a defect in lxpanel.  The code is simply broken, as the error
messages clearly show.  

_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: Can't compile lxpanel

Jakub Lach
In reply to this post by Walter Hurry
Sorry for being so sparse, but I was just talking about
general impression from few tries I gave it.

/proc wasn't main problem, usually I didn;t have any use
for it.

Basically it wasn't for me what it aimed to be- a frugal
replacement for DE. Half of things didn't work, other half
worked erratically. Starting from bare panel/openbox looked
more viable.
Reply | Threaded
Open this post in threaded view
|

Re: Can't compile lxpanel

Walter Hurry
On Fri, 07 Jun 2013 13:58:50 -0700, Jakub Lach wrote:

> Sorry for being so sparse, but I was just talking about general
> impression from few tries I gave it.
>
> /proc wasn't main problem, usually I didn;t have any use for it.
>
> Basically it wasn't for me what it aimed to be- a frugal replacement for
> DE. Half of things didn't work, other half worked erratically. Starting
> from bare panel/openbox looked more viable.
>
OK, fair enough. All I can say is that LXDE works perfectly for me in 9.1-
RELEASE. I just had the problem of compiling lxpanel in 10-CURRENT, which
was worked around using asomers' suggestion to try gcc instead of clang
for that port.

Thanks for the reply.

_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: Can't compile lxpanel

Walter Hurry
In reply to this post by Dimitry Andric-4
On Fri, 07 Jun 2013 01:07:26 +0200, Dimitry Andric wrote:

> On Jun 6, 2013, at 18:21, Walter Hurry <[hidden email]> wrote:
>> On Thu, 06 Jun 2013 09:19:20 -0600, asomers wrote:
>>> Looks like a bug upstream.  If this port worked in FreeBSD-9, then the
>>> difference might be the switch from gcc to clang.  You could try
>>> compiling the port with gcc.  Just add these lines to /etc/make.conf
>>>
>>> CC=gcc CXX=g++
>>> CPP=gcpp
>>>
>>> Note: that will change the compiler used for ALL ports, as well as
>>> kernel and world.  To selectively change the compiler for just a few
>>> ports, you can follow the examples here:
>>> http://www.freebsd.org/doc/en/articles/custom-gcc/article.html
>>>
>> Thank you. Yes, switching to gcc (for that port only) worked.
>>
>> So should that go down as a defect in lxpanel, or in clang?
>
> It is a defect in lxpanel.  The code is simply broken, as the error
> messages clearly show.
>
Fixed now. Thanks go to the (new) maintainer.

_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[hidden email]"