Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 122111 - postfix 2.2.8 compile error: undefined reference to `__syscall_error'
Summary: postfix 2.2.8 compile error: undefined reference to `__syscall_error'
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-08 05:05 UTC by Frank
Modified: 2006-02-08 09:42 UTC (History)
0 users

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 Frank 2006-02-08 05:05:05 UTC
emerge postfix 2.2.8 fails compilation with these errors:

i586-pc-linux-gnu-gcc -DHAS_PCRE -DHAS_LDAP -DHAS_MYSQL -I/usr/include/mysql -DUSE_TLS -DUSE_SASL_AUTH -I/usr/include/sasl -DDEF_DAEMON_DIR=\"/usr/lib/postfix\" -DDEF_MANPAGE_DIR=\"/usr/share/man\" -DDEF_README_DIR=\"/usr/share/doc/postfix-2.2.8/readme\" -DDEF_HTML_DIR=\"/usr/share/doc/postfix-2.2.8/html\" -g -march=i586 -O2 -pipe -I. -I../../include -DLINUX2 -o master master.o master_conf.o master_ent.o master_sig.o master_avail.o master_spawn.o master_service.o master_status.o master_listen.o master_vars.o master_wakeup.o master_flow.o ../../lib/libglobal.a ../../lib/libutil.a -Wl,-z,now -L/usr/lib -lpcre -lcrypt -lpthread -lpam -lldap -llber -lmysqlclient -lm -lz -lssl -lcrypto -lsasl2 -ldb -lnsl -lresolv
/usr/lib/libpthread.a(ptw-write.o)(.text+0x25): In function `write':
: undefined reference to `__syscall_error'
/usr/lib/libpthread.a(ptw-write.o)(.text+0x55): In function `write':
: undefined reference to `__syscall_error'
/usr/lib/libpthread.a(ptw-read.o)(.text+0x25): In function `read':
: undefined reference to `__syscall_error'
/usr/lib/libpthread.a(ptw-read.o)(.text+0x55): In function `read':
: undefined reference to `__syscall_error'
/usr/lib/libpthread.a(ptw-close.o)(.text+0x1f): In function `close':
: undefined reference to `__syscall_error'
/usr/lib/libpthread.a(ptw-close.o)(.text+0x4a): more undefined references to `__syscall_error' follow
/usr/lib/libpthread.a(pthread.o)(.text+0x104): In function `pthread_initialize':
: undefined reference to `_res'
/usr/lib/libpthread.a(pthread.o)(.text+0xc7b): In function `__pthread_reset_main_thread':
: undefined reference to `_errno'
/usr/lib/libpthread.a(pthread.o)(.text+0xc85): In function `__pthread_reset_main_thread':
: undefined reference to `_h_errno'
/usr/lib/libpthread.a(pthread.o)(.text+0xc92): In function `__pthread_reset_main_thread':
: undefined reference to `_res'
/usr/lib/libpthread.a(pthread.o)(.data+0x1b8): undefined reference to `_errno'
/usr/lib/libpthread.a(pthread.o)(.data+0x1c0): undefined reference to `_h_errno'
/usr/lib/libpthread.a(pthread.o)(.data+0x1c8): undefined reference to `_res'
/usr/lib/libpthread.a(ptw-nanosleep.o)(.text+0x23): In function `nanosleep':
: undefined reference to `__syscall_error'
/usr/lib/libpthread.a(ptw-nanosleep.o)(.text+0x51): In function `nanosleep':
: undefined reference to `__syscall_error'
collect2: ld returned 1 exit status
make: *** [master] Error 1
make: *** [update] Error 1

!!! ERROR: mail-mta/postfix-2.2.8 failed.

============
# FORCE_UPGRADE=1 emerge --buildpkgonly postfix -av

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild     U ] mail-mta/postfix-2.2.8 [2.2.5] USE="ldap mysql pam sasl ssl -cdb% -hardened -ipv6 -mailwrapper -mbox -nis -postgres -vda" 0 kB

Total size of downloads: 0 kB

==========

# emerge --info
Portage 2.1_pre3-r1 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.4.20041102-r0,glibc-2.3.4.20041102-r1,glibc-2.3.6-r2,glibc-2.3.5-r0,glibc-2.3.4.20040808-r1,glibc-2.3.5-r3,glibc-2.3.5-r1, 2.6.15-gentoo i686)
=================================================================
System uname: 2.6.15-gentoo i686 VIA Samuel 2
Gentoo Base System version 1.12.0_pre14
ccache version 2.4 [enabled]
dev-lang/python:     2.3.4, 2.3.4-r1, 2.3.5, 2.4.1-r1, 2.4.2
sys-apps/sandbox:    1.2.5, 1.2.11, 1.2.12, 1.2.13, 1.2.14, 1.2.16, 1.2.17
sys-devel/autoconf:  2.13, 2.59-r5, 2.59-r6, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9, 1.7.9-r1, 1.8.5-r1, 1.8.5-r3, 1.9.3, 1.9.4, 1.9.5, 1.9.6, 1.9.6-r1
sys-devel/binutils:  2.14.90.0.8-r1, 2.15.90.0.1.1-r3, 2.15.92.0.2-r2, 2.15.92.0.2-r7, 2.15.92.0.2-r10, 2.16.1, 2.16.1-r1
sys-devel/libtool:   1.5.2-r5, 1.5.10-r2, 1.5.10-r4, 1.5.14, 1.5.16, 1.5.18-r1, 1.5.20, 1.5.22
virtual/os-headers:  2.4.21-r1, 2.4.22, 2.4.22-r1, 2.6.8.1-r2, 2.6.11, 2.6.11-r2, 2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="no"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-march=i586 -O2 -pipe"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.easynet.nl/mirror/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://mirror.nutsmaas.nl/gentoo/"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 acl apache2 apm arts avi berkdb bitmap-fonts bzip2 crypt curl eds emboss encode expat fam foomaticdb gd gdbm gif gmp gpm gstreamer gtk2 idn imagemagick imap imlib jpeg junit kde lcms ldap libg++ libwww lm_sensors mad maildir mhash mikmod mng motif mp3 mpeg mysql ncurses nls ogg oggvorbis opengl oss pam pam-mysql pcre pdflib perl php png python quicktime readline sasl slang snmp spell ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts udev usb userlocales vorbis xml xml2 xmms xv zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-02-08 05:11:03 UTC
Ugh...

OK, you have *completely* screwed system. How the heck did you manage to have those zillions of glibc/gcc/sandbox/automake/autoconf/binutils/os-headers etc. etc. etc. things installed at the same time???

There's nothing we could debug on such broken system, sorry. 

INVALID, I'd suggest reinstall from scratch.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-02-08 05:13:23 UTC
And *never ever* set AUTOCLEAN="no" again.
Comment 3 Frank 2006-02-08 09:42:02 UTC
screwed may be but everything runs really smooth, ok, except for this update :|