Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 205354 - net-print/lprng-3.8.28 fails to compile (-Werror)
Summary: net-print/lprng-3.8.28 fails to compile (-Werror)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Ryan Hill (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.2
  Show dependency tree
 
Reported: 2008-01-11 18:59 UTC by Evil Compile Person
Modified: 2008-11-05 11:34 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Evil Compile Person 2008-01-11 18:59:12 UTC
x86_64-pc-linux-gnu-gcc -I.. -I. -I./include -I./common -D_FILE_OFFSET_BITS=64 -I/usr/include -g -W -Wall -Werror -Wno-unused -O2 -pipe -D_FILE_OFFSET_BITS=64 -g -W -Wall -Werror -Wno-unused -DHAVE_CONFIG_H -c ./common/plp_snprintf.c -o plp_snprintf.o
cc1: warnings being treated as errors
./common/plp_snprintf.c: In function 'fmtquad':
./common/plp_snprintf.c:936: warning: the address of 'convert' will always evaluate as 'true'
./common/plp_snprintf.c: In function 'fmtdouble':
./common/plp_snprintf.c:994: warning: the address of 'formatstr' will always evaluate as 'true'
./common/plp_snprintf.c:997: warning: the address of 'formatstr' will always evaluate as 'true'
./common/plp_snprintf.c:1000: warning: the address of 'formatstr' will always evaluate as 'true'
make[1]: *** [plp_snprintf.lo] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-print/lprng-3.8.28/work/LPRng-3.8.28/src'
make: *** [src] Error 2
 *
 * ERROR: net-print/lprng-3.8.28 failed.

Portage 2.1.4_rc14 (default-linux/amd64/2007.0, gcc-4.2.2, glibc-2.7-r1, 2.6.23-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.23-gentoo-r1 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Timestamp of tree: Mon, 07 Jan 2008 19:00:08 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.5.1-r5
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/svn/env /usr/kde/svn/share/config /usr/kde/svn/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://localhost/gentoo-portage"
USE="X acl amd64 berkdb bitmap-fonts cli cracklib crypt cups dri fortran gcj gdbm gpm iconv ipv6 isdnlog midi mmx mudflap ncurses nls nptl nptlonly objc openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl tcpd truetype-fonts type1-fonts unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Petri Lehtinen 2008-02-28 14:38:30 UTC
I get the same error. Could this problem be related to gcc 4.2?


i686-pc-linux-gnu-gcc -I.. -I. -I./include -I./common -D_FILE_OFFSET_BITS=64 -I/usr/include -g -W -Wall -Werror -Wno-unused -pipe -march=k8 -O2 -D_FILE_OFFSET_BITS=64 -g -W -Wall -Werror -Wno-unused -DHAVE_CONFIG_H -c ./common/plp_snprintf.c -o plp_snprintf.o
cc1: warnings being treated as errors
./common/plp_snprintf.c: In function 'fmtquad':
./common/plp_snprintf.c:936: warning: the address of 'convert' will always evaluate as 'true'
./common/plp_snprintf.c: In function 'fmtdouble':
./common/plp_snprintf.c:994: warning: the address of 'formatstr' will always evaluate as 'true'
./common/plp_snprintf.c:997: warning: the address of 'formatstr' will always evaluate as 'true'
./common/plp_snprintf.c:1000: warning: the address of 'formatstr' will always evaluate as 'true'
make[1]: *** [plp_snprintf.lo] Error 1


Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.2.3, glibc-2.6.1-r0, 2.6.18-gentoo-r3 i686)
=================================================================
System uname: 2.6.18-gentoo-r3 i686 AMD Athlon(tm) 64 Processor 3000+
Timestamp of tree: Wed, 27 Feb 2008 17:16:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r6, 2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-pipe -march=k8 -O2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-pipe -march=k8 -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1,--as-needed"
LINGUAS="en_US fi"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--ipv6"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/seemant /usr/portage/local/layman/ion-overlay /usr/portage/local/layman/berkano /home/akheron/local/portage"
SYNC="rsync://trumpetti.atm.tut.fi/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi alsa apache2 bash-completion berkdb bitmap-fonts bzip2 cairo cdr cli cracklib crypt dri dvd dvdr dvdread emacs emboss encode evo fam firefox gdbm gif iconv ipv6 isdnlog jpeg mad midi mikmod mmx mmxext mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf perl png pppd python qt3support quicktime readline reflection sdl session spell spl sse sse2 ssl svg tcpd threads tiff truetype truetype-fonts type1-fonts unicode vorbis win32codecs x86 xml xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US fi" USERLAND="GNU" VIDEO_CARDS="fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 2 Petri Lehtinen 2008-02-28 17:32:00 UTC
Yep. At least for me it compiles fine with gcc 4.1.2.
Comment 3 Ulrich Müller gentoo-dev 2008-07-26 16:27:10 UTC
Looks like the problem is fixed in 3.8.A. (Yes, the version is really called like this and is _newer_ than 3.8.28.)
Comment 4 Ryan Hill (RETIRED) gentoo-dev 2008-11-03 20:02:44 UTC
mine.
Comment 5 Ryan Hill (RETIRED) gentoo-dev 2008-11-03 22:14:38 UTC
fixed.
Comment 6 Ulrich Müller gentoo-dev 2008-11-05 11:34:02 UTC
Here is some clarification about the 3.8.A version (posting it here with Craig's permission):


From: Craig Small <csmall@enc.com.au>
To: Ulrich Mueller <ulm@gentoo.org>
Cc: Patrick Powell <papowell@lprng.com>,
        "Bernhard R. Link" <brl@users.sourceforge.net>
Subject: Re: LPRng versions - I'm confused
Date: Mon, 3 Nov 2008 09:42:30 +1100

Hello Ulrich,
  I'm the Debian maintainer for lprng.  I also assist the upstream guys
of the sourceforge lprng.

On Sun, Nov 02, 2008 at 10:25:18PM +0100, Ulrich Mueller wrote:
> Could you please clarify if this is a fork of the project, or a new
> upstream maintainer?
It's a rather interesting question, I don't think there is a simple
answer for it.  As you probably know, having a responsive upstream
makes the job of the package mainatainer so much easier.  

Quite a few people saw that the bugs coming in and no word from Patrick.
I tried emailling him a few times and heard nothing.  Reluctantly a
group of people then forked the project to maintain it.  About the same
time Patrick released a new version of lprng.

I've kept with the sourceforge-hosted version mainly because I hear
from people maitaining it and any bugs I come across are fixed or at
least looked at.  That's really all I am after.

It's a real messy situation, but not unique.  procps has a similiar
situation.

> question is, what will be the future systematics of your version
> numbers?
I'm not too sure. The trick is to make them different. Don't you have
the equivalent features like epoch that Debian has?  I'm surprised
you've not hit this problem previously as there are far much more eviler
version strings out there.

 - Craig