From: Larry W. V. <lv...@ca...> - 2002-03-12 11:52:46
|
I'm encountering a problem that I thought I would mention. This might be no surprise to others - I just wanted to mention it in case people were not aware. On sparc solaris 2.6, using Sun's C compiler, configure is not filling in all the information in the Makefile when it generates it. The following fields are not expanded, resulting in Makefile failures: DL_LIBS = @DL_LIBS@ MATH_LIBS = @MATH_LIBS@ TK_BIN_DIR_NATIVE = @TK_BIN_DIR_NATIVE@ TK_LIB_FILE = @TK_LIB_FILE@ TK_SRC_DIR = @TK_SRC_DIR@ tcldom_LIB_DIR = @tcldom_LIB_DIR@ tcldom_INCLUDE_DIR = @tcldom_INCLUDE_DIR@ tcldom_DIR = @tcldom_DIR@ -- Never apply a Star Trek solution to a Babylon 5 problem. Larry W. Virden <mailto:lv...@ca...> <URL: http://www.purl.org/NET/lvirden/> Even if explicitly stated to the contrary, nothing in this posting should be construed as representing my employer's opinions. -><- |
From: Larry W. V. <lv...@ca...> - 2002-05-09 11:14:28
|
Just wanted to mention that the tcldom C code still does not compile on SPARC Solaris 2.6. Yes, I can use the Tcl script version - I just thought that if people are actually doing work on the C code they might want to know it isn't compiling. I also have one question - when doing the configure, I get a warning about not being able to find "xml2" library - what is that? I don't see it mentioned in the README file; if it is an external library, shouldn't it be mentioned? I configure with this command: $ cd tcldom $ $PWD/configure --prefix=/usr/tcl84 --enable-symbols --enable-shared --enable-xml2 creating cache ./config.cache checking for gcc... cc checking whether the C compiler (cc ) works... yes checking whether the C compiler (cc ) is a cross-compiler... no checking whether we are using GNU C... no checking whether cc accepts -g... yes checking for a BSD compatible install... /projects/gnu/sparc-sun-solaris2.6/bin/ ginstall -c checking whether make sets ${MAKE}... yes checking for ranlib... ranlib checking for Cygwin environment... no checking for object suffix... o checking for mingw32 environment... no checking for executable suffix... no checking for Tcl configuration... found /vol/tclsrcsol/tcl84/tcl/unix/tclConfig. sh checking for existence of /vol/tclsrcsol/tcl84/tcl/unix/tclConfig.sh... loading checking for xml2 library file... configure: warning: Can't find xml2 library checking for tclsh... /usr/tcl84/bin/tclsh8.4 checking for tclstub library... -L/usr/tcl84/lib -ltclstub8.4t checking for building with threads... no (default) checking how to build libraries... shared checking for build with symbols... yes updating cache ./config.cache creating ./config.status creating Makefile creating src-libxml2/Makefile creating library/pkgIndex.tcl $ make all cc -DVERSION=\"2.0\" -DUSE_TCL_STUBS=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DTC L_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_DIRENT64=1 -DHAVE_STRUCT_STAT64=1 -DHAV E_TYPE_OFF64_T=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL= 1 -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DHAVE_UNI STD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_T ZNAME=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_B LKSIZE=1 -DSTDC_HEADERS=1 -DNO_UNION_WAIT=1 -DNEED_MATHERR=1 -DHAVE_SIGNED_CHAR= 1 -DHAVE_LANGINFO=1 -D_REENTRANT=1 -D_POSIX_PTHREAD_SEMANTICS=1 -DHAVE_SYS_IOCTL _H=1 -DHAVE_SYS_FILIO_H=1 -I/usr/tcl84/include -g -KPIC -c `echo /vol/ tclsrcsol/tcl84/tcldom/tcldom.c` -o tcldom.o "/vol/tclsrcsol/tcl84/tcldom/tcldom.c", line 210: warning: argument #3 is incomp atible with prototype: prototype: pointer to pointer to const char : "unknown", line 0 argument : pointer to pointer to char "/vol/tclsrcsol/tcl84/tcldom/tcldom.c", line 285: warning: argument #3 is incomp atible with prototype: prototype: pointer to pointer to const char : "unknown", line 0 argument : pointer to pointer to char rm -f libtcldom2.0.so /usr/ccs/bin/ld -G -z text -o libtcldom2.0.so tcldom.o -L/usr/tcl84/lib -ltclst ub8.4t : libtcldom2.0.so cd src-libxml2; make make[1]: Entering directory `/vol/tclsrcsol/tcl84/tcldom/src-libxml2' cc -DVERSION=\"2.0\" -DUSE_TCL_STUBS=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DTC L_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_DIRENT64=1 -DHAVE_STRUCT_STAT64=1 -DHAV E_TYPE_OFF64_T=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL= 1 -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DHAVE_UNI STD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_T ZNAME=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_B LKSIZE=1 -DSTDC_HEADERS=1 -DNO_UNION_WAIT=1 -DNEED_MATHERR=1 -DHAVE_SIGNED_CHAR= 1 -DHAVE_LANGINFO=1 -D_REENTRANT=1 -D_POSIX_PTHREAD_SEMANTICS=1 -DHAVE_SYS_IOCTL _H=1 -DHAVE_SYS_FILIO_H=1 -I/usr/local/include/libxml2 -g -KPIC -I/vol /tclsrcsol/tcl84/tcldom -c `echo /vol/tclsrcsol/tcl84/tcldom/src-libxml2/tcldom- libxml2.c` -o tcldom-libxml2.o "/vol/tclsrcsol/tcl84/tcldom/tcldom.h", line 23: cannot find include file: <tcl. h> "/vol/tclsrcsol/tcl84/tcldom/tcldom.h", line 80: syntax error before or at: Tcl_ Obj "/vol/tclsrcsol/tcl84/tcldom/tcldom.h", line 80: cannot recover from previous er rors cc: acomp failed for /vol/tclsrcsol/tcl84/tcldom/src-libxml2/tcldom-libxml2.c make[1]: *** [tcldom-libxml2.o] Error 2 make[1]: Leaving directory `/vol/tclsrcsol/tcl84/tcldom/src-libxml2' make: *** [libtcldom-libxml2-2.0.so] Error 2 -- Support Internet Radio <URL: http://saveinternetradio.org/ > Larry W. Virden <mailto:lv...@ca...> <URL: http://www.purl.org/NET/lvirden/> Even if explicitly stated to the contrary, nothing in this posting should be construed as representing my employer's opinions. -><- |
From: Joe E. <jen...@fl...> - 2002-05-09 14:22:31
|
Larry W. Virden wrote: > > Just wanted to mention that the tcldom C code still does not compile on > SPARC Solaris 2.6. [...] > > I configure with this command: > $ cd tcldom > $ $PWD/configure --prefix=/usr/tcl84 --enable-symbols --enable-shared --enable-xml2 Could you try this in the 'tcldom/src' directory instead? I think that should work. > I also have one question - when doing the configure, I get a warning about not > being able to find "xml2" library - what is that? I don't see it mentioned > in the README file; if it is an external library, shouldn't it be mentioned? That should be the GNOME xml library, available from <URL: http://xmlsoft.org > --Joe English jen...@fl... |
From: Larry W. V. <lv...@ca...> - 2002-05-09 17:11:26
|
$ cd tcldom/src $ $PWD/configure --prefix=/usr/tcl84 --enable-shared --enable-symbols creating cache ./config.cache checking for Tcl configuration... found /vol/tclsrcsol/tcl84/tcl/unix/tclConfig. sh checking for existence of /vol/tclsrcsol/tcl84/tcl/unix/tclConfig.sh... loading checking for Tcl public headers... /usr/tcl84/include checking for expat library... -L/usr/tcl84/lib -lexpat0.2 checking for gcc... cc checking whether the C compiler (cc ) works... yes checking whether the C compiler (cc ) is a cross-compiler... no checking whether we are using GNU C... no checking whether cc accepts -g... yes checking for a BSD compatible install... /projects/gnu/sparc-sun-solaris2.6/bin/ ginstall -c checking for Cygwin environment... no checking for object suffix... o checking for mingw32 environment... no checking for executable suffix... no checking for tclsh... /usr/tcl84/bin/tclsh8.4 checking for build with symbols... yes checking how to build libraries... shared updating cache ./config.cache creating ./config.status creating Makefile creating pkgIndex.tcl $ make all cc -DPACKAGE_NAME=\"tcldom\" -DVERSION=\"2.0\" -DPATCHLEVEL=\"1\" -DUSE_TCL_STUB S=1 -I"/usr/tcl84/include" -g -c tcldompro.c -o tcldompro.o "tcldompro.c", line 461: warning: statement not reached "tcldompro.c", line 907: warning: statement not reached "tcldompro.c", line 1120: warning: statement not reached "tcldompro.c", line 1303: warning: statement not reached "tcldompro.c", line 1415: warning: statement not reached "tcldompro.c", line 1696: warning: statement not reached "tcldompro.c", line 1842: warning: statement not reached "tcldompro.c", line 2158: warning: statement not reached "tcldompro.c", line 2248: warning: statement not reached "tcldompro.c", line 2327: warning: statement not reached cc -DPACKAGE_NAME=\"tcldom\" -DVERSION=\"2.0\" -DPATCHLEVEL=\"1\" -DUSE_TCL_STUB S=1 -I"/usr/tcl84/include" -g -c tdpExpat.c -o tdpExpat.o "tdpExpat.c", line 1073: warning: statement not reached cc -DPACKAGE_NAME=\"tcldom\" -DVERSION=\"2.0\" -DPATCHLEVEL=\"1\" -DUSE_TCL_STUB S=1 -I"/usr/tcl84/include" -g -c traversal.c -o traversal.o "traversal.c", line 1135: warning: statement not reached cc -DPACKAGE_NAME=\"tcldom\" -DVERSION=\"2.0\" -DPATCHLEVEL=\"1\" -DUSE_TCL_STUB S=1 -I"/usr/tcl84/include" -g -c livelist.c -o livelist.o "livelist.c", line 124: warning: argument #4 is incompatible with prototype: prototype: pointer to function(pointer to void, pointer to struct Tcl_In terp {pointer to char result, pointer to function(pointer to char) returning voi d freeProc, int errorLine}, pointer to char, pointer to const char, int) returni ng pointer to char : "unknown", line 0 argument : pointer to function(pointer to void, pointer to struct Tcl_In terp {pointer to char result, pointer to function(pointer to char) returning voi d freeProc, int errorLine}, pointer to char, pointer to char, int) returning poi nter to char rm -f tcldom2.0g.so /usr/ccs/bin/ld -G -z text -o tcldom2.0g.so \ tcldompro.o tdpExpat.o traversal.o livelist.o -L/usr/tcl84/lib -lexpat0. 2 -L/usr/tcl84/lib -ltclstub8.4g -L/usr/tcl84/lib -ltclstub8.4g Text relocation remains referenced against symbol offset in file <unknown> 0x1c tcldompro.o and errors go on for over 2000 more lines <unknown> 0x21dc tcldompro.o <unknown> 0x21e0 tcldompro.o <unknown> 0x21e4 tcldompro.o <unknown> 0x21e8 tcldompro.o <unknown> 0x21ec tcldompro.o <unknown> 0x2c38 tcldompro.o <unknown> 0x5b6c tcldompro.o <unknown> 0x2c3c tcldompro.o ld: fatal: relocations remain against allocatable but non-writable sections make: *** [tcldom2.0g.so] Error 1 -- Support Internet Radio <URL: http://saveinternetradio.org/ > Larry W. Virden <mailto:lv...@ca...> <URL: http://www.purl.org/NET/lvirden/> Even if explicitly stated to the contrary, nothing in this posting should be construed as representing my employer's opinions. -><- |
From: Steve B. <Ste...@zv...> - 2002-05-09 21:15:57
|
Larry W. Virden wrote: > Just wanted to mention that the tcldom C code still does not compile on > SPARC Solaris 2.6. Yes, I can use the Tcl script version - I just thought > that if people are actually doing work on the C code they might want to know > it isn't compiling. I don't have access to a Solaris box anymore (except the SF compile farm) so it's a bit hard for me to check these things out. Having said that, please submit a bug report so that it's on my TODO (TOFIX?) list. > I also have one question - when doing the configure, I get a warning about not > being able to find "xml2" library - what is that? I don't see it mentioned > in the README file; if it is an external library, shouldn't it be mentioned? That's what the '--enable-xml2' switch on the command line is for... It refers to the Gnome libxml2 library, available from http://xmlsoft.org/. If it's not mentioned in the README then you could submit a documentation bug report. This library must be installed before attempting to build TclDOM/libxml2. Cheers, Steve Ball -- Steve Ball | XSLT Standard Library | Training & Seminars Zveno Pty Ltd | Web Tcl Complete | XML XSL Schemas http://www.zveno.com/ | TclXML TclDOM | Tcl, Web Development Ste...@zv... +---------------------------+--------------------- Ph. +61 2 6242 4099 | Mobile (0413) 594 462 | Fax +61 2 6242 4099 |
From: Joe E. <jen...@fl...> - 2002-03-12 15:40:42
|
Larry W. Virden wrote: > > On sparc solaris 2.6, using Sun's C compiler, configure is not filling > in all the information in the Makefile when it generates it. The following > fields are not expanded, resulting in Makefile failures: > > DL_LIBS = @DL_LIBS@ > MATH_LIBS = @MATH_LIBS@ > [...] Which directory are you trying to compile in? These variables don't appear in tcldom/src/Makefile.in, which AFAIK is where tcldom::c currently lives (at least that's the directory I've been using.) --Joe English jen...@fl... |
From: Larry W. V. <lv...@ca...> - 2002-03-12 16:25:24
|
From: Joe English <jen...@fl...> > Which directory are you trying to compile in? > > These variables don't appear in tcldom/src/Makefile.in, > which AFAIK is where tcldom::c currently lives (at least > that's the directory I've been using.) This is using the cvs snapshot tars from activestate.com's ftp site. I'm in the tcldom top level directory, which comes with a configure script. I was running the configure first with --enable-xml2 and then with --disable-xml2 . I will try with a fresh copy and just do the wish install.tcl by itself. -- Never apply a Star Trek solution to a Babylon 5 problem. Larry W. Virden <mailto:lv...@ca...> <URL: http://www.purl.org/NET/lvirden/> Even if explicitly stated to the contrary, nothing in this posting should be construed as representing my employer's opinions. -><- |
From: Steve B. <Ste...@zv...> - 2002-03-12 22:21:15
|
> Larry W. Virden wrote: > >>On sparc solaris 2.6, using Sun's C compiler, configure is not filling >>in all the information in the Makefile when it generates it. The following >>fields are not expanded, resulting in Makefile failures: >> >>DL_LIBS = @DL_LIBS@ >>MATH_LIBS = @MATH_LIBS@ >>[...] My autoconf skills are pretty poor :-( and I don't have access to a Sun machine (any more). Perhaps someone would be kind enough to supply a patch. Joe English wrote: > Which directory are you trying to compile in? > > These variables don't appear in tcldom/src/Makefile.in, > which AFAIK is where tcldom::c currently lives (at least > that's the directory I've been using.) Larry's trying to build the libxml2 wrapper, which is separate to your sources and lives in the src-libxml2 directory. In fact, the toplevel directory now has the TclDOM generic layer code. I haven't integrated building the TclDOMPro code into the toplevel configure/make files - I'm leaving that for you to do. Cheers, Steve -- Steve Ball | XSLT Standard Library | Training & Seminars Zveno Pty Ltd | Web Tcl Complete | XML XSL Schemas http://www.zveno.com/ | TclXML TclDOM | Tcl, Web Development Ste...@zv... +---------------------------+--------------------- Ph. +61 2 6242 4099 | Mobile (0413) 594 462 | Fax +61 2 6242 4099 |