Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Strange symbol lookup errors since upgrade gcc to 4
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
trakon88
Tux's lil' helper
Tux's lil' helper


Joined: 04 Aug 2002
Posts: 84
Location: Hamburg, Germany

PostPosted: Sun Oct 15, 2006 10:58 pm    Post subject: Strange symbol lookup errors since upgrade gcc to 4 Reply with quote

Hello,

don't know if this is right here ... since I upgraded to gcc 4 I have strange problems with applications depending on libqt. This example is for myttv (I had similar issues with amarok ...)

Edit: I first had this problem, but this seems to be solved:https://forums.gentoo.org/viewtopic-t-495756-highlight-symbol+lookup+error.htm
l
I start mythfrontend as a normal user (it also happens with mythbackend as root) and get:

alex@cube ~ $ mythfrontend
mythfrontend: symbol lookup error: /usr/lib/libmyth-0.20.so.0: undefined symbol: _ZN9QGroupBox10setEnabledEb
but,
when I do a: source /etc/profile && mythfrontend it works ... this is kind off a solution but a little bit annoying and - strange, isn't it?
Can somebody tell me what's going on?
Oh yes I'm shure it's since I upgraded gcc AND I DID FOLLOW THE UPGRADE-GUIDE ...
any help appreciated

greetings alex

P.S.
I also get this with Opera:
alex@cube ~ $ opera
/opt/opera/lib/opera/9.02-20060919.6/opera: Symbol `_ZTI11QDragObject' has different size in shared object, consider re-linking
/opt/opera/lib/opera/9.02-20060919.6/opera: Symbol `_ZTI10QPopupMenu' has different size in shared object, consider re-linking
/opt/opera/lib/opera/9.02-20060919.6/opera: Symbol `_ZTI7QPixmap' has different size in shared object, consider re-linking
/opt/opera/lib/opera/9.02-20060919.6/opera: Symbol `_ZTI7QWidget' has different size in shared object, consider re-linking
/opt/opera/lib/opera/9.02-20060919.6/opera: symbol lookup error: /opt/opera/lib/opera/9.02-20060919.6/opera: undefined symbol: _ZN7QWidget21setInputMethodEnabledEb
this:
alex@cube ~ $ source /etc/profile
alex@cube ~ $ opera
works ...
Back to top
View user's profile Send private message
trakon88
Tux's lil' helper
Tux's lil' helper


Joined: 04 Aug 2002
Posts: 84
Location: Hamburg, Germany

PostPosted: Mon Oct 16, 2006 10:30 am    Post subject: Reply with quote

