Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 219604 - net-fs/samba-3.0.28a emake python_ext failed
Summary: net-fs/samba-3.0.28a emake python_ext failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-28 16:32 UTC by Alexey Charkov
Modified: 2008-05-17 12:37 UTC (History)
2 users (show)

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


Attachments
Complete build log (build.log,89.30 KB, text/plain)
2008-04-28 17:05 UTC, Alexey Charkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Charkov 2008-04-28 16:32:19 UTC
After disabling the ipv6 USE-flag and rebuilding the affected packages on my ~amd64 system with GCC 4.3, I am no longer able to build net-fs/samba-3.0.28a. `USE=ipv6 emerge -1 samba` does not succeed any longer, either. My currently installed version was compiled previously with GCC 4.3, so this is probably not a GCC-related issue.

Reproducible: Always

Steps to Reproduce:

Actual Results:  
The build process fails and ends with the following line:

/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0/../../../../lib64/Scrt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: выполнение ld завершилось с кодом возврата 1
error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1
make: *** [python_ext] Ошибка 1



# emerge --info
Portage 2.1.5_rc6 (default/linux/amd64/2008.0/desktop, gcc-4.3.0, glibc-2.7-r2, 2.6.25-gentoo-r1-alchark-u3s x86_64)
=================================================================
System uname: 2.6.25-gentoo-r1-alchark-u3s x86_64 Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz
Timestamp of tree: Sun, 27 Apr 2008 20:46:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.5
dev-lang/python:     2.5.2-r2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
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.25-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -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/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=core2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LC_ALL="ru_RU.UTF-8"
LDFLAGS=""
LINGUAS="ru en"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
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 /usr/portage/local/kde-mono"
SYNC="rsync://rsync.ru.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 amr amrnb amrwb archive avahi bash-completion berkdb bluetooth branding bzip2 cairo cdparanoia cdr chm cli cracklib crypt cups curl dbus dhcp djvu dri dts dvd dvdr dvdread emboss encode evo exif fam fbcon ffmpeg flac foomaticdb fortran ftp gdbm gif gimp gnutls gpm gs gstreamer gtk hal htmlhandbook iconv id3tag ieee1394 imagemagick imlib ipw3945 isdnlog javascript jingle jpeg kde kerberos lame latex lcms ldap libnotify lm_sensors lzo mad matroska midi mikmod mmx mng mp3 mp4 mpeg mudflap multilib musepack ncurses networkmanager nls nptl nptlonly ogg opengl openmp oscar pam pcre pdf perl png ppds ppp pppd python qt-copy qt3 qt3support qt4 quicktime rar readline reflection samba sasl scanner sdl session smp spell spl sse sse2 ssl ssse3 startup-notification svg symlink taglib tcpd tetex theora tiff truetype unicode usb v4l v4l2 vnc vorbis wifi wmf x264 xcomposite xine xml xorg xulrunner xv xvid xvmc zeroconf zip zlib" ALSA_CARDS="hda-intel" 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 synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" USERLAND="GNU" VIDEO_CARDS="nvidia i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-04-28 17:02:15 UTC
Could you post more of the build log, please?
Comment 2 Alexey Charkov 2008-04-28 17:05:42 UTC
Created attachment 151256 [details]
Complete build log

There are no errors before this one, however.
Comment 3 Alexey Charkov 2008-04-28 17:12:16 UTC
Sorry for my non-English locale setting. The lines in Russian right before the error occurs are only warnings, not errors. They complain about incompatible pointer types, python/py_spoolss_common.c:30 stating 'incompatible pointer type in assignment' and others simply 'incompatible pointer type'.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2008-04-29 13:21:10 UTC
For what's it worth I can reproduce this, haven't looked better yet..
Comment 5 vorfeed.canal 2008-05-07 10:21:18 UTC
The problem is that samba issues controversial command:
gcc -pie -shared ...
What this command is supposed to build? Executable (-pie == Position Independent Executable)? Shared library (-shared == shared library, please)? gcc before 4.3 interprets it as shared library, gcc 4.3 thinks it's asked to build position independent executable.

Fixed this with dirty, dirty hack:
--- Makefile.in 2008-05-07 14:03:20.000000000 +0400
+++ Makefile.in 2008-05-07 13:38:43.000000000 +0400
@@ -1668,7 +1668,7 @@
        fi
        PYTHON_OBJS="$(PYTHON_OBJ)" \
        PYTHON_CFLAGS="$(CFLAGS) $(CPPFLAGS) $(FLAGS)" \
-       LIBS="$(LDFLAGS) $(LIBS) $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS)" \
+       LIBS="`echo $(LDFLAGS) $(LIBS) $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS) | sed -e s'+-pie ++'`" \
                $(PYTHON) python/setup.py build

 python_install: $(PYTHON_OBJ)


Don't know what is the good solution...
Comment 6 Tiziano Müller (RETIRED) gentoo-dev 2008-05-17 12:37:52 UTC
Thanks for the hint.
... and there is a nice way to solve it :-) (btw, your fix didn't work here since python seems to grab also the LDFLAGS env var which is being set by the Makefile)