Re: Suppressing --whole-archive
Hi Ralf, Ralf Wildenhues a écrit : [...] Do files /usr/lib/mysql/libmysqlclient.la and /usr/lib/mysql/libz.la exist, and if yes, could you please post their contents? Yes they exist. [...] OK, now I'm officially confused. Both of the libraries are not convenience archives (as indicated by the nonempty 'libdir' and 'installed' settings). So I still don't see where this whole archive thingy comes from. Could be one of the other libraries. But in order to be able to say for sure, I would need to look at the output of /bin/sh ../../libtool --tag=CXX --config as well as the output of the --mode=link command line above, with --debug added as first argument after ../../libtool. Please gzip this output, it will be large. I am not completely sure of what you asked in second (--mode=link) but here is what I did : /bin/sh ../../libtool --tag=CXX --config > libtoolOutput1.txt /bin/sh ../../libtool --debug --tag=CXX --mode=link > libtoolOutput2.txt 2>&1 I would be pleased to send other information if that was not what you meant. I attached a tgz with the two files. Thanks, Ralf Thanks a lot, and have a nice week-end ! Barth -- Barthélémy von Haller barthelemy.von.hal...@cern.ch CERN PH-AID (ALICE DAQ) output.tgz Description: GNU Zip compressed data ___ http://lists.gnu.org/mailman/listinfo/libtool
Re: Suppressing --whole-archive
* Barthelemy von Haller wrote on Fri, Feb 27, 2009 at 03:22:51PM CET: > Ralf Wildenhues a écrit : >> [...] I would need to look at the output of >> /bin/sh ../../libtool --tag=CXX --config >> >> as well as the output of the --mode=link command line above, with >> --debug added as first argument after ../../libtool. Please gzip this >> output, it will be large. >> > I am not completely sure of what you asked in second (--mode=link) but > here is what I did : > /bin/sh ../../libtool --tag=CXX --config > libtoolOutput1.txt > /bin/sh ../../libtool --debug --tag=CXX --mode=link > libtoolOutput2.txt > 2>&1 > I would be pleased to send other information if that was not what you > meant. The first is ok. For the second, I meant to see the output of the following long line, when run in the correct directory: /bin/sh ../../libtool --debug --mode=link g++ -fPIC -Wall -Wextra -Wshadow -Wredundant-decls -g -O2 -o libAmoreCore.la -rpath /opt/amore/lib -release 1.1 -L/local/root/lib -L/date/monitoring/Linux -lmonitor -L/usr/local/lib -lshift -L/date/db/Linux -lDb -L/date/infoLogger/Linux -lInfo -rdynamic -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lmygcc -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lGui -pthread -lm -ldl -rdynamic -rdynamic -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lmygcc -lRMySQL CoreDict.lo StringUtility.lo Event.lo MOMessage.lo MonitorInterface.lo MonitorObject.lo MySQLServer.lo PoolInterface.lo RuntimeModule.lo SocketInterface.lo TDATEEventParser.lo Run.lo Session.lo LogBook.lo InfoLogger.lo RunControl.lo AmoreDA.lo AmoreDABackEnd.lo (and yes, both stdout and stderr in the same file please). You can probably get this output also with something like make rm -f libAmoreCore.la make libAmoreCore.la LIBTOOLFLAGS=--debug if you are using Automake >= 1.10. Thanks, Ralf ___ http://lists.gnu.org/mailman/listinfo/libtool
Re: Suppressing --whole-archive
Hi, Ralf Wildenhues a écrit : * Barthelemy von Haller wrote on Fri, Feb 27, 2009 at 03:22:51PM CET: Ralf Wildenhues a écrit : [...] I would need to look at the output of /bin/sh ../../libtool --tag=CXX --config as well as the output of the --mode=link command line above, with --debug added as first argument after ../../libtool. Please gzip this output, it will be large. I am not completely sure of what you asked in second (--mode=link) but here is what I did : /bin/sh ../../libtool --tag=CXX --config > libtoolOutput1.txt /bin/sh ../../libtool --debug --tag=CXX --mode=link > libtoolOutput2.txt 2>&1 I would be pleased to send other information if that was not what you meant. The first is ok. For the second, I meant to see the output of the following long line, when run in the correct directory: /bin/sh ../../libtool --debug --mode=link g++ -fPIC -Wall -Wextra -Wshadow -Wredundant-decls -g -O2 -o libAmoreCore.la -rpath /opt/amore/lib -release 1.1 -L/local/root/lib -L/date/monitoring/Linux -lmonitor -L/usr/local/lib -lshift -L/date/db/Linux -lDb -L/date/infoLogger/Linux -lInfo -rdynamic -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lmygcc -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lGui -pthread -lm -ldl -rdynamic -rdynamic -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lmygcc -lRMySQL CoreDict.lo StringUtility.lo Event.lo MOMessage.lo MonitorInterface.lo MonitorObject.lo MySQLServer.lo PoolInterface.lo RuntimeModule.lo SocketInterface.lo TDATEEventParser.lo Run.lo Session.lo LogBook.lo InfoLogger.lo RunControl.lo AmoreDA.lo AmoreDABackEnd.lo (and yes, both stdout and stderr in the same file please). Ok, I have attached the output of the previous command. You can probably get this output also with something like make rm -f libAmoreCore.la make libAmoreCore.la LIBTOOLFLAGS=--debug if you are using Automake >= 1.10. I did with the first method. Thanks, Ralf Cheers, Barth -- Barthélémy von Haller barthelemy.von.hal...@cern.ch CERN PH-AID (ALICE DAQ) libtoolOutput3.tgz Description: GNU Zip compressed data ___ http://lists.gnu.org/mailman/listinfo/libtool
Re: Suppressing --whole-archive
Hi again, sorry the second attachment was wrong. Here is the correct one. Cheers, Barth Ralf Wildenhues a écrit : * Barthelemy von Haller wrote on Fri, Feb 27, 2009 at 03:22:51PM CET: Ralf Wildenhues a écrit : [...] I would need to look at the output of /bin/sh ../../libtool --tag=CXX --config as well as the output of the --mode=link command line above, with --debug added as first argument after ../../libtool. Please gzip this output, it will be large. I am not completely sure of what you asked in second (--mode=link) but here is what I did : /bin/sh ../../libtool --tag=CXX --config > libtoolOutput1.txt /bin/sh ../../libtool --debug --tag=CXX --mode=link > libtoolOutput2.txt 2>&1 I would be pleased to send other information if that was not what you meant. The first is ok. For the second, I meant to see the output of the following long line, when run in the correct directory: /bin/sh ../../libtool --debug --mode=link g++ -fPIC -Wall -Wextra -Wshadow -Wredundant-decls -g -O2 -o libAmoreCore.la -rpath /opt/amore/lib -release 1.1 -L/local/root/lib -L/date/monitoring/Linux -lmonitor -L/usr/local/lib -lshift -L/date/db/Linux -lDb -L/date/infoLogger/Linux -lInfo -rdynamic -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lmygcc -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lGui -pthread -lm -ldl -rdynamic -rdynamic -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lmygcc -lRMySQL CoreDict.lo StringUtility.lo Event.lo MOMessage.lo MonitorInterface.lo MonitorObject.lo MySQLServer.lo PoolInterface.lo RuntimeModule.lo SocketInterface.lo TDATEEventParser.lo Run.lo Session.lo LogBook.lo InfoLogger.lo RunControl.lo AmoreDA.lo AmoreDABackEnd.lo (and yes, both stdout and stderr in the same file please). You can probably get this output also with something like make rm -f libAmoreCore.la make libAmoreCore.la LIBTOOLFLAGS=--debug if you are using Automake >= 1.10. Thanks, Ralf -- Barthélémy von Haller barthelemy.von.hal...@cern.ch CERN PH-AID (ALICE DAQ) libtoolOutput4.tgz Description: GNU Zip compressed data ___ http://lists.gnu.org/mailman/listinfo/libtool
Re: Linking together .dll using .a static libraries
LRN wrote: OK, maybe it's a stupid question, but i have to ask anyway. MinGW ships some static .a libraries. How do i link these to shared .dll libraries? It seems that libtool always performs a check (filemagic in my case) on each -lname argument, and to pass that check the library has to be "x86 archive import" or "x86 DLL", but not "x86 archive static". Some of those libraries are always linked as example mingwex. Also you may pass flags to the linker: -Wl... Libtool pass it to the linker, i.e. you may pass def-file or library (-lXXX) . Roumen ___ http://lists.gnu.org/mailman/listinfo/libtool