Re: Can't compile lxpanel

From: <asomers_at_gmail.com>
Date: Thu, 6 Jun 2013 09:19:20 -0600
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 <walterhurry_at_gmail.com> 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?
>
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
Received on Thu Jun 06 2013 - 13:19:21 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:38 UTC