Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Iconv related compile and linking problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
bagu
n00b
n00b


Joined: 25 Jun 2002
Posts: 24

PostPosted: Sat Apr 14, 2007 8:18 am    Post subject: [solved] Iconv related compile and linking problems Reply with quote

glib fails like this:
Code:

x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION -pthread -O2 -pipe -Wall -MT gconvert.lo -MD -MP -MF .deps/gconvert.Tpo -c gconvert.c  -fPIC -DPIC -o .libs/gconvert.o
gconvert.c:48:2: error: #error GNU libiconv not in use but included iconv.h is from libiconv
make[4]: *** [gconvert.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION -pthread -O2 -pipe -Wall -MT gcompletion.lo -MD -MP -MF .deps/gcompletion.Tpo -c gcompletion.c -o gcompletion.o >/dev/null 2>&1
make[4]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.12.9/work/glib-2.12.9/glib'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.12.9/work/glib-2.12.9/glib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.12.9/work/glib-2.12.9/glib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.12.9/work/glib-2.12.9'
make: *** [all] Error 2

!!! ERROR: dev-libs/glib-2.12.9 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3608:   Called src_compile
  glib-2.12.9.ebuild, line 65:   Called die


.. and SDL_ttf like this:

Code:

x86_64-pc-linux-gnu-gcc -O2 -pipe -I/usr/include/freetype2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -o .libs/showfont showfont.o  ./.libs/libSDL_ttf.so /usr/lib64/libfreetype.so -lz /usr/lib64/libSDL.so -lm -ldl -lpthread
showfont.o: In function `main':
showfont.c:(.text+0x9fb): undefined reference to `libiconv_open'
showfont.c:(.text+0xa30): undefined reference to `libiconv'
showfont.c:(.text+0xa3d): undefined reference to `libiconv_close'
showfont.c:(.text+0xab2): undefined reference to `libiconv_open'
collect2: ld returned 1 exit status
make: *** [showfont] Error 1
make: *** Waiting for unfinished jobs....
x86_64-pc-linux-gnu-gcc -O2 -pipe -I/usr/include/freetype2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -o .libs/glfont glfont.o  ./.libs/libSDL_ttf.so -L/usr/lib64 /usr/lib64/libGL.so /usr/lib64/libX11.so /usr/lib64/libXext.so /usr/lib64/libfreetype.so -lz /usr/lib64/libSDL.so -lm -ldl -lpthread
creating glfont

!!! ERROR: media-libs/sdl-ttf-2.0.8 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3142:   Called src_compile
  sdl-ttf-2.0.8.ebuild, line 31:   Called die

(even though, as you can see, it's the example program that breaks and not SDL_ttf itself)

I'm all out of ideas, recompiled glibc, ran revdep-rebuild, googled about and looked in bugzilla... Haven't found anything clearly related.

Any ideas what to try next, anyone?

emerge --info
Code:

% emerge --info
Portage 2.1.2.2 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.20-ck1 x86_64)
=================================================================
System uname: 2.6.20-ck1 x86_64 Intel(R) Core(TM)2 CPU         T7400  @ 2.16GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Fri, 13 Apr 2007 18:50:01 +0000
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
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.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-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/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.du.se/pub/os/gentoo "
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac acpi aim alsa amd64 audacious berkdb binary-drivers bitmap-fonts bluetooth bzip2 cli cpudetection cracklib crypt cups dri emacs encode ffmpeg flac fortran gdbm gpm gtk gtk2 iconv icq imap ipv6 isdnlog jack joystick jpeg libg++ maildir matroska midi mp3 msn ncurses nls nptl nptlonly nvidia ogg opengl oscar pam pcmcia pcre pdf png ppds pppd python quicktime readline reflection sdl session spell spl ssl svg tcpd threads tiff truetype truetype-fonts type1-fonts unicode vorbis wifi wma wmf wmp xorg xv xvid 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" 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:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

_________________
"That's right," he said. "We're philosophers. We think, therefore we am."
-- (Terry Pratchett, Small Gods)


Last edited by bagu on Mon Apr 16, 2007 6:28 am; edited 1 time in total
Back to top
View user's profile Send private message
SocialSecurity
n00b
n00b


Joined: 10 Mar 2007
Posts: 19

PostPosted: Sat Apr 14, 2007 5:23 pm    Post subject: Reply with quote

Try rebuilding dev-libs/libiconv.
Back to top
View user's profile Send private message
bagu
n00b
n00b


Joined: 25 Jun 2002
Posts: 24

PostPosted: Sat Apr 14, 2007 10:23 pm    Post subject: Reply with quote

dev-libs/libiconv is masked on pretty much all platforms that use glibc.. it looks like the problem discussed in http://bugs.gentoo.org/show_bug.cgi?id=2405, but the solution listed there does not work for me..
_________________
"That's right," he said. "We're philosophers. We think, therefore we am."
-- (Terry Pratchett, Small Gods)
Back to top
View user's profile Send private message
bagu
n00b
n00b


Joined: 25 Jun 2002
Posts: 24

PostPosted: Mon Apr 16, 2007 6:27 am    Post subject: Reply with quote

Solved.

Apparenty I had some cruft laying around in /usr/local/include and /usr/local/lib from some experimenting with WebKit, whose build script put some iconv versione there for it's own use. Problem was all programs I've compiled whose configure scripts was looking for iconv had linked against it, so I had a LOT of broken packages. I solved it like this:


  • Removed iconv from /usr/local
  • Ran revdep-rebuild to see what was broken (which was about 50 packages, including gcc)
  • Got a binary package of gcc made with quickpkg on another machine with similar setup
  • Got working tar binaries from the same machine that gave me the gcc binary backage so i could it install with emerge -k
  • revdep-rebuild until all broken packages was fixed


Don't do this, it sucks..
_________________
"That's right," he said. "We're philosophers. We think, therefore we am."
-- (Terry Pratchett, Small Gods)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum