From owner-freebsd-current@FreeBSD.ORG Thu Jun 6 15:19:21 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 87E025BD for ; Thu, 6 Jun 2013 15:19:21 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-qc0-x236.google.com (mail-qc0-x236.google.com [IPv6:2607:f8b0:400d:c01::236]) by mx1.freebsd.org (Postfix) with ESMTP id 51C9F1979 for ; Thu, 6 Jun 2013 15:19:21 +0000 (UTC) Received: by mail-qc0-f182.google.com with SMTP id n1so1773737qcw.27 for ; Thu, 06 Jun 2013 08:19:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=VTwOjALEo3wXORCAWa3Ckr338/Ek+KF9yGGwlPAeJlc=; b=qrEj+W+VOseU1rKMt2DsYNe+SSYkoKLJsSWGPg61mUWFH/pq9JhGDnLMGFHl7UkER2 +1AfBtVyDhft88DkscnI4EzGwEmHgfMXLx2HvaPH9hD66YJ1/bIVTfQPkC9/mlVgAX1+ IDJdaVRCseQvruP3dewntweMOHHt4ZQ8O5/f9RAAOsklDfcGY76ouBmJeaxYOgZPZZZ+ cD2tKvdkckjCz71nVl8GMSAEsB++dxtQ4EiGSdJOucrZ7LwWOf0c2D0zkqwgCijzgoc0 AOiH11GKfrjJEZuQvUcIM4Sa4tAdSNsIy84flKr4trxQ9ZZ+tSH4b84Q4oWUB5OJEmwa SoRw== MIME-Version: 1.0 X-Received: by 10.49.24.13 with SMTP id q13mr20742000qef.49.1370531960849; Thu, 06 Jun 2013 08:19:20 -0700 (PDT) Received: by 10.49.37.226 with HTTP; Thu, 6 Jun 2013 08:19:20 -0700 (PDT) In-Reply-To: References: Date: Thu, 6 Jun 2013 09:19:20 -0600 Message-ID: Subject: Re: Can't compile lxpanel From: asomers@gmail.com To: Walter Hurry Content-Type: text/plain; charset=ISO-8859-1 X-Mailman-Approved-At: Thu, 06 Jun 2013 15:33:08 +0000 Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jun 2013 15:19:21 -0000 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 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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"