LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 10-15-2014, 12:16 AM   #1
ndsam
LQ Newbie
 
Registered: Oct 2014
Posts: 1

Rep: Reputation: Disabled
Symbol error with GCC-4.4.2 libstdc++.so.6.0.13


Hi,



I am building GCC-4.4.2 ( open embedded recipe using bitbake version-1.8 ) for an x86 based system.

The configure options are as under:



"--enable-libssp --disable-bootstrap --disable-libgomp --disable-libmudflap"


It builds successfully after some minor changes and libstdc++.so.6.0.13 library is getting created.



My aim is to run Citrix receiver on an x86 based target. For this, I run storebrowse as follows:



./usr/lib/ICAClient/storebrowse



But I get the following errors:



./storebrowse: /usr/lib/libxml2.so.2: no version information available (required by ./storebrowse)
./storebrowse: relocation error: ./storebrowse: symbol _ZTISt15basic_streambufIwSt11char_traitsIwEE, version

GLIBCXX_3.4 not defined in file libstdc++.so.6 with link time reference.



libxml2 error can be resolved by deleting and creating a new symbolic link to libxml, but, I am unable to resolve the symbol error (_ZTISt15basic_streambufIwSt11char_traitsIwEE). I am compiling using default gcc_4.4.2.bb recipe.

Do I need to make any changes in configure options..? Or is there anything else that needs to be changed..? Please help me in this regard.


Thanks,
Sam
 
Old 10-15-2014, 04:19 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The configure line doesn't look quite right.
? Why would you "--disable-bootstrap" ?


As a once configured gcc cannot be reused, suggest :
Start from scratch with :
$ tar xvf gcc-4.4.2.tar.bz2
$ mkdir build-gcc442
$ cd build-gcc442/
$ ../gcc-4.4.2/configure --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++ --disable-multilib

This is a minimum configure line for a working gcc / g++.
If you have another gcc on the target, you will also have to add like:
--prefix=/usr/gcc442 --program-suffix=44

-
 
Old 12-28-2014, 02:33 PM   #3
debguy
Member
 
Registered: Oct 2014
Location: U.S.A.
Distribution: mixed, mostly debian slackare today
Posts: 207

Rep: Reputation: 19
???? obviously the troll is this ...

./storebrowse: /usr/lib/libxml2.so.2: no version information available (required by ./storebrowse)

find out why. if one does this

$ nm /usr/lib/libxml2.so.2

you'd likely get that error on the cmdline since usu. libxml2 wont have symbols unless you compiled it with gcc default options (default is not strip(1)ped)

so install libxml2 proper and go on to see what next error message is

> libxml2 error can be resolved by deleting and creating a new symbolic link to libxml

no, no way. who told you deleting and creating symbolic links changes anything ? that's just not so. perhaps you changed a timestamp. but during make(1) that's illegal to do. you have to completely rebuild after foo'ing timestamps to be safe.

> GLIBCXX_3.4 not defined in file libstdc++.so.6 with link time reference

your right to think you need a newer glibc (++) for ld(1) ld.so to load. there are C functions in the .so which the software is missing and 3.4 has - your not going anywhere with missing C functions of course.

** iff its libxml2 that wants GLIBC-3.4 you might use an older libxml2 which doesnt - only catch is your software may require newest libxml2 (ughgh). on the other hand who prepared your libxml2 ? it may be and older libxml2 which "needs" glibc-3.4 because it was compiled with new gcc.

whatever your doing: new things you compile with new-gcc may require new-glibc. dont install them yet and dont let your PATH use them until your done compiling. you have to chroot(1) or "log in" to a / with /lib that has new libc and works before attempting to run (some coreutils, some libs, whatever your building)
 
Old 12-28-2014, 02:44 PM   #4
debguy
Member
 
Registered: Oct 2014
Location: U.S.A.
Distribution: mixed, mostly debian slackare today
Posts: 207

Rep: Reputation: 19
_ZTISt15basic_streambufIwSt11char_traitsIwEE

is non gnu, is non linux, is non gcc

whoever bitbake is - the instructions are incomplete and possibly the process as a whole has never worked for end users a 1st time: that is your problem

i often find "compiling" advice for major works that have major / critical things missing (ie, gsrc to compile gnu wares is:

* missing: --with-gnu-ld for building coreutils

i know these people never used gsrc a 1st time without that option for anything gnu: default is OFF and using gnu or about any linux distro: use of gnu-ld is quite necessary and expected (ie, your not HPUX using gnu with .so loaded by proprietary ld)

point: i see that continually one after another. even on "linux from scratch". people that say they did things in linux that absolutely could not have been done.

http://www.linuxquestions.org/questi...-error-783012/
 
Old 12-28-2014, 02:45 PM   #5
debguy
Member
 
Registered: Oct 2014
Location: U.S.A.
Distribution: mixed, mostly debian slackare today
Posts: 207

Rep: Reputation: 19
likely when you get your "tool chain" in order and build options right

_ZTISt15basic_streambufIwSt11char_traitsIwEE dissapears without effort

but your likely to find a few or 100 things they didn't tell you first
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error compiling mysql workbench -libstdc++.so could not read symbol Ook Slackware 2 10-11-2011 08:56 AM
glib error while installing patch: symbol lookup error undefined symbol: g_dgettext mthakare Linux - Software 1 06-14-2010 04:01 AM
[SOLVED] gcc linker error - hidden symbol `stat' in /usr/lib/libc_nonshared.a(stat.oS) chaosless Linux - Software 1 09-17-2009 12:33 PM
symbol lookup error: /usr/lib/libavcodec.so.51: undefined symbol: av_crc04C11DB7 priceey Linux - Software 0 05-06-2009 08:14 AM
symbol lookup error: /usr/lib/libgtk-x11.2.0.so.0: undefined symbol:... IamI Slackware 17 02-29-2008 11:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 12:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration