Re: [Quickfix-developers] setup for building quickfix on Solaris
Brought to you by:
orenmnero
|
From: Bud G. <bu...@li...> - 2003-03-07 21:12:33
|
Had the same problem with install-sh, i removed the ctrl-m at the end of =
all the lines in the install-sh script. I think the 1st line was =
causing the shell to attempt to use /bin/sh^M as the command interpreter =
for the script. The following command should work in vi to remove all =
occurances of ^M in the file...
:g/^M/s///g
where ^M is typed as ctrl-v ctrl-m
Darn MS_DOS text files will get ya every time, hehe.
Bud Griffin
----- Original Message -----=20
From: Oren Miller=20
To: Chuck Houpt ; om...@th... ; =
qui...@li...=20
Sent: Friday, March 07, 2003 8:43 AM
Subject: RE: [Quickfix-developers] setup for building quickfix on =
Solaris
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.=20
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.=20
Chuck Houpt <zzc...@xc...> wrote:=20
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=3Dlink 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 Ja vaMessageStore.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
*** yo u 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_qui ckfix_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 proble m Martin Janssen had with the
> JNI library. It looks like the libquickfix_jni.so
> isn't beeing linked with libquickfix.la.
>=20
> Was a solution found for Martin's problem?
>=20
> - Chuck
>=20
> From: Martin Janssen=20
>=20
> Java on Solaris=20
> 2003-01-08 04:35=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
> Hi there,
>=20
>=20
>=20
> Eventhough I exactly followed all the instructions
> I could find to try a short sample
>=20
> application of my own, written in Java, this is what
> I get when I try to run it:
>=20
>=20
>=20
> Exception in thread "main"
> java.lang.UnsatisfiedLinkError:
>=20
> /export/home/mj/QuickFIX/mjtst/libquickfix_jni.so:
> ld.so.1:
>=20
>
/usr/bin/../java/bin/../bin/sparc/native_threads/java:
> fatal: relocation error: file
>=20
> /export/ho me/mj/QuickFIX/mjtst/libquickfix_jni.so:
> symbol _ZTVN3FIX16ScreenLogFactoryE:
>=20
> referenced symbol not found
>=20
> at
> java.lang.ClassLoader$NativeLibrary.load(Native
> Method)
>=20
> at
>
java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1414)
>=20
> at
>
java.lang.ClassLoader.loadLibrary(ClassLoader.java:1338)
>=20
> at
> java.lang.Runtime.loadLibrary0(Runtime.java:744)
>=20
> at
> java.lang.System.loadLibrary(System.java:815)
>=20
> at MJMain.(MJMain.java:8)
>=20
>=20
>=20
> Any clue on what I could be doing wrong ?
>=20
>=20
>=20
> Thanks in advance,
>=20
>=20
>=20
> Martin
>=20
> -----Original Message-----
> From: Oren Miller [mailto:ore...@ya...]
> Sent: Thursday, March 06, 2003 11:20 AM
> To: Chuck Houpt;
> qui...@li...
> Subject: Re: [Quic kfix-developers] setup for
> building quickfix on Solaris
>=20
>=20
>=20
> 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.=20
>=20
>=20
> 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.=20
>=20
>=20
> Chuck Houpt wrote:=20
>=20
>=20
> I'm having trouble getting quickfix 1.3.2 compiled
> und er Solaris 8 with gcc-3.2.2
>=20
> Here's the setup I have:
>=20
> From www.sunfreeware.com, I've installed:
> gcc-3.2.2-sol8-sparc-local in /usr/local
>=20
> I built and installed libxml2-2.4.30 in /usr/local
>=20
> 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...).
>=20
> ./configure and make seem to run ok, but when I try
> to install, it seems to have trouble with install-sh
> (see below).
>=20
> Any ideas on where I've gone wrong would be greatly
> appreciated.
>=20
> Thanks - Chuck
>=20
> /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++'
> Maki ng 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=3Dinstall
> ../.././install-sh -c libquickfix.la /usr/
> local/lib/libquickfix.la
> ../.././install-sh -c .libs/lib quickfix.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
>=20
>=20
>=20
>=20
>
-------------------------------------------------------
> 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
>=20
>=20
>=20
>=20
> _____=20
>=20
> Do you Yahoo!?
> Yahoo!=20
>
> Tax Center - forms, calculators, tips, and more
>=20
>=20
=3D=3D=3D message truncated =3D=3D=3D
__________________________________________________
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
|