Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 270551 - mail-filter/procmail-3.22-r10 fails with glibc-2.10.1
Summary: mail-filter/procmail-3.22-r10 fails with glibc-2.10.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
: 270574 (view as bug list)
Depends on:
Blocks: glibc-2.10
  Show dependency tree
 
Reported: 2009-05-20 12:08 UTC by James Erickson
Modified: 2009-06-13 20:51 UTC (History)
2 users (show)

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


Attachments
Rename getline to procmail_getline (procmail-3.22-glibc-2.10.patch,2.77 KB, patch)
2009-05-21 16:30 UTC, Peter Alfredsen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James Erickson 2009-05-20 12:08:02 UTC
Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2426:  Called die
 * The specific snippet of code:
 *       emake CC="$(tc-getCC)" || die
 *  The die message:
 *   (no error message)


Reproducible: Always

Actual Results:  
ln ../src/procmail ../new/procmail
i686-pc-linux-gnu-gcc -c -O2 -march=i686 -pipe -fno-inline-functions   lockfile.c
lockfile.c: In function 'elog':
lockfile.c:54: warning: ignoring return value of 'write', declared with attribute warn_unused_result
lockfile.c: In function 'main':
lockfile.c:130: warning: ignoring return value of 'strtol', declared with attribute warn_unused_result
i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -fno-inline-functions   lockfile.o exopen.o sublib.o acommon.o mcommon.o authenticate.o lastdirsep.o -o lockfile -Wl,-z,now -Wl,-O1   -lm -lnsl -ldl -lc
ln ../src/lockfile ../new/lockfile
i686-pc-linux-gnu-gcc -c -O2 -march=i686 -pipe -fno-inline-functions   formail.c
In file included from formail.c:25:
formisc.h:20: error: conflicting types for 'getline'
/usr/include/stdio.h:651: error: previous declaration of 'getline' was here
formail.c: In function 'elimdups':
formail.c:350: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
make[1]: *** [formail.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/mail-filter/procmail-3.22-r10/work/procmail-3.22/src'
make: *** [bins] Error 2
 *
 * ERROR: mail-filter/procmail-3.22-r10 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2426:  Called die
 * The specific snippet of code:
 *       emake CC="$(tc-getCC)" || die
 *  The die message:
 *   (no error message)



Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.3, glibc-2.10.1-r0, 2.6.29-gentoo-r4 i686)
=================================================================
System uname: Linux-2.6.29-gentoo-r4-i686-Intel-R-_Celeron-R-_M_processor_900MHz-with-gentoo-2.0.0
Timestamp of tree: Wed, 20 May 2009 11:00:01 +0000
app-shells/bash:     4.0_p24
dev-lang/python:     2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.7.9-r1, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl berkdb bzip2 cli cracklib crypt cups dri fortran gdbm gpm iconv ipv6 isdnlog midi mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl ssl sysfs tcpd unicode x86 xorg 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 mmap_emul 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="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon
savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Sebastian Luther (few) 2009-05-20 15:02:48 UTC
*** Bug 270574 has been marked as a duplicate of this bug. ***
Comment 2 Denis Kaganovich 2009-05-21 09:02:49 UTC
sed -i -e 's/getline/get_line/g' ${S}/src/*.c ${S}/src/*.h
Comment 3 Peter Alfredsen (RETIRED) gentoo-dev 2009-05-21 16:30:08 UTC
Created attachment 192043 [details, diff]
Rename getline to procmail_getline
Comment 4 James Erickson 2009-05-28 22:56:50 UTC
(In reply to comment #3)
> Created an attachment (id=192043) [edit]
> Rename getline to procmail_getline
> 
tried the patch got this:
x86_64-pc-linux-gnu-gcc -c -march=native -O2 -pipe -fno-inline-functions   acommon.c
x86_64-pc-linux-gnu-gcc -c -march=native -O2 -pipe -fno-inline-functions   mcommon.c
make[2]: Leaving directory `/var/tmp/portage/mail-filter/procmail-3.22-r10/work/procmail-3.22/src'
/bin/sh ./mansed /bin/sh procmail.man procmail.1 "/bin/rm -f" /dev/null
x86_64-pc-linux-gnu-gcc -c -march=native -O2 -pipe -fno-inline-functions   lastdirsep.c
x86_64-pc-linux-gnu-gcc -c -DPROCMAIL -march=native -O2 -pipe -fno-inline-functions   authenticate.c
x86_64-pc-linux-gnu-gcc -c -march=native -O2 -pipe -fno-inline-functions   lmtp.c
x86_64-pc-linux-gnu-gcc -c -march=native -O2 -pipe -fno-inline-functions   memblk.c
x86_64-pc-linux-gnu-gcc -c -march=native -O2 -pipe -fno-inline-functions   variables.c
/bin/sh ./mansed /bin/sh formail.man formail.1 "/bin/rm -f" /dev/null
x86_64-pc-linux-gnu-gcc -c -march=native -O2 -pipe -fno-inline-functions   from.c
x86_64-pc-linux-gnu-gcc -c -march=native -O2 -pipe -fno-inline-functions   comsat.c
x86_64-pc-linux-gnu-gcc -c -march=native -O2 -pipe -fno-inline-functions   lockfile.c
/bin/sh ./mansed /bin/sh lockfile.man lockfile.1 "/bin/rm -f" /dev/null
lockfile.c: In function 'elog':
lockfile.c:54: warning: ignoring return value of 'write', declared with attribute warn_unused_result
x86_64-pc-linux-gnu-gcc -c -march=native -O2 -pipe -fno-inline-functions   formail.c
lockfile.c: In function 'main':
lockfile.c:130: warning: ignoring return value of 'strtol', declared with attribute warn_unused_result
x86_64-pc-linux-gnu-gcc -c -march=native -O2 -pipe -fno-inline-functions   fields.c
/bin/sh ./mansed /bin/sh procmailrc.man procmailrc.5 "/bin/rm -f" /dev/null
/bin/sh ./mansed /bin/sh procmailsc.man procmailsc.5 "/bin/rm -f" /dev/null
/bin/sh ./mansed /bin/sh procmailex.man procmailex.5 "/bin/rm -f" /dev/null
x86_64-pc-linux-gnu-gcc -c -march=native -O2 -pipe -fno-inline-functions   formisc.c
x86_64-pc-linux-gnu-gcc -c -march=native -O2 -pipe -fno-inline-functions   ecommon.c
ln ../man/procmail.1 ../new/procmail.1
In file included from fields.c:18:
formisc.h:20: error: conflicting types for 'getline'
/usr/include/stdio.h:651: error: previous declaration of 'getline' was here
make[1]: *** [fields.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from formail.c:25:
formisc.h:20: error: conflicting types for 'getline'
/usr/include/stdio.h:651: error: previous declaration of 'getline' was here
formail.c: In function 'elimdups':
formail.c:350: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
make[1]: *** [formail.o] Error 1
ln ../man/lockfile.1 ../new/lockfile.1
In file included from formisc.c:18:
formisc.h:20: error: conflicting types for 'getline'
/usr/include/stdio.h:651: error: previous declaration of 'getline' was here
formisc.c:118: error: conflicting types for 'getline'
/usr/include/stdio.h:651: error: previous declaration of 'getline' was here
ln ../man/formail.1 ../new/formail.1
formisc.c: In function 'startprog':
formisc.c:162: warning: ignoring return value of 'dup', declared with attribute warn_unused_result
formisc.c:175: warning: ignoring return value of 'pipe', declared with attribute warn_unused_result
formisc.c:194: warning: ignoring return value of 'dup', declared with attribute warn_unused_result
make[1]: *** [formisc.o] Error 1
ln ../man/procmailrc.5 ../new/procmailrc.5
ln ../man/procmailex.5 ../new/procmailex.5
ln ../man/procmailsc.5 ../new/procmailsc.5
make[1]: Leaving directory `/var/tmp/portage/mail-filter/procmail-3.22-r10/work/procmail-3.22/man'
make[1]: Leaving directory `/var/tmp/portage/mail-filter/procmail-3.22-r10/work/procmail-3.22/src'
make: *** [bins] Error 2
 * 
 * ERROR: mail-filter/procmail-3.22-r10 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2546:  Called die
 * The specific snippet of code:
 *       emake CC="$(tc-getCC)" || die
 *  The die message:
 *   (no error message)



Comment 5 Boney McCracker 2009-06-01 14:26:48 UTC
This patch worked fine for me.  Thank you Peter.
Comment 6 Vivien Moreau 2009-06-01 15:20:26 UTC
This worked for me too!

Thanks.
Comment 7 Peter Alfredsen (RETIRED) gentoo-dev 2009-06-13 12:59:35 UTC
+  13 Jun 2009; Peter Alfredsen <loki_val@gentoo.org>
+  procmail-3.22-r10.ebuild, +files/procmail-3.22-glibc-2.10.patch:
+  Fix compilation with glibc-2.10, bug 270551.
+
Comment 8 James Erickson 2009-06-13 20:51:26 UTC
(In reply to comment #7)
> +  13 Jun 2009; Peter Alfredsen <loki_val@gentoo.org>
> +  procmail-3.22-r10.ebuild, +files/procmail-3.22-glibc-2.10.patch:
> +  Fix compilation with glibc-2.10, bug 270551.
> +
> 

thank you.