*bump* and further investigations
I found out the following:
when I do:
cube alex # env
MANPATH=/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.16.1/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/man:/opt/blackdown-jdk-1.4.2.03/man:/etc/java-config/system-vm/man/:/usr/qt/3/doc/man
KDE_MULTIHEAD=false
DM_CONTROL=/var/run/xdmctl
LINGUAS=de
SHELL=/bin/bash
TERM=xterm
XDM_MANAGED=/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd,method=classic
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/alex/.gtkrc-2.0:/home/alex/.kde3.5/share/config/gtkrc-2.0
GS_LIB=/home/alex/.fonts
GTK_RC_FILES=/etc/gtk/gtkrc:/home/alex/.gtkrc:/home/alex/.kde3.5/share/config/gtkrc
WINDOWID=35651591
QTDIR=/usr/qt/3
KDE_FULL_SESSION=true
LC_ALL=de_DE.utf8
ANT_HOME=/usr/share/ant-core
USER=root
PRELINK_PATH_MASK=/usr/lib/gstreamer-0.10:/usr/lib/gstreamer-0.8:/usr/lib/klibc
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.qt=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.flac=01;35:*.mp3=01;35:*.mpc=00;36:*.ogg=00;36:*.wav=00;36:*.mid=00;36:*.midi=00;36:*.au=00;36:*.flac=00;36:*.aac=00;36:
GDK_USE_XFT=1
SESSION_MANAGER=local/cube:/tmp/.ICE-unix/19992
CONFIG_PROTECT_MASK=/etc/java-config/vms/ /etc/env.d/java/ /etc/gconf /etc/terminfo /etc/revdep-rebuild /etc/splash
VMHANDLE=blackdown-jdk-1.4.2
PAGER=/usr/bin/less
XDG_CONFIG_DIRS=/usr/kde/3.5/etc/xdg
FLTK_DOCDIR=/usr/share/doc/fltk-1.1.7/html
KONSOLE_DCOP=DCOPRef(konsole-20031,konsole)
PATH=/sbin:/bin:/usr/sbin:/usr/bin
DESKTOP_SESSION=kde-3.5
PWD=/home/alex
KONSOLE_DCOP_SESSION=DCOPRef(konsole-20031,session-5)
JAVA_HOME=/etc/java-config-2/current-system-vm
GENERATION=2
JAVAC=/etc/java-config-2/current-system-vm/bin/javac
EDITOR=/bin/nano
KDEDIRS=/usr/kde/3.5:/usr:/usr/local
QMAKESPEC=linux-g++
HOME=/root
SHLVL=3
JDK_HOME=/etc/java-config-2/current-system-vm
XCURSOR_THEME=gentoo-blue
LOGNAME=root
PYTHONPATH=/usr/lib/portage/pym
LESS=-R -M --shift 5
G_FILENAME_ENCODING=UTF-8
CVS_RSH=ssh
GCC_SPECS=
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-AM3EckKBs1,guid=474833457d1cc077e16c75a21e648f00
XDG_DATA_DIRS=/usr/kde/3.5/share:/usr/share
CLASSPATH=.
PKG_CONFIG_PATH=/usr/qt/3/lib/pkgconfig
LESSOPEN=|lesspipe.sh %s
INFOPATH=/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.16.1/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/info:/usr/share/info/emacs-21
DISPLAY=:0
LADSPA_PATH=/usr/lib/ladspa
USB_DEVFS_PATH=/dev/bus/usb
OPENGL_PROFILE=nvidia
SANE_CONFIG_DIR=/etc/sane.d
CONFIG_PROTECT=/usr/share/X11/xkb /usr/kde/3.5/share/config /usr/kde/3.5/env /usr/kde/3.5/shutdown /usr/share/config /usr/kde/3.5/share/config /usr/kde/3.5/env /usr/kde/3.5/shutdown /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/xdvi/ /var/spool/fax/etc /usr/lib/fax
G_BROKEN_FILENAMES=1
XAUTHORITY=/root/.xauthACe7Kk
COLORTERM=
_=/bin/env
so LD_LIBRARY_PATH is not set - after:
cube alex # source /etc/profile
cube alex # env | grep LD
LD_LIBRARY_PATH=/usr/qt/3/lib
it is set
the question: what do I have to do to set it properly, or permanent
PLEASE HELP!!
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Tue Oct 17, 2006 4:01 am    Post subject: Reply with quote

Were the commands cited above executed on a tty or in a terminal emulator? I ask because each would indicate different problems, as in a tty the shell would likely be a login shell whereas in an emulator it would likely not be.

If running the commands from a terminal emulator, one fix would be to simply add . /etc/profile to ~/.bashrc to configure all interactive bash sessions in the same fashion as login bash sessions.
Back to top
View user's profile Send private message
rwf
Apprentice
Apprentice


Joined: 24 Jan 2004
Posts: 234
Location: mi.us

PostPosted: Wed Oct 18, 2006 12:08 am    Post subject: Reply with quote

Most strange.

What does your /etc/ld.so.conf look like?

