RE: [Quickfix-developers] setup for building quickfix on Solaris
Brought to you by:
orenmnero
From: Oren M. <ore...@ya...> - 2003-03-07 14:44:00
|
Ha. Ok. I believe this also another autotools bug with versions of libtool that are, wait for it, too old. Autotools causes me nearly as much pain as it saves me from what I can tell. In any case using the gcc compiler should be fine, although I think that the native linker is generally used, though I don't always trust it. Like I said though, I think this is a libtool problem and not a problem with your linker. You may also want to try running the bootstrap scripts and see if it generates a better make file for you. Chuck Houpt <zzc...@xc...> wrote:Below is the libtool call to build libquickfix_jni.*. Obviously the warnings point to the linking with libquickfix. I tried linking the .so by hand, varying the -L/-l settings, but nothing seemed to help. I'm still wondering if I have the right setup. For example, my link commands seems very different from the auto build (http://quickfix.thoughtworks.com/cchtml/solaris_gcc_2_95_3_stlport.html) It looks like the autobuild is using gcc 3.0.3 and GNU ld, rather than sun's ld - should I try to use the same tool chain as the autobuild? Any recommendations for the ideal set of sunfreeware packages to install? Thanks - Chuck /bin/sh ../../libtool --mode=link c++ -fexceptions -Wall -I/usr/local/include /libxml2 -I/usr/j2se/include -I/usr/j2se/include/solaris -o libquickfix_jni.la -rpath /usr/local/lib -version-info 0:1:0 JVM.lo Conversions.lo JavaApplication. lo JavaLog.lo JavaLogFactory.lo JavaMessageStore.lo JavaMessageStoreFactory.lo o rg_quickfix_FileStore.lo org_quickfix_FileStoreFactory.lo org_quickfix_FileLog.l o org_quickfix_FileLogFactory.lo org_quickfix_Group.lo org_quickfix_MemoryStore. lo org_quickfix_Message.lo org_quickfix_MySQLStore.lo org_quickfix_MySQLStoreFac tory.lo org_quickfix_MySQLLog.lo org_quickfix_MySQLLogFactory.lo org_quickfix_Sc reenLog.lo org_quickfix_ScreenLogFactory.lo org_quickfix_Session.lo org_quickfix _SessionID.lo org_quickfix_Settings.lo org_quickfix_SocketAcceptor.lo org_quickf ix_SocketInitiator.lo org_quickfix_ThreadedSocketAcceptor.lo org_quickfix_Thread edSocketInitiator.lo -L../../src/C++ -lquickfix -lstdc++ -L/usr/local/lib -R/usr /local/lib -lxml2 -lz -lm -lsocket -lnsl -liberty rm -fr .libs/libquickfix_jni.la .libs/libquickfix_jni.* .libs/libquickfix_jni.* *** Warning: This library needs some functionality provided by -lquickfix. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have. *** Warning: This library needs some functionality provided by -liberty. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have. *** The inter-library dependencies that have been dropped here will be *** automatically added whenever a program is linked with this library *** or is declared to -dlopen it. /usr/ccs/bin/ld -G -h libquickfix_jni.so.0 -o .libs/libquickfix_jni.so.0.0.1 JV M.lo Conversions.lo JavaApplication.lo JavaLog.lo JavaLogFactory.lo JavaMessageS tore.lo JavaMessageStoreFactory.lo org_quickfix_FileStore.lo org_quickfix_FileSt oreFactory.lo org_quickfix_FileLog.lo org_quickfix_FileLogFactory.lo org_quickfi x_Group.lo org_quickfix_MemoryStore.lo org_quickfix_Message.lo org_quickfix_MySQ LStore.lo org_quickfix_MySQLStoreFactory.lo org_quickfix_MySQLLog.lo org_quickfi x_MySQLLogFactory.lo org_quickfix_ScreenLog.lo org_quickfix_ScreenLogFactory.lo org_quickfix_Session.lo org_quickfix_SessionID.lo org_quickfix_Settings.lo org_q uickfix_SocketAcceptor.lo org_quickfix_SocketInitiator.lo org_quickfix_ThreadedS ocketAcceptor.lo org_quickfix_ThreadedSocketInitiator.lo -L../../src/C++ -lstdc ++ -L/usr/local/lib -lxml2 -lz -lm -lsocket -lnsl -lc -----Original Message----- From: Oren Miller [mailto:ore...@ya...] Sent: Thursday, March 06, 2003 1:01 PM To: Chuck Houpt; qui...@li... Subject: RE: [Quickfix-developers] setup for building quickfix on Solaris Perhaps if you post the linking instruction being sent to libtool, that would help determine what is happening. --- Chuck Houpt wrote: > Thanks! I've gotten a little farther, but I've run > into the same problem Martin Janssen had with the > JNI library. It looks like the libquickfix_jni.so > isn't beeing linked with libquickfix.la. > > Was a solution found for Martin's problem? > > - Chuck > > From: Martin Janssen > > Java on Solaris > 2003-01-08 04:35 > > > > > > > > Hi there, > > > > Eventhough I exactly followed all the instructions > I could find to try a short sample > > application of my own, written in Java, this is what > I get when I try to run it: > > > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: > > /export/home/mj/QuickFIX/mjtst/libquickfix_jni.so: > ld.so.1: > > /usr/bin/../java/bin/../bin/sparc/native_threads/java: > fatal: relocation error: file > > /export/home/mj/QuickFIX/mjtst/libquickfix_jni.so: > symbol _ZTVN3FIX16ScreenLogFactoryE: > > referenced symbol not found > > at > java.lang.ClassLoader$NativeLibrary.load(Native > Method) > > at > java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1414) > > at > java.lang.ClassLoader.loadLibrary(ClassLoader.java:1338) > > at > java.lang.Runtime.loadLibrary0(Runtime.java:744) > > at > java.lang.System.loadLibrary(System.java:815) > > at MJMain.(MJMain.java:8) > > > > Any clue on what I could be doing wrong ? > > > > Thanks in advance, > > > > Martin > > -----Original Message----- > From: Oren Miller [mailto:ore...@ya...] > Sent: Thursday, March 06, 2003 11:20 AM > To: Chuck Houpt; > qui...@li... > Subject: Re: [Quickfix-developers] setup for > building quickfix on Solaris > > > > I've seen this recently as well at a client site, > and not just with QuickFIX, but several projects > that use autotools to build. From the reports I've > read it is due to some incompatibility to newer > versions of autotools. I've spent a little time > with this but havn't resolved it yet.invested much > time in fixing it. If anybody has experienced this > on other projects, please let me know what the > resolution was. > > > Until this is fixed you can either try installing > with an older version of autotools, or do the > installation manually. Everything that is installed > is placed in the include and the lib directories > under the root quickfix directory. > > > Chuck Houpt wrote: > > > I'm having trouble getting quickfix 1.3.2 compiled > under Solaris 8 with gcc-3.2.2 > > Here's the setup I have: > > From www.sunfreeware.com, I've installed: > gcc-3.2.2-sol8-sparc-local in /usr/local > > I built and installed libxml2-2.4.30 in /usr/local > > The quickfix instructions say glibc is required for > Solaris, but there isn't a pre-packaged version on > sunfreeware, and the glibc source (2.x) complains > that Solaris isn't supported, so I went ahead > without it (probably a bad idea...). > > ./configure and make seem to run ok, but when I try > to install, it seems to have trouble with install-sh > (see below). > > Any ideas on where I've gone wrong would be greatly > appreciated. > > Thanks - Chuck > > /make install > Making install in src > make[1]: Entering directory `/tmp/quickfix/src' > Making install in C++ > make[2]: Entering directory `/tmp/quickfix/src/C++' > Making install in test > make[3]: Entering directory > `/tmp/quickfix/src/C++/test' > make[4]: Entering directory > `/tmp/quickfix/src/C++/test' > make[4]: Nothing to be done for `install-exec-am'. > make[4]: Nothing to be done for `install-data-am'. > make[4]: Leaving directory > `/tmp/quickfix/src/C++/test' > make[3]: Leaving directory > `/tmp/quickfix/src/C++/test' > make[3]: Entering directory `/tmp/quickfix/src/C++' > rm -rf ../../lib/libquickfix.a > rm -rf ../../lib/libquickfix.la > ln -s ../src/C++/.libs/libquickfix.a > ../../lib/libquickfix.a > ln -s ../src/C++/.libs/libquickfix.la > ../../lib/libquickfix.la > ./copy.sh *.h > make[4]: Entering directory `/tmp/quickfix/src/C++' > /bin/sh ../../mkinstalldirs /usr/local/lib > /bin/sh ../../libtool --mode=install > ../.././install-sh -c libquickfix.la /usr/ > local/lib/libquickfix.la > ../.././install-sh -c .libs/libquickfix.lai > /usr/local/lib/libquickfix.la > ../../libtool: ../.././install-sh: not found > make[4]: *** [install-libLTLIBRARIES] Error 1 > make[4]: Leaving directory `/tmp/quickfix/src/C++' > make[3]: *** [install-am] Error 2 > make[3]: Leaving directory `/tmp/quickfix/src/C++' > make[2]: *** [install-recursive] Error 1 > make[2]: Leaving directory `/tmp/quickfix/src/C++' > make[1]: *** [install-recursive] Error 1 > make[1]: Leaving directory `/tmp/quickfix/src' > make: *** [install-recursive] Error 1 > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of > TotalView, The debugger > for complex code. Debugging C/C++ programs can leave > you feeling lost and > disoriented. TotalView can help you find your way. > Available on major UNIX > and Linux platforms. Try it free. www.etnus.com > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > > > > > _____ > > Do you Yahoo!? > Yahoo! > > Tax Center - forms, calculators, tips, and more > > === message truncated === __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com _______________________________________________ Quickfix-developers mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfix-developers --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more |