I'm trying to build the current cvs tree on both osx, and 64 bit Linux, and 
both are failing with link errors against nsthread.

To build, I'm running nsconfig.tcl, then make.  

Is there a different process these days?

On Linux:

/usr/local/bin/tclsh8.6 /opt/tmp/aol/aolserver/util/nsremove.tcl nsthreadtest
gcc  -o nsthreadtest nsthreadtest.o \
                -L. -lnsthread -L/opt/ActiveTcl-8.6/lib -ltcl8.6 -ldl -lz  
-lpthread -lieee -lm  -lgcc_s   -Wl,--export-dynamic  -Wl,-rpath,/usr/local/lib 
-Wl,-rpath,/lib
nsthreadtest.o: In function `Pthread':
nsthreadtest.c:(.text+0xc): undefined reference to `Ns_ThreadSetName'
many more undefined references...

--

On OSX there's an ns.mak error, causing gcc to try to build both for 64 and 32 
bit architectures (ns.mak has "gcc -arch x86_64 -arch i386"), but then the same 
link error appears:

gcc -DALLOW_EMPTY_EXPAND -arch x86_64  -pipe -fvisibility=hidden   -isysroot 
/Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.5  -o nsthreadtest 
nsthreadtest.o \
                -L. -lnsthread -F/Library/Frameworks -framework Tcl  -lz  
-lpthread -framework CoreFoundation     -headerpad_max_install_names 
-Wl,-search_paths_first  
Undefined symbols for architecture x86_64:
  "_ns_ctime", referenced from:
      _Msg in nsthreadtest.o
      _WorkThread in nsthreadtest.o
  "_Ns_MutexLock", referenced from:
      _Msg in nsthreadtest.o
      _Pthread in nsthreadtest.o
      _DumperThread in nsthreadtest.o
      _MemTime in nsthreadtest.o
      _MemThread in nsthreadtest.o
      _main in nsthreadtest.o
      _WorkThread in nsthreadtest.o
      ...
  "_Ns_ThreadGetName", referenced from:
      _Msg in nsthreadtest.o
  "_Ns_MutexUnlock", referenced from:
      _Msg in nsthreadtest.o
      _Pthread in nsthreadtest.o
      _DumperThread in nsthreadtest.o
      _MemTime in nsthreadtest.o
      _MemThread in nsthreadtest.o
      _main in nsthreadtest.o
      _WorkThread in nsthreadtest.o
      ...
------------------------------------------------------------------------------
How fast is your code?
3 out of 4 devs don\\\'t know how their code performs in production.
Find out how slow your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219672;13503038;z?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
aolserver-talk mailing list
aolserver-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aolserver-talk

Reply via email to