cat /etc/ld.so.conf
# ld.so.conf autogenerated by env-update; make all changes to
# contents of /etc/env.d directory
/usr/local/lib
//usr//lib/opengl/xorg-x11/lib
/usr/i686-pc-linux-gnu/lib
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1
/usr/lib/gcc/i686-pc-linux-gnu/3.4.6
/usr/lib/nspr
/usr/lib/nss
/usr/lib
/usr/lib/lesstif-2.1
/opt/sun-jdk-1.4.2.10/jre/lib/i686/
/opt/sun-jdk-1.4.2.10/jre/lib/i686/native_threads/
/opt/sun-jdk-1.4.2.10/jre/lib/i686/client/
/opt/sun-jdk-1.4.2.10/jre/lib/i686/server/
/usr/qt/3/lib
/usr/lib/libstdc++-v3/

Note the presence of /usr/qt/3/lib. I don't run KDE so I don't have an issue with qt 3 versus qt 4.

The undefined symbols are clearly in libqt-mt.so (really libqt-mt.so.3)

objdump -T /usr/qt/3/lib/libqt-mt.so | grep _ZTI11QDragObject
006bbee0 w DO .data.rel.ro 00000020 Base _ZTI11QDragObject

Confused.


Last edited by rwf on Wed Oct 18, 2006 6:39 am; edited 2 times in total
Back to top
View user's profile Send private message
trakon88
Tux's lil' helper
Tux's lil' helper


Joined: 04 Aug 2002
Posts: 84
Location: Hamburg, Germany

PostPosted: Wed Oct 18, 2006 5:53 am    Post subject: Reply with quote

hi,

my ld.so.conf looks like yours:

# ld.so.conf autogenerated by env-update; make all changes to
# contents of /etc/env.d directory
/usr/local/lib
//usr//lib/opengl/nvidia/lib
/usr/i686-pc-linux-gnu/lib
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1
/usr/lib/nspr
/usr/lib/nss
/usr/lib
/usr/lib/seamonkey
/usr/lib/openmotif-2.2
/opt/blackdown-jdk-1.4.2.03/jre/lib/i386/
/opt/blackdown-jdk-1.4.2.03/jre/lib/i386/native_threads/
/opt/blackdown-jdk-1.4.2.03/jre/lib/i386/classic/
/opt/blackdown-jdk-1.4.2.03/jre/lib/i386/server/
/opt/Qtopia/lib
/usr/lib/qt4
/usr/kde/3.5/lib
/usr/qt/3/lib
/usr/kde/3.5/lib
/usr/games/lib
/usr/lib/fltk-1.1
/usr/lib/libstdc++-v3/

I do not understand this, in the moment mythtv and opera are the only applications making this problem ... do you have any suggestions?
alex
Back to top
View user's profile Send private message
rwf
Apprentice
Apprentice


Joined: 24 Jan 2004
Posts: 234
Location: mi.us

PostPosted: Wed Oct 18, 2006 6:18 am    Post subject: Reply with quote

The symbol lookup error: for _ZN7QWidget21setInputMethodEnabledEb is most strange since this symbol is in /usr/qt/3/lib/libqt-mt.so.3

Do you you have more than one libqt-mt.so.3 on your system? Is there one in /usr/lib/qt4/ ?

Does ldd opera show libqt-mt.so.3 => /usr/qt/3/lib/libqt-mt.so.3 0xb77ff000)
Back to top
View user's profile Send private message
trakon88
Tux's lil' helper
Tux's lil' helper


Joined: 04 Aug 2002
Posts: 84
Location: Hamburg, Germany

PostPosted: Wed Oct 18, 2006 7:03 am    Post subject: Reply with quote

I did a little bit testing:

