LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-07-2011, 07:34 AM   #1
mmpl
LQ Newbie
 
Registered: Aug 2010
Posts: 11

Rep: Reputation: 0
Amarok-2.4.0 source compilation problem


Code:
[  0%] Built target amarok_automoc
[  0%] Built target amarokcore_automoc
[  6%] Built target amarokcore
[  6%] Built target amaroklib_automoc
[  7%] Built target amarokpud
[  7%] Built target amarokocsclient_automoc
[ 10%] Built target amarokocsclient
[ 10%] Built target amarok-transcoding_automoc
[ 11%] Built target amarok-transcoding
[ 55%] Built target amaroklib
Scanning dependencies of target amarok
[ 55%] Building CXX object src/CMakeFiles/amarok.dir/amarok_automoc.o
Linking CXX executable amarok
[ 55%] Built target amarok
[ 55%] Built target amarok_collection-daapcollection_automoc
[ 56%] Built target amarok_collection-daapcollection
[ 56%] Built target amarok_collection-audiocdcollection_automoc
[ 57%] Built target amarok_collection-audiocdcollection
[ 57%] Built target amarok_collection-ipodcollection_automoc
[ 58%] Built target amarok_collection-ipodcollection
[ 58%] Built target amarok_collection-mtpcollection_automoc
[ 59%] Built target amarok_collection-mtpcollection
[ 59%] Built target amarok_collection-umscollection_automoc
[ 60%] Built target amarok_collection-umscollection
[ 60%] Built target amarok-sqlcollection_automoc
[ 62%] Built target amarok-sqlcollection
[ 62%] Built target amarok_massstorage-device_automoc
Scanning dependencies of target amarok_massstorage-device
[ 62%] Building CXX object src/core-impl/collections/db/sql/device/massstorage/CMakeFiles/amarok_massstorage-device.dir/amarok_massstorage-device_automoc.o
Linking CXX shared module ../../../../../../../lib/amarok_massstorage-device.so
[ 62%] Built target amarok_massstorage-device
[ 62%] Built target amarok_collection-mysqlecollection_automoc
Linking CXX shared module ../../../../../../lib/amarok_collection-mysqlecollection.so
/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib//libpthread.so when searching for -lpthread                                                                                                              
/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib//libpthread.a when searching for -lpthread
/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../x86_64-slackware-linux/bin/ld: cannot find -lmysqld
/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib//libdl.so when searching for -ldl
/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib//libdl.a when searching for -ldl
/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib//libz.so when searching for -lz
/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib//libz.a when searching for -lz
/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib//libpthread.so when searching for -lpthread
/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib//libpthread.a when searching for -lpthread
collect2: ld returned 1 exit status
make[2]: *** [lib/amarok_collection-mysqlecollection.so] Error 1
make[1]: *** [src/core-impl/collections/db/sql/mysqlecollection/CMakeFiles/amarok_collection-mysqlecollection.dir/all] Error 2
make: *** [all] Error 2
[1]+  Done                    xmms  (wd: ~)
(wd now: ~/Instalacje/amarok-2.4.0/amarok-2.4.0)
bash-4.1# make > ~/ll
/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib//libpthread.so when searching for -lpthread
/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib//libpthread.a when searching for -lpthread
/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../x86_64-slackware-linux/bin/ld: cannot find -lmysqld
/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib//libdl.so when searching for -ldl
/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib//libdl.a when searching for -ldl
/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib//libz.so when searching for -lz
/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib//libz.a when searching for -lz
/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib//libpthread.so when searching for -lpthread
/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib//libpthread.a when searching for -lpthread
collect2: ld returned 1 exit status
make[2]: *** [lib/amarok_collection-mysqlecollection.so] Error 1
make[1]: *** [src/core-impl/collections/db/sql/mysqlecollection/CMakeFiles/amarok_collection-mysqlecollection.dir/all] Error 2
make: *** [all] Error 2
I got Slack 13.1 with multilib can anyone can help me btw
 
Old 03-07-2011, 08:25 AM   #2
wadsworth
Member
 
Registered: Aug 2007
Distribution: Slackware64 13.37
Posts: 215

Rep: Reputation: 65
Try this:
Mirror the mysql source
Code:
lftp -c "open http://slackware.mirrors.tds.net/pub/slackware/slackware64-13.1/source/ap/ ; mirror mysql"
cd to the mysql directory and
Code:
sh mysql-embedded.build
See if Amarok will build now.

Last edited by wadsworth; 03-07-2011 at 08:33 AM.
 
Old 03-07-2011, 08:39 AM   #3
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
if you have any problem in following wad's advice, you can also install the mysql package.
 
Old 03-07-2011, 08:52 AM   #4
mmpl
LQ Newbie
 
Registered: Aug 2010
Posts: 11

Original Poster
Rep: Reputation: 0
thx its working now but im curious what that script done? its rebuild mysql or what?
 
Old 03-07-2011, 09:00 AM   #5
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
you need a MySQL library (libmysqld) that is included when you build the embedded.SlackBuild
 
Old 03-07-2011, 09:08 AM   #6
wadsworth
Member
 
Registered: Aug 2007
Distribution: Slackware64 13.37
Posts: 215

Rep: Reputation: 65
Amarok (maybe others?) needs libmysqld.a to compile, see the last line of the "embedded" script:

cp libmysqld/libmysqld.a /usr/lib${LIBDIRSUFFIX}/mysql/

This file isn't in the mysql package.

Exactly what it is/does... someone else may enlighten us.

According to google its a "UNIX static library file"
 
  


Reply



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
[SOLVED] Amarok 2.3.2 compilation Bazzaah Slackware 13 11-29-2010 04:19 PM
Slackware-current and amarok compilation perfect_circle Slackware 5 03-18-2010 12:05 PM
Kernel module with multiple source files compilation problem Last Attacker Programming 7 05-06-2006 09:10 AM
amarok compilation in fc4 daedalus12 Linux - Software 1 10-12-2005 12:40 PM
amarok 1.3 compilation problem in fc3 truelinux Linux - Newbie 1 08-26-2005 02:22 AM

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

All times are GMT -5. The time now is 11:37 PM.

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