Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 205975 - [fPIC] net-misc/zaptel-1.2.22.1-r1 failed to emerge
Summary: [fPIC] net-misc/zaptel-1.2.22.1-r1 failed to emerge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 201665
  Show dependency tree
 
Reported: 2008-01-15 15:44 UTC by Federico Cuello
Modified: 2008-01-28 10:00 UTC (History)
2 users (show)

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


Attachments
zaptel 1.2.23 ebuild (zaptel-1.2.23.ebuild,8.66 KB, text/plain)
2008-01-17 09:58 UTC, Thomas Stein
Details
gentoo patch (zaptel-1.2.23-gentoo.diff,2.55 KB, patch)
2008-01-17 09:59 UTC, Thomas Stein
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Federico Cuello 2008-01-15 15:44:55 UTC
net-misc/zaptel-1.2.22.1-r1 fails to emerge on AMD64

Reproducible: Always

Steps to Reproduce:
1. emerge zaptel
2.
3.

Actual Results:  
cc -march=athlon64 -O2 -pipe -DSTANDALONE_ZAPATA -DBUILDING_TONEZONE -DHOTPLUG_FIRMWARE -I. -g -Wall -m64 -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -o zttool zttool.o -lnewt
cc -march=athlon64 -O2 -pipe -DSTANDALONE_ZAPATA -DBUILDING_TONEZONE -DHOTPLUG_FIRMWARE -I. -g -Wall -m64 -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -shared -Wl,-soname,libtonezone.so.1.0 -o libtonezone.so zonedata.lo tonezone.lo  -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/../../../../x86_64-pc-linux-gnu/bin/ld: tonezone.lo: relocation R_X86_64_32 against `builtin_zones' can not be used when making a shared object; recompile with -fPIC
tonezone.lo: could not read symbols: Bad value
collect2: ld devolvió el estado de salida 1
make: *** [libtonezone.so] Error 1
 *
 * ERROR: net-misc/zaptel-1.2.22.1-r1 failed.
 * Call stack:
 *               ebuild.sh, line   46:  Called src_compile
 *             environment, line 3243:  Called die
 * The specific snippet of code:
 *       make KVERS=${KV_FULL} KSRC=${KV_DIR} ARCH=$(tc-arch-kernel) || diefunc "$FUNCNAME" "$LINENO" "$?";
 *  The die message:
 *   (no error message)
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-misc/zaptel-1.2.22.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-misc/zaptel-1.2.22.1-r1/temp/environment'.
 *




Portage 2.1.4 (default-linux/amd64/2007.0/desktop, gcc-4.2.2, glibc-2.7-r1, 2.6.23-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.23-gentoo-r5 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Timestamp of tree: Tue, 15 Jan 2008 15:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.3
dev-lang/python:     2.5.1-r5
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11
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.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -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/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="es_AR.UTF-8"
LINGUAS="es_AR es"
MAKEOPTS="-j3"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi aim alsa amd64 apache2 apm arts artswrappersuid bash-completion berkdb bitmap-fonts bzip2 cairo cddb cdr cli cracklib crypt cups dbus dga dmi dri dts dv dvb dvd dvdr dvdread eds emboss emerald encode esd evo exif extensions fam ffmpeg fftw firefox flac fortran gd gdbm gif glitz gnome gphoto2 gpm graphviz gstreamer gtk gtk2 hal iconv icq imagemagick imap ipod ipv6 isdnlog jabber jpeg kde kerberos kqemu ldap lirc lm_sensors mad maildir mailwrapper midi mikmod mmap mmx mmxext mp3 mpeg mplayer mpm-worker msn mudflap musicbrainz ncurses nforce2 nls nptl nptlonly nsplugin ntfs nvidia ogg opengl openmp oss pam pcre pda pdf perl php pmu png pppd python qt3 qt3support qt4 quicktime rdesktop readline reflection samba sasl scanner sdl session sharedext slang smp sms snortsam spell spl sse sse2 ssl stream subtitles svg symlink sysfs tcpd theora threads threadsafe tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vhosts vorbis x264 xcomposite xml xorg xv xvmc yahoo zaptel 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" CAMERAS="canon ptp2" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es_AR es" LIRC_DEVICES="devinput" USERLAND="GNU" VIDEO_CARDS="nv nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Thomas Stein 2008-01-16 11:41:29 UTC
Confirmed. Same error here:

/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/../../../../x86_64-pc-linux-gnu/bin/ld: tonezone.lo: relocation R_X86_64_32 against `builtin_zones' can not be used when making a shared object; recompile with -fPIC
tonezone.lo: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libtonezone.so] Error 1

commander ~ # emerge --info
Portage 2.1.4_rc14 (default-linux/amd64/2007.0, gcc-4.2.2, glibc-2.7-r0, 2.6.22.9 x86_64)
=================================================================
System uname: 2.6.22.9 x86_64 AMD Athlon(tm) 64 Processor 3200+
Timestamp of tree: Fri, 11 Jan 2008 10:00:02 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.2-r1
dev-lang/python:     2.5.1-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 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.3.13-r2
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/red5/conf /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/lib/red5-webapps"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo"
LANG="de_DE.utf8"
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://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bitmap-fonts cli cracklib crypt cups dri fortran gdbm gpm iconv isdnlog midi mmx mudflap ncurses nls nptl nptlonly 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

cheers
t.
Comment 2 Thomas Stein 2008-01-16 12:43:36 UTC
Adding -fPIC to my CFLAGS makes this package compile. Don't know how to add this to this ebuild and i don't know if it's a good idea to do that. :-)
Comment 3 Thomas Stein 2008-01-16 13:43:11 UTC
I looked at the zaptel-1.2.22.1-gentoo.diff file and noticed that:

-CFLAGS+=-I. -O4 -g -fPIC -Wall
+CFLAGS+=-I. -g -Wall

That seems to be the problem. I added -fPIC to the plus line and everything compiles installes and works fine.

t.
Comment 4 Thomas Stein 2008-01-17 09:58:37 UTC
Created attachment 141118 [details]
zaptel 1.2.23 ebuild
Comment 5 Thomas Stein 2008-01-17 09:59:42 UTC
Created attachment 141120 [details, diff]
gentoo patch

Patch for Zaptel 1.2.23 to make both happy, x86 and amd64.
Comment 6 Rajiv Aaron Manglani (RETIRED) gentoo-dev 2008-01-28 06:39:58 UTC
net-misc/zaptel-1.2.23 in cvs with some help from solar. thanks for the patch suggestion.
Comment 7 Thomas Stein 2008-01-28 10:00:18 UTC
I think we have a new problem with kernel 2.6.24. :-) 

http://bugs.digium.com/view.php?id=11141

That applies to zaptel-1.2 too.