|
From: Ian C. <ian...@op...> - 2002-10-25 18:26:26
|
Yeah. I found this out late last night ;-). I've got a fun weekend understanding template instantiation... I've got a rough idea of what the problem is - I'm just looking for the simplest way of solving it. ... I'll try to get something that works on a few more versions of gcc (now that I've now built 3.2 on my machine) out this weekend. gcc 3.2 has so many advantages (for C++) over all other previous compilers that I really want to target that one.. I'll incorporate you configure.in patches also, thanks for those. On Fri, 2002-10-25 at 17:13, Karl Eichwalder wrote: > Ian Castle <ian...@op...> writes: > > > I've put up openjade-1.3.2-rc1.tar.gz on the sourceforge download page. > > [...] > > > 2) Compiles against and links to the latest OpenSP (1.5pre8 or later). > > This does not work for me on SuSE Linux 8.1. Included config/ltmain.sh > does not help to build .la files; this way I worked around the problem: > > cd config > mkdir config > libtoolize -c -f > cp config/ltmain.sh . > cd .. > ./configure > etc. > > But in the end linking openjade fails (this is with gcc 3.2): > > g++ -O2 -I. -I./../include -I/usr/include/OpenSP -I./../grove -I./../spgrove -I./../style -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"openjade\" -DVERSION=\"1.3.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_ST_BLKSIZE=1 -DSIZEOF_SIZE_T=4 -DSIZEOF_UNSIGNED_INT=4 -DSP_HAVE_LOCALE=1 -DSP_HAVE_WCHAR=1 -DSP_HAVE_GETTEXT=1 -DSIZE_T_IS_UINT=1 -DSP_HAVE_BOOL=1 -DSP_ANSI_CLASS_INST=1 -DJADE_MIF=1 -DJADE_HTML=1 -DSP_MULTI_BYTE=1 -DHAVE_DLFCN_H=1 -DDEFAULT_SCHEME_BUILTINS=\"/usr/share/builtins.dsl\" -o .libs/openjade jade.o SgmlFOTBuilder.o RtfFOTBuilder.o HtmlFOTBuilder.o TeXFOTBuilder.o TransformFOTBuilder.o MifFOTBuilder.o ../style/.libs/libostyle.so -L/home/ke/Projects/openjade-1.3.2/grove -L/home/ke/! Projects/openjade-1.3.2/grove/.libs -L/home/ke/Projects/openjade-1.3.2/lib -L/home/ke/Projects/openjade-1.3.2/lib/.libs -L/home/ke/Projects/openjade-1.3.2/spgrove -L/home/ke/Projects/openjade-1.3.2/spgrove/.libs /home/ke/Projects/openjade-1.3.2/spgrove/.libs/libospgrove.so ../spgrove/.libs/libospgrove.so /home/ke/Projects/openjade-1.3.2/grove/.libs/libogrove.so /usr/lib/libosp.so -lpthread -lnsl ../grove/.libs/libogrove.so -lm > jade.o: In function `OpenJade_DSSSL::JadeApp::processOption(char, char const*)': > jade.o(.text+0x557): undefined reference to `OpenSP::StringMessageArg::StringMessageArg[in-charge](OpenSP::String<unsigned> const&)' > jade.o: In function `OpenJade_DSSSL::JadeApp::makeFOTBuilder(OpenJade_DSSSL::FOTBuilder::Extension const*&)': > jade.o(.text+0x6af): undefined reference to `OpenSP::OutputCodingSystem::convertOut(OpenSP::String<unsigned> const&) const' > jade.o(.text+0x919): undefined reference to `OpenSP::StringMessageArg::StringMessageArg[in-charge](OpenSP::String<unsigned> const&)' > jade.o(.gnu.linkonce.d._ZTVN14OpenJade_DSSSL7JadeAppE+0x10): undefined reference to `OpenSP::CmdLineApp::getMessageText(OpenSP::MessageFragment const&, OpenSP::String<unsigned>&)' > SgmlFOTBuilder.o: In function `OpenJade_DSSSL::SgmlFOTBuilder::outputIcs()': > SgmlFOTBuilder.o(.text+0x1adc): undefined reference to `OpenSP::StrOutputCharStream::extractString(OpenSP::String<unsigned>&)' > SgmlFOTBuilder.o(.text+0x1af0): undefined reference to `OpenSP::OutputCharStream::write(unsigned const*, unsigned)' > SgmlFOTBuilder.o: In function `OpenJade_DSSSL::SgmlFOTBuilder::setFontFamilyName(OpenSP::String<unsigned> const&)': > > -=-=-=-=-=-=-=-=-=-=-=-=-=- cut here -=-=-=-=-=-=-=-=-=-=-=-=-=- > > I see many a lot compiler warnings: > > In file included from ../include/config.h:10, > from Node.cxx:8: > /usr/include/OpenSP/config.h:405:1: warning: "SP_HAVE_BOOL" redefined > Node.cxx:1:1: warning: this is the location of the previous definition > /usr/include/OpenSP/config.h:489:1: warning: "SP_ANSI_CLASS_INST" redefined > Node.cxx:1:1: warning: this is the location of the previous definition > /usr/include/OpenSP/config.h:493:1: warning: "SP_HAVE_LOCALE" redefined > Node.cxx:1:1: warning: this is the location of the previous definition > /usr/include/OpenSP/config.h:497:1: warning: "SP_HAVE_GETTEXT" redefined > Node.cxx:1:1: warning: this is the location of the previous definition > In file included from Node.cxx:8: > ../include/config.h:55:1: warning: "SP_ANSI_LIB" redefined > In file included from ../include/config.h:10, > from Node.cxx:8: > /usr/include/OpenSP/config.h:525:1: warning: this is the location of the previous definition > Node.cxx:481:26: warning: pasting "::" and "text" does not give a valid preprocessing token > Node.cxx:482:28: warning: pasting "::" and "cdata" does not give a valid preprocessing token > Node.cxx:483:28: warning: pasting "::" and "sdata" does not give a valid preprocessing token > Node.cxx:484:28: warning: pasting "::" and "ndata" does not give a valid preprocessing token > Node.cxx:485:22: warning: pasting "::" and "pi" does not give a valid preprocessing token > > -- > ke...@su... (work) / ke...@gm... (home): | > http://www.suse.de/~ke/ | ,__o > Free Translation Project: | _-\_<, > http://www.iro.umontreal.ca/contrib/po/HTML/ | (*)/'(*) |