gnash-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-dev] Linking problems on cross-compile


From: mendez
Subject: [Gnash-dev] Linking problems on cross-compile
Date: Wed, 10 Jun 2009 17:07:28 +0200
User-agent: Internet Messaging Program (IMP) H3 (4.3.5-cvs)


Dear all,

Well, I am stuck. I can't seem to get around a linking error while trying to cross compile the latest gnash: linux to windows.

The error is as follows:

-------------------------Error begins-------------------------------------

make[2]: Entering directory `/home/mendez/Sandbox/Gnash-latest/trunk/utilities' i686-pc-mingw32-g++ -DHAVE_CONFIG_H -I. -I.. -I../libbase -I../libnet -I../libamf -I../backend -I../libcore -I../libcore/asobj -I../libcore/swf -I../libcore/parser -I../libcore/vm -I../libmedia -I../libsound -DLOCALEDIR=\"/usr/local/share/locale\" -mthreads -I/home/mendez/Sandbox/sys-root/mingw/include -O0 -mthreads -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wnon-virtual-dtor -Wunused -MT processor.o -MD -MP -MF .deps/processor.Tpo -c -o processor.o processor.cpp
mv -f .deps/processor.Tpo .deps/processor.Po
/bin/bash ../libtool --tag=CXX --mode=link i686-pc-mingw32-g++ -O0 -mthreads -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wnon-virtual-dtor -Wunused -export-dynamic ../libltdl/libltdlc.la -L/home/mendez/Sandbox/sys-root/mingw/lib -lcurl -L/home/mendez/Sandbox/sys-root/mingw/lib -lboost_thread -lboost_date_time -Wl,--as-needed --enable-auto-import -o gprocessor.exe processor.o ../libcore/libgnashcore.la ../libamf/libgnashamf.la ../libnet/libgnashnet.la ../libbase/libgnashbase.la ../libmedia/libgnashmedia.la ../libsound/libgnashsound.la -lintl -lz -lws2_32 libtool: link: i686-pc-mingw32-g++ -O0 -mthreads -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wnon-virtual-dtor -Wunused -Wl,--as-needed --enable-auto-import -o gprocessor.exe processor.o -Wl,--export-dynamic /home/mendez/Sandbox/Gnash-latest/trunk/libltdl/./.libs/loadlibrary.a ../libltdl/.libs/libltdlc.a -L/home/mendez/Sandbox/sys-root/mingw/lib ../libcore/.libs/libgnashcore.a -L/usr/i686-pc-mingw32/sys-root/mingw/lib ../libamf/.libs/libgnashamf.a ../libnet/.libs/libgnashnet.a ../libbase/.libs/libgnashbase.a ../libmedia/.libs/libgnashmedia.a /usr/i686-pc-mingw32/sys-root/mingw/lib/libspeex.dll.a /usr/i686-pc-mingw32/sys-root/mingw/lib/libspeexdsp.dll.a ../libsound/.libs/libgnashsound.a /usr/i686-pc-mingw32/sys-root/mingw/lib/libSDL.dll.a -luser32 -lgdi32 /home/mendez/Sandbox/Gnash-latest/trunk/libcore/.libs/libgnashcore.a /home/mendez/Sandbox/Gnash-latest/trunk/libnet/.libs/libgnashnet.a /home/mendez/Sandbox/Gnash-latest/trunk/libamf/.libs/libgnashamf.a /home/mendez/Sandbox/Gnash-latest/trunk/libbase/.libs/libgnashbase.a /usr/i686-pc-mingw32/sys-root/mingw/lib/libjpeg.dll.a /usr/i686-pc-mingw32/sys-root/mingw/lib/libpng12.dll.a /usr/i686-pc-mingw32/sys-root/mingw/lib/libgif.a /usr/i686-pc-mingw32/sys-root/mingw/lib/libcurl.dll.a -lwldap32 -lwinmm -lboost_thread -lboost_date_time /usr/i686-pc-mingw32/sys-root/mingw/lib/libfreetype.dll.a -lfontconfig /usr/i686-pc-mingw32/sys-root/mingw/lib/libintl.dll.a /usr/i686-pc-mingw32/sys-root/mingw/lib/libiconv.dll.a -lz -lws2_32 -mthreads -L/usr/i686-pc-mingw32/sys-root/mingw/lib -L/usr/i686-pc-mingw32/sys-root/mingw/lib /home/mendez/mingw32/lib/gcc/i686-pc-mingw32/3.4.5/../../../../i686-pc-mingw32/bin/ld: warning: auto-importing has been activated without --enable-auto-import specified on the command line. This should work unless it involves constant data structures referencing symbols from auto-imported DLLs. ../libbase/.libs/libgnashbase.a(libgnashbase_la-extension.o):extension.cpp:(.text+0x236): undefined reference to `__imp__lt_dlsetsearchpath' ../libbase/.libs/libgnashbase.a(libgnashbase_la-extension.o):extension.cpp:(.text+0x424): undefined reference to `__imp__lt_dlsetsearchpath' ../libbase/.libs/libgnashbase.a(libgnashbase_la-extension.o):extension.cpp:(.text+0x5c1): undefined reference to `__imp__lt_dlsetsearchpath' ../libbase/.libs/libgnashbase.a(libgnashbase_la-extension.o):extension.cpp:(.text+0x75d): undefined reference to `__imp__lt_dlsetsearchpath' ../libbase/.libs/libgnashbase.a(libgnashbase_la-extension.o):extension.cpp:(.text+0xa02): undefined reference to `__imp__lt_dlsetsearchpath' ../libbase/.libs/libgnashbase.a(libgnashbase_la-sharedlib.o):sharedlib.cpp:(.text+0x306): undefined reference to `__imp__lt_dlinit' ../libbase/.libs/libgnashbase.a(libgnashbase_la-sharedlib.o):sharedlib.cpp:(.text+0x320): undefined reference to `__imp__lt_dlerror' ../libbase/.libs/libgnashbase.a(libgnashbase_la-sharedlib.o):sharedlib.cpp:(.text+0x3f0): undefined reference to `__imp__lt_dlsetsearchpath' ../libbase/.libs/libgnashbase.a(libgnashbase_la-sharedlib.o):sharedlib.cpp:(.text+0x608): undefined reference to `__imp__lt_dlinit' ../libbase/.libs/libgnashbase.a(libgnashbase_la-sharedlib.o):sharedlib.cpp:(.text+0x622): undefined reference to `__imp__lt_dlerror' ../libbase/.libs/libgnashbase.a(libgnashbase_la-sharedlib.o):sharedlib.cpp:(.text+0x6f2): undefined reference to `__imp__lt_dlsetsearchpath' ../libbase/.libs/libgnashbase.a(libgnashbase_la-sharedlib.o):sharedlib.cpp:(.text+0x9d1): undefined reference to `__imp__lt_dlclose' ../libbase/.libs/libgnashbase.a(libgnashbase_la-sharedlib.o):sharedlib.cpp:(.text+0xa81): undefined reference to `__imp__lt_dlopenext' ../libbase/.libs/libgnashbase.a(libgnashbase_la-sharedlib.o):sharedlib.cpp:(.text+0xa95): undefined reference to `__imp__lt_dlerror' ../libbase/.libs/libgnashbase.a(libgnashbase_la-sharedlib.o):sharedlib.cpp:(.text+0xad8): undefined reference to `__imp__lt_dlmakeresident' ../libbase/.libs/libgnashbase.a(libgnashbase_la-sharedlib.o):sharedlib.cpp:(.text+0xc00): undefined reference to `__imp__lt_dlsym' ../libbase/.libs/libgnashbase.a(libgnashbase_la-sharedlib.o):sharedlib.cpp:(.text+0xda0): undefined reference to `__imp__lt_dlsym' Info: resolving _speex_wb_mode by linking to __imp__speex_wb_mode (auto-import)
collect2: ld returned 1 exit status

-------------------------Error ends-------------------------------------

It seems that the "__imp__" prefix is the problem, though I am not sure of that. I am also not sure exactly how to solve this but I have tried a number of solutions.

I tried setting "--enable-shared=no" during configure. That didn't work.

I tried setting "LDFLAGS=--enable-auto-import" that didnt work either. Actually the configure didnt even work (apparently some line was scrambling my LDFLAGS and giving it to CC who promptly complained.

I have retorted to force it down the Makefiles throat. That didnt work either.

According to the undefined references it is searching for "lt_dlsetsearchpath" with the "__imp__" prefix. A quick search on that told me that the function does exist inside libltdl/ltdl.c but for some reason it cant be linked against.

Anybody wants to venture a guess? I would really appreciate it.


        Erick







reply via email to

[Prev in Thread] Current Thread [Next in Thread]