Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 188362 - gnocky-0.0.4 fails to compile because of a broken .pc file installed by gnokii
Summary: gnocky-0.0.4 fails to compile because of a broken .pc file installed by gnokii
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Alin Năstac (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-10 16:00 UTC by Seemant Kulleen (RETIRED)
Modified: 2007-08-16 20: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 Seemant Kulleen (RETIRED) gentoo-dev 2007-08-10 16:00:14 UTC
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -DPNG_NO_MMX_CODE -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libglade-2.0 -I/usr/include/libxml2      -march=prescott -O2 -pipe -fomit-frame-pointer -ftracer -MT smsview.o -MD -MP -MF .deps/smsview.Tpo -c -o smsview.o smsview.c
mv -f .deps/phonebookview.Tpo .deps/phonebookview.Po
mv -f .deps/logosview.Tpo .deps/logosview.Po
mv -f .deps/smsview.Tpo .deps/smsview.Po
i686-pc-linux-gnu-gcc  -march=prescott -O2 -pipe -fomit-frame-pointer -ftracer  -Wl,--export-dynamic -o gnocky main.o monitor.o utils.o statusbar.o preferences.o phoneview.o phonebookview.o logosview.o smsview.o -pthread -L -lgthread-2.0 -lrt -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lgnokii -lpthread -lical -lusb -lbluetooth -lXpm -lX11    
main.o: In function `main':
main.c:(.text+0x5aa): undefined reference to `g_thread_init'
collect2: ld returned 1 exit status
make[2]: *** [gnocky] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-mobilephone/gnocky-0.0.4/work/gnocky-0.0.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-mobilephone/gnocky-0.0.4/work/gnocky-0.0.4'
make: *** [all] Error 2
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2007-08-10 16:00:36 UTC
Portage 2.1.3.3 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.6-r0, 2.6.22-gentoo-r1 i686)
=================================================================
System uname: 2.6.22-gentoo-r1 i686 Genuine Intel(R) CPU T2300 @ 1.66GHz
Gentoo Base System release 1.12.10
Timestamp of tree: Fri, 10 Aug 2007 15:00:01 +0000
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/sandbox:    1.2.18.1
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.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer -ftracer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer -ftracer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer nodoc noinfo sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF8"
LC_ALL="en_US.UTF8"
LINGUAS="en en_GB en_US"
MAKEOPTS="-j3"
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="X a52 aac aalib acl acpi alsa amr apm artworkextra asf automount avahi bash-completion beagle bitmap-fonts bluetooth bogofilter bonobo branding bzip2 cairo cddb cdr chm cli cracklib crypt cscope cups daap dbus dell dia divx dri dts dvd dvdnav dvdread dvi eds effects emboss encode esd evo exif fam ffmpeg firefox flac foomatic foomaticdb fortran fpx galago gdbm gif glitz gnome gnutls graphviz gs gstreamer gtk gtk2 hal howl-compat iconv imagemagick imlib inkjar ipod isdnlog jbig jpeg jpeg2k keyring ladspa lcms libcaca libnotify libsamplerate live lm_sensors logrotate lzo mad mailwrapper matroska md5sum midi mikmod mmap mmoznomail mmx mmxext mng mono mozbranding moznocompose moznoirc mozsvg mp3 mpeg mudflap musicbrainz nautilus ncurses networkmanager new-login nogecko-sdk nptl nptlonly nsplugin numeric obex offensive ogg opengl openmp pam patch pcmcia pcre pda pdf png ppds pppd psyco python quicktime readline reflection rtc samba sdl session spell spl sqlite sse sse2 ssl startup-notification svg syslog t1lib tcpd tetex tga theora tiff truetype truetype-fonts type1-fonts unicode urandom usb userlocales vcd vidix vorbis widescreen win32codecs wma wmf wmp x86 xanim xcb xine xinerama xml xml2 xorg xv xvid xvmc zlib" ALSA_CARDS="hda-intel intel8x0 intel8x0m" 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" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB en_US" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 2 Alin Năstac (RETIRED) gentoo-dev 2007-08-11 07:28:33 UTC
The g_thread_init function is defined in -lgthread-2.0 on my box.
What version of =dev-libs/glib-2* do you have?
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2007-08-11 13:38:49 UTC
[ebuild   R   ] dev-libs/glib-2.12.13  USE="-debug -doc (-hardened)" 0 kB 

is my glib (I only have glib-2).  I'll remerge it and try gnocky again.
Comment 4 Alin Năstac (RETIRED) gentoo-dev 2007-08-11 15:59:41 UTC
I am unable to reproduce it even if I compile gnocky with glib-2.12.13 installed.
My arch is amd64. Here is the symbol:

mrness@alin ~/gentoo-cvs/app-mobilephone/gnocky $ objdump -T /usr/lib64/libgthread-2.0.so | grep g_thread_init
00000000000029e0 g    DF .text  00000000000001e0  Base        g_thread_init
0000000000000000      DF *UND*  00000000000000be              g_thread_init_glib
0000000000002bc0 g    DF .text  00000000000000a4  Base        g_thread_init_with_errorcheck_mutexes
Comment 5 Gota Serena 2007-08-16 13:53:09 UTC
(In reply to comment #4)

The real culprit is that something is setting PACKAGE_LIBS wrong so that the option "-L" is passed on without any argument. gcc thinks then that the next word in the command is its argument.
Comment 6 Alin Năstac (RETIRED) gentoo-dev 2007-08-16 16:17:14 UTC
(In reply to comment #5)
Thanks!

Seemant, please confirm the output of the following command contains that pesky -L:
    pkg-config --libs "gtk+-2.0 >= 2.0.0, glib-2.0 >= 2.0.0, gthread-2.0 >= 2.0.0, libglade-2.0 >= 2.0, gnokii >= 0.6.13"

After that, see what is the exact library that installed the faulty .pc file.
Comment 7 Seemant Kulleen (RETIRED) gentoo-dev 2007-08-16 17:32:13 UTC
looks like gnokii is the culprit:
 
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: gnokii
Description: Gnokii library interface
Version: 0.6.17
Libs: -L${libdir} -lgnokii   -lpthread -lical -lusb -lbluetooth  -L -lXpm -lX11 
Cflags: -I${includedir}
Comment 8 Alin Năstac (RETIRED) gentoo-dev 2007-08-16 20:42:54 UTC
Fixed in app-mobilephone/gnokii-0.6.18