From: Vlad S. <vl...@cr...> - 2005-10-21 15:40:47
|
Can we use NS_VERSION and NS_PACKAGE instead in nsconfig.h? Zoran Vasiljevic wrote: > Hi! > > I do not know how to resolve those... > > Normally, I have a Tcl module (built with TEA) and would like > to link it together with NS. It complains about PACKAGE and > VERSION already being defined in nsconfig.h... Bad thing is > that I use those things in my C-code so whenever I load > nsconfig.h, it re-defines them :-( > > Using TEA, you get all those things defined on the command line: > > gcc -pipe -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 - > D_THREAD_SAFE=1 -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 - > DHAVE_PTHREAD_ATFORK=1 -DHAVE_READDIR_R=1 - DHAVE_THREE_ARG_READDIR_R=1 > -DHAVE_LIBKERN_OSATOMIC_H=1 - DHAVE_OSSPINLOCKLOCK=1 -DMAC_OSX_TCL=1 > -DUSE_VFORK=1 - DTCL_DEFAULT_ENCODING=\"utf-8\" -DTCL_LOAD_FROM_MEMORY=1 > - DTCL_WIDE_INT_TYPE=long\ long -DWORDS_BIGENDIAN=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 -DNO_VALUES_H=1 - > DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 - DUSE_TERMIOS=1 > -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 - DHAVE_TM_ZONE=1 > -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 - DHAVE_TM_GMTOFF=1 > -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 - DHAVE_SIGNED_CHAR=1 > -DHAVE_PUTENV_THAT_COPIES=1 -DHAVE_LANGINFO=1 - DHAVE_SYS_IOCTL_H=1 > -DHAVE_SYS_FILIO_H=1 -DTCL_WIDE_INT_TYPE=long\ long -DNO_VALUES_H=1 > -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DVERSION= \"0.2\" > -DPACKAGE=\"archdev\" -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 - > D_THREAD_SAFE=1 -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 -DHAVE_READDIR_R=1 > -DTCL_THREADS=1 -DUSE_TCL_STUBS=1 -DNS_AOLSERVER=1 -arch ppc -pipe - > I"/usr/local/include" -DNO_CONST -I../generic -I/Users/zoran/dev/ > libmacbinary/generic -I/Users/zoran/dev/libarchdev/generic -I/Users/ > zoran/dev/findutils-4.1/find -g -fno-common -g -fno-common -I/usr/ > local/aolserver/include -c `echo tclp_bg.c` -o tclp_bg.o > > -DVERSION=\"0.2\" > -DPACKAGE=\"archdev\" > > Now, as I understand, those symbols are defined by autoconf > automatically. > > Does anybody have any idea how to get out of this blues? > At the moment, I have to edit the nsconfig.h and remove > lines definig PACKAGE and VERSION but I assume this is > not the most elegant and fail-safe way... > > Another blues: the new TEA (3.3) uses PACKAGE_NAME and > PACKAGE_VERSION (obviously because of the above reason) > but NS uses them AS WELL since it also uses TEA! > My god, what a mess... > > Zoran > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > naviserver-devel mailing list > nav...@li... > https://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Vlad Seryakov 571 262-8608 office vl...@cr... http://www.crystalballinc.com/vlad/ |