LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Failed to compile MySQLembedded as requirement of amarok 2.1 beta (https://www.linuxquestions.org/questions/linux-software-2/failed-to-compile-mysqlembedded-as-requirement-of-amarok-2-1-beta-720234/)

DaCapitalist 04-19-2009 01:20 PM

Failed to compile MySQLembedded as requirement of amarok 2.1 beta
 
Hi folks!

This is my error Code. I'm working with a LFS system trying to compile MySQL embedded as described on the webpage of amarok.

Code:

sql_tablespace.o partition_info.o sql_servers.o event_parse_data.o mini_client_errors.o pack.o client.o my_time.o my_user.o -static  ./.libs/libndb.a -lpthread -lpthread -lpthread -lpthread /usr/lib/../lib64/libstdc++.a -L/sources/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/src -L/sources/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -lm -lm -lm -L/sources/gcc-build/./gcc -L/usr/lib/../lib64 -L/lib/../lib64 -lgcc_s -lc -lgcc_s -lm -lgcc_s -lc -lgcc_s ../storage/csv/libcsv.a ../storage/heap/libheap.a ../storage/myisam/libmyisam.a ../storage/myisammrg/libmyisammrg.a ../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a -lz -lpthread -lcrypt -lnsl -lm -lpthread 
/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
make[3]: *** [mysqld] Fehler 1
make[3]: Leaving directory `/root/mysql-5.1.33/sql'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/root/mysql-5.1.33/sql'
make[1]: *** [all] Fehler 2
make[1]: Leaving directory `/root/mysql-5.1.33/sql'
make: *** [all-recursive] Fehler 1
!!! make failed, aborting

Could you please help me finding whats going wrong here?
I never saw something like -lgcc_s before and in addition the /sources directory from LFS does not exist anymore on my disk since I installed Xorg from BLFS... That's really confusing...

DaCapitalist 04-19-2009 04:21 PM

Well, I'm new to this community so I don't know if I just could not explain the problem precisely or if its that hard or if you just forgot me poor man.

So, if I can help with any information or console outputs then please let me know.

And of course I'm sorry for my bad english. It went away after school somehow ;-)

knudfl 04-20-2009 10:18 AM

Welcome to LQ.

Try finding it with 'find' :
find /lib -name libgcc_s*
find /usr/lib -name libgcc_s*

The required -lgcc_s = libgcc_s.so usually located
in /usr/lib/ is a symlink to /lib/libgcc_s.so.1
on most systems. Could be it's different on LFS ? ?
.....

DaCapitalist 04-20-2009 12:28 PM

Thanks for your reply!

here my results before I fail trying to understand them: :rolleyes:

Code:

bash-3.2# find /lib -name libgcc_s*
bash-3.2# find /usr/lib -name libgcc_s*
/usr/lib/libgcc_s.so.1
/usr/lib/libgcc_s.so
bash-3.2#

here is my ld.so.conf:
Code:

# Begin /etc/ld.so.conf

/usr/local/lib
/usr/X11/lib
/usr/lib
/lib
/usr/qt4/lib
/usr/kde4/lib

# End /etc/ld.so.conf


DaCapitalist 04-21-2009 10:38 AM

Does anybody know what to do in this case?

*friendly pushing ;-) *

DaCapitalist 04-23-2009 12:46 PM

Trying
Code:

export LDFLAGS="-L/usr/lib64 -s"
didn't help either. Where does this skript look for -lgcc_s ??

Does anyone know? Please help...:confused:

DaCapitalist 04-27-2009 10:52 AM

No idea?

Has nobody here done this before? :scratch:


All times are GMT -5. The time now is 01:42 AM.