Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 236511 - gnome-base/orbit-2.14.13 compilation fails with undefined references.
Summary: gnome-base/orbit-2.14.13 compilation fails with undefined references.
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-02 21:48 UTC by yknot
Modified: 2008-09-14 21:31 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 yknot 2008-09-02 21:48:35 UTC
emergeing orbit-2.14.13 fails to build on amd64 system

orbit-2.14.12 builds fine

Reproducible: Always

Steps to Reproduce:
1.emerge -v orbit
2.
3.

Actual Results:  
This is the error message I get.
x86_64-pc-linux-gnu-gcc -march=athlon64 -pipe -O2 -Werror-implicit-function-declaration -o test-linc test-linc.o -pthread  ../src/.libs/liblinc.a /usr/lib64/libgobject-2.0.so /usr/lib64/libgthread-2.0.so -lpthread -lrt /usr/lib64/libglib-2.0.so
test-linc.o: In function `test_server_create_connection':
test-linc.c:(.text+0xc1): undefined reference to `link_connection_get_type'
test-linc.o: In function `create_client':
test-linc.c:(.text+0x121): undefined reference to `link_connection_initiate'
test-linc.c:(.text+0x159): undefined reference to `link_connection_get_type'
test-linc.o: In function `test_blocking_cnx_handle_input':
test-linc.c:(.text+0x199): undefined reference to `link_connection_read'
test-linc.o: In function `test_broken_cnx_handle_input':
test-linc.c:(.text+0x295): undefined reference to `link_connection_read'
test-linc.c:(.text+0x2a7): undefined reference to `link_connection_state_changed'
test-linc.o: In function `blocking_cb':
test-linc.c:(.text+0x3f4): undefined reference to `link_main_iteration'
test-linc.o: In function `main':
test-linc.c:(.text+0x4f5): undefined reference to `link_init'
test-linc.c:(.text+0x678): undefined reference to `link_connection_wait_connected'
test-linc.c:(.text+0x6a7): undefined reference to `link_connection_unref'
test-linc.c:(.text+0x76a): undefined reference to `link_main_loop_run'
test-linc.c:(.text+0x78a): undefined reference to `link_main_iteration'
test-linc.c:(.text+0x860): undefined reference to `link_main_iteration'
test-linc.c:(.text+0x8b4): undefined reference to `link_write_options_new'
test-linc.c:(.text+0x8c9): undefined reference to `link_connection_set_max_buffer'
test-linc.c:(.text+0x931): undefined reference to `link_connection_write'
test-linc.c:(.text+0x963): undefined reference to `link_connection_unref'
test-linc.c:(.text+0x979): undefined reference to `link_main_iteration'
test-linc.c:(.text+0x9b5): undefined reference to `link_write_options_free'
test-linc.c:(.text+0xd63): undefined reference to `link_connection_get_type'
test-linc.c:(.text+0xda4): undefined reference to `link_connection_get_type'
../src/.libs/liblinc.a(linc-server.o): In function `link_server_create_connection':
linc-server.c:(.text+0x215): undefined reference to `link_connection_get_type'
../src/.libs/liblinc.a(linc-server.o): In function `link_server_dispose':
linc-server.c:(.text+0x2de): undefined reference to `link_connection_get_type'
linc-server.c:(.text+0x32c): undefined reference to `link_connection_unref'
../src/.libs/liblinc.a(linc-server.o): In function `link_server_accept_connection':
linc-server.c:(.text+0x777): undefined reference to `link_connection_from_fd'
../src/.libs/liblinc.a(linc-server.o): In function `link_server_client_connection_broken':
linc-server.c:(.text+0x397): undefined reference to `link_connection_unref'
../src/.libs/liblinc.a(linc-source.o): In function `link_watch_move_io':
linc-source.c:(.text+0x273): undefined reference to `link_thread_io_context'
../src/.libs/liblinc.a(linc-source.o): In function `link_io_add_watch_fd':
linc-source.c:(.text+0x327): undefined reference to `link_thread_io_context'
linc-source.c:(.text+0x371): undefined reference to `link_main_get_context'
collect2: ld returned 1 exit status
distcc[26585] ERROR: compile (null) on localhost failed
make[3]: *** [test-linc] Error 1
make[3]: Leaving directory `/var/tmp/portage/gnome-base/orbit-2.14.13/work/ORBit2-2.14.13/linc2/test'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gnome-base/orbit-2.14.13/work/ORBit2-2.14.13/linc2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnome-base/orbit-2.14.13/work/ORBit2-2.14.13'
make: *** [all] Error 2



I added the line 

#include <linc/linc-connection.h>

to the files 
test-linc.c
and 
linc-source.c

And then the orbit code built without any problems

emerge --info
Portage 2.1.4.4 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0,
2.6.25.15 x86_64)
=================================================================
System uname: 2.6.25.15 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Timestamp of tree: Mon, 01 Sep 2008 08:20:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabl
ed]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-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-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shu
tdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/
fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distcc distlocks metadata-transfer parallel-f
etch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/"
LANG="en_US"
LC_ALL="en_US"
LINGUAS="en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclu
de=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://10.0.0.2/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 amr arts audiofile avi berkdb
cairo caps cdparanoia cdr cli cracklib crypt cups dbus dri dts dvb dvd dvdr dvdr
ead eds emboss encode esd evo fam fbconsysfs ffmpeg fftw firefox flac fltk fortr
an gdbm gif gnome gpm gstreamer gtk gtk2 hal iconv ipv6 isdnlog jack jack-tmpfs
java jpeg jpeg2k kde ldap mad midi mikmod mmx mmx2 mmxext mp3 mpeg mplayer mudfl
ap musicbrainz mysql ncurses nfs nis nls nptl nptlonly nsplugin ogg opengl openm
p oss pam pcre pdf perl png pppd pulseaudio python qt3 qt3support qt4 quicktime
readline reflection rtc sdl session sndfile spell spl sse sse2 ssl svg tcpd thre
adsafe tiff truetype unicode vorbis x264 xine xinetd xml xorg xv xvid zlib" ALSA
_CARDS="hdsp usbaudio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop
 empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mul
aw 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 a
uthz_default authz_groupfile authz_host authz_owner authz_user autoindex cache d
av dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filt
er headers include info log_config logio mem_cache mime mime_magic negotiation r
ewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="g
libc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz c
fontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="G
NU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LDFLAGS, P
ORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-09-02 23:02:07 UTC
what happens if you disable ccache/distcc ?
Comment 2 yknot 2008-09-03 17:56:06 UTC
emerge without distcc and with ccache worked
emerge with distcc and without ccache worked
emerge with both failed
emerge without both worked

lookes like distcc causes the compile to fail.

Comment 3 Rémi Cardona (RETIRED) gentoo-dev 2008-09-04 08:51:46 UTC
(In reply to comment #2)
> lookes like distcc causes the compile to fail.

More likely that the interaction between the two is the core issue here...

@distcc and ccache folks, what do you guys think about this?

Thanks
Comment 4 SpanKY gentoo-dev 2008-09-07 06:48:06 UTC
you need to verify completely homogeneous distcc environment
Comment 5 Rémi Cardona (RETIRED) gentoo-dev 2008-09-13 15:33:39 UTC
Please don't hesitate to reopen this bug if you can still reproduce after trying Mike's suggestion in comment #4

Thanks
Comment 6 Daniel Gryniewicz (RETIRED) gentoo-dev 2008-09-14 21:31:57 UTC
(FTR, I've always had really bad luck mixing distcc and ccache.  Either one by itself is usually fine.)