cube ~ # ldd /usr/bin/opera
not a dynamic executable
cube ~ # ldd /usr/bin/mythfrontend
linux-gate.so.1 => (0xffffe000)
libmythtv-0.20.so.0 => /usr/lib/libmythtv-0.20.so.0 (0xb73d0000)
libmythavformat-0.20.so.0 => /usr/lib/libmythavformat-0.20.so.0 (0xb734e000)
libmythavutil-0.20.so.0 => /usr/lib/libmythavutil-0.20.so.0 (0xb7348000)
libmythavcodec-0.20.so.0 => /usr/lib/libmythavcodec-0.20.so.0 (0xb6ee1000)
libmythfreemheg-0.20.so.0 => /usr/lib/libmythfreemheg-0.20.so.0 (0xb6e62000)
libmythupnp-0.20.so.0 => /usr/lib/libmythupnp-0.20.so.0 (0xb6e08000)
libmythlivemedia-0.20.so.0 => /usr/lib/libmythlivemedia-0.20.so.0 (0xb6e06000)
libmyth-0.20.so.0 => /usr/lib/libmyth-0.20.so.0 (0xb6b33000)
libmythui-0.20.so.0 => /usr/lib/libmythui-0.20.so.0 (0xb6a90000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb6a0e000)
libmp3lame.so.0 => /usr/lib/libmp3lame.so.0 (0xb696d000)
libasound.so.2 => /usr/lib/libasound.so.2 (0xb68ad000)
libjack.so.0 => /usr/lib/libjack.so.0 (0xb6895000)
libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb6892000)
libXv.so.1 => /usr/lib/libXv.so.1 (0xb688d000)
libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0xb6887000)
libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb6882000)
libqt-mt.so.3 => /usr/qt/3/lib/libqt-mt.so.3 (0xb5f2e000)
libGLU.so.1 => /usr/lib/libGLU.so.1 (0xb5eab000)
libGL.so.1 => //usr//lib/opengl/nvidia/lib/libGL.so.1 (0xb5e26000)
libXmu.so.6 => /usr/lib/libXmu.so.6 (0xb5e10000)
libXext.so.6 => /usr/lib/libXext.so.6 (0xb5dff000)
libX11.so.6 => /usr/lib/libX11.so.6 (0xb5cfd000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb5cea000)
libstdc++.so.6 => /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libstdc++.so.6 (0xb5c09000)
libm.so.6 => /lib/libm.so.6 (0xb5be4000)
libgcc_s.so.1 => /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libgcc_s.so.1 (0xb5bd9000)
libc.so.6 => /lib/libc.so.6 (0xb5abb000)
libz.so.1 => /lib/libz.so.1 (0xb5aa8000)
libdts.so.0 => /usr/lib/libdts.so.0 (0xb5a85000)
libdl.so.2 => /lib/libdl.so.2 (0xb5a81000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb5a78000)
libmng.so.1 => /usr/lib/libmng.so.1 (0xb5a18000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb59f2000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb59cd000)
libXi.so.6 => /usr/lib/libXi.so.6 (0xb59c5000)
libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb59bb000)
libXft.so.2 => /usr/lib/libXft.so.2 (0xb59a5000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb5971000)
libSM.so.6 => /usr/lib/libSM.so.6 (0xb5968000)
libICE.so.6 => /usr/lib/libICE.so.6 (0xb5950000)
libGLcore.so.1 => //usr//lib/opengl/nvidia/lib/libGLcore.so.1 (0xb518d000)
libnvidia-tls.so.1 => //usr//lib/opengl/nvidia/lib/libnvidia-tls.so.1 (0xb518a000)
libXt.so.6 => /usr/lib/libXt.so.6 (0xb5133000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xb5130000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb512b000)
/lib/ld-linux.so.2 (0xb7f07000)
libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb5126000)
libexpat.so.0 => /usr/lib/libexpat.so.0 (0xb5106000)

libqt-mt.so.3 is missing as you can see
then:
cube ~ # locate libqt-mt.so.3
/opt/Qtopia/lib/libqt-mt.so.3
/opt/Qtopia/lib/libqt-mt.so.3.1
/opt/Qtopia/lib/libqt-mt.so.3.1.2
/usr/qt/3/lib/libqt-mt.so.3.3.6
/usr/qt/3/lib/libqt-mt.so.3.3
/usr/qt/3/lib/libqt-mt.so.3
two versions, but I have the same setup on my notebook, that I didn't upgrade to gcc4 there everything works ... and the ldd stuff shows libqt-mt.so.3
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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