Disko Forum logo Login  |  Register  |  Lost Password
<< Start < Prev 1 2 3 Next > End >>
disko-tutorials failed with"collect2: ld returned"

Ryanyee
Posts: 13
graphgraph

disko-tutorials failed with"collect2: ld returned" 6 Years, 4 Months ago  
I must say it's my first app build on disko,but failed
[root@www 01]# pwd
/home/ryan/disko/disko-tutorials/firststeps/01

[root@www 01]# make
check for disko version >= 1.1.1
arm-linux-g++ -O3 -D__HAVE_DIRECTFB__ -D__ENABLE_SQLITE__ -D_REENTRANT -I/opt/gtk/include/disko/ -I/opt/gtk/include/libxml2 -I/opt/gtk/include -I/opt/gtk/include/sigc++-2.0 -I/opt/gtk/lib/sigc++-2.0/include -I/opt/gtk/include/libpng12 -I/opt/gtk/include/freetype2 -I/opt/gtk/include/directfb main.cpp -L/opt/gtk/lib/disko -L/opt/gtk/lib -lmmsinfo -lmmsconfig -lmmstools -lmmsgui -lmmsinput -lmmsbase -lmmscore -lxml2 -lcurl -lsigc-2.0 -lpng12 -lfreetype -ldirectfb -lz -lsqlite3 -lfusion -ldirect -lpthread -ldl -Wl,-rpath=/opt/gtk/lib/disko -Wl,-rpath=/opt/gtk/lib -o 01
/usr/local/gcc-3.4.5-glibc-2.3.6/arm-linux/bin/../lib/gcc/arm-linux/3.4.5/../../../../arm-linux/bin/ld: 01: hidden symbol `__dso_handle' in /usr/local/gcc-3.4.5-glibc-2.3.6/arm-linux/bin/../lib/gcc/arm-linux/3.4.5/crtbegin.o is referenced by DSO
collect2: ld returned 1 exit status
make: *** [all] Error 1

cause I searched by google,it maybe was DSO(dynamic shared object) problems.so I think maybe my cross compile disko-git miss something.

Nouch64 had cross compile on mips32 in here http://www.diskohq.org/forum_func=view&id=148&catid=8

can you or anyone else tell me about it? thanks
 
  The administrator has disabled public write access.
disko-tutorials failed with"collect2: ld returned"

Ryanyee
Posts: 13
graphgraph

Re:disko-tutorials failed with"collect2: ld returned" 6 Years, 4 Months ago  
By the way,I try to rebuild libmmstools.so(add -v by gcc in shlib.def),and I got this
[LD] (libmmstools.so)
Reading specs from /usr/local/gcc-3.4.5-glibc-2.3.6/arm-linux/bin/../lib/gcc/arm-linux/3.4.5/specs
Configured with: /home/jhou5/nightlybuilds/2008WW51.4at19.12.50/gcc-linux-xscale/gcc/crosstool-0.42/build/arm-linux/gcc-3.4.5-glibc-2.3.6/gcc-3.4.5/configure --target=arm-linux --host=i686-host_pc-linux-gnu --prefix=/home/jhou5/nightlybuilds/2008WW51.4at19.12.50/gcc-linux-xscale/gcc/crosstool-olo/gcc-3.4.5-glibc-2.3.6/arm-linux --with-cpu=xscale --enable-cxx-flags=-mcpu=xscale --with-float=soft --with-headers=/home/jhou5/nightlybuilds/2008WW51.4at19.12.50/gcc-linux-xscale/gcc/crosstool-olo/gcc-3.4.5-glibc-2.3.6/arm-linux/arm-linux/include --with-local-prefix=/home/jhou5/nightlybuilds/2008WW51.4at19.12.50/gcc-linux-xscale/gcc/crosstool-olo/gcc-3.4.5-glibc-2.3.6/arm-linux/arm-linux --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-__cxa_atexit --enable-languages=c,c++ --enable-shared --enable-c99 --enable-long-long
Thread model: posix
gcc version 3.4.5
/usr/local/gcc-3.4.5-glibc-2.3.6/arm-linux/bin/../libexec/gcc/arm-linux/3.4.5/collect2 --eh-frame-hdr -shared -dynamic-linker /lib/ld-linux.so.2 -X -m armelf_linux -p -o ../../lib/libmmstools.so /usr/local/gcc-3.4.5-glibc-2.3.6/arm-linux/bin/../lib/gcc/arm-linux/3.4.5/../../../../arm-linux/lib/crti.o /usr/local/gcc-3.4.5-glibc-2.3.6/arm-linux/bin/../lib/gcc/arm-linux/3.4.5/crtbeginS.o -L../../lib -L/usr/local/gcc-3.4.5-glibc-2.3.6/arm-linux/bin/../lib/gcc/arm-linux/3.4.5 -L/usr/local/gcc-3.4.5-glibc-2.3.6/arm-linux/bin/../lib/gcc -L/usr/local/gcc-3.4.5-glibc-2.3.6/arm-linux/bin/../lib/gcc/arm-linux/3.4.5/../../../../arm-linux/lib ./mmsserverinterface.o ./mmstypes.o ./mmsfiletransfer.o ./mmserror.o ./mmsdbaccess.o ./mmsdbmysql.o ./mmsmail.o ./mmsprocessmonitor.o ./mmsdatetime.o ./mmslogger.o ./mmsdbsqlite.o ./mmsrecordset.o ./mmsidfactory.o ./mmsfile.o ./mmsmutex.o ./mmsthread.o ./mmstcpserver.o ./mmsdbfreetds.o ./tools.o ./mmscrypt.o ./mmsshlhandler.o ./mmsconverter.o ./mmsfilesearch.o ./mmslogbackend.o ./mmstcpserverthread.o ./mmsdbconnmgr.o ./mmstcpclient.o ./datasource.o ./mmstafffile.o -lstdc++ -lm -lgcc_s -lc -lgcc_s /usr/local/gcc-3.4.5-glibc-2.3.6/arm-linux/bin/../lib/gcc/arm-linux/3.4.5/crtendS.o /usr/local/gcc-3.4.5-glibc-2.3.6/arm-linux/bin/../lib/gcc/arm-linux/3.4.5/../../../../arm-linux/lib/crtn.o
[AR] (libmmstools.a)
[RANLIB] (libmmstools.a)

why use /lib/ld-linux.so.2?
 
  The administrator has disabled public write access.
disko-tutorials failed with"collect2: ld returned"

Matthias
Posts: 64
graphgraph

Gender: Male Disko Location: Berlin, Germany Birthdate: 1979-04-25
Re:disko-tutorials failed with"collect2: ld returned" 6 Years, 4 Months ago  
Hi,

actually I've never seen this error message before. So I did google as well. Most of the people had this error when linking to a shared library that was linked without the '-shared' option.
I tested the disko build, but it wasn't missing. Maybe you can check this just to exclude it.

Just uncomment the following line in SConstruct:
Code:

env['SHLINKCOMSTR'] = ' [LD] $TARGET'
Then you should have a commandline like this:
Code:

arm-linux-g++ -o lib/libmmsbase.so -Wl,-Bsymbolic-functions -shared build/libs/mmsbase/mmsimportpluginhandler.os build/libs/mmsbase/mmsxmlclientinterface.os build/libs/mmsbase/mmscentralpluginhandler.os build/libs/mmsbase/mmsevent.os build/libs/mmsbase/mmseventsignup.os build/libs/mmsbase/mmsosdpluginhandler.os build/libs/mmsbase/mmsbackendpluginhandler.os build/libs/mmsbase/mmsxmlserverinterface.os build/libs/mmsbase/mmsmusicinterface.os build/libs/mmsbase/mmscoreservicemanager.os -L/opt/xine-lib-1.1.16.2/lib
Watch out for -shared. If your commandline looks the same, we'll have to investigate further... Regards, Matthias
 
  The administrator has disabled public write access.
disko-tutorials failed with"collect2: ld returned"

Ryanyee
Posts: 13
graphgraph

Re:disko-tutorials failed with"collect2: ld returned" 6 Years, 4 Months ago  
thanks ,I will try it
 
  The administrator has disabled public write access.
disko-tutorials failed with"collect2: ld returned"

Ryanyee
Posts: 13
graphgraph

Re:disko-tutorials failed with"collect2: ld returned" 6 Years, 4 Months ago  
ok,I uncomment line as you had said.I can find -share items in command line too.so no problem with disko lib.Cause I used same lib in my Webkit on gtk enviroment.(xml png...).The only new lib was sigc-2.0,maybe I should check this lib?
 
  The administrator has disabled public write access.
disko-tutorials failed with"collect2: ld returned"

Matthias
Posts: 64
graphgraph

Gender: Male Disko Location: Berlin, Germany Birthdate: 1979-04-25
Re:disko-tutorials failed with"collect2: ld returned" 6 Years, 4 Months ago  
Hi Ryanyee,

good idea to check for sigc-2.0. Please post your results.

Btw., I'm just curious, what exactly did you do with disko and webkit? Are you working on an implementation of webkit with disko as some kind of backend?

Regards,
Matthias
 
  The administrator has disabled public write access.
<< Start < Prev 1 2 3 Next > End >>
Powered by FireBoard
get the latest posts directly to your desktop