Code Crusader 2.0.x on FreeBSD
Trying to see what the success rate is with everyone who's able to get Code Crusader 2.0.x to compile on FreeBSD either on -stable or -current. I have had no luck with getting it to compile on -stable (nor -current right now). ACE compiles successfully with config-freebsd-pthread.h and platform_freebsd_pthread.GNU, makemake compiles as well, but when it got to compiling JX core and libraries and rest (including Code Crusader) it core dumps. I modified the Makefile at the root JX dir so gmake freebsd would link in config-freebsd-pthread.h and platform_freebsd_pthread.GNU, and changed the line in ACE_JX_-1.1.22/include/make/sys/FreeBSD_g++ from: J_ACE_LIBS := -L${JX_ROOT}/lib -lACE-${ACE_LIB_VERSION} to: J_ACE_LIBS := -L${JX_ROOT}/lib -lACE-${ACE_LIB_VERSION} -pthread as per man pthread's directions to pull in libc_r.a. Does anyone have any success stories they would like to share? Or suggestions on how to cure the core dumps? I've tried the config-freebsd4.h and platform_freebsd4.GNU files from http://www.Pinyon.ORG/ace/ as well as the same files [34] from Ian West who posted his suggestions on Sat, 27 Mar 1999 23:46:14. Same core dumps on making make. Attached is the log of the make process after above modifications. Davegmake[1]: Entering directory `/usr/home/dave/temp/JX-1.1.22/lib' gmake[2]: Entering directory `/usr/home/dave/temp/JX-1.1.22/ACE' gmake[3]: Entering directory `/usr/home/dave/temp/JX-1.1.22/ACE/ACE_wrappers/ace' test -d .shobj || mkdir .shobj eg++ -Wall -O -fno-exceptions -D__ACE_INLINE__ -frepo -DACE_HAS_GNU_REPO -I. -I/usr/home/dave/temp/JX-1.1.22/ACE/ACE_wrappers -c -fpic -o .shobj/Basic_Types.o Basic_Types.cpp eg++ -Wall -O -fno-exceptions -D__ACE_INLINE__ -frepo -DACE_HAS_GNU_REPO -I. -I/usr/home/dave/temp/JX-1.1.22/ACE/ACE_wrappers -c -fpic -o .shobj/OS.o OS.cpp eg++ -Wall -O -fno-exceptions -D__ACE_INLINE__ -frepo -DACE_HAS_GNU_REPO -I. -I/usr/home/dave/temp/JX-1.1.22/ACE/ACE_wrappers -c -fpic -o .shobj/Sched_Params.o Sched_Params.cpp eg++ -Wall -O -fno-exceptions -D__ACE_INLINE__ -frepo -DACE_HAS_GNU_REPO -I. -I/usr/home/dave/temp/JX-1.1.22/ACE/ACE_wrappers -c -fpic -o .shobj/ACE.o ACE.cpp eg++ -Wall -O -fno-exceptions -D__ACE_INLINE__ -frepo -DACE_HAS_GNU_REPO -I. -I/usr/home/dave/temp/JX-1.1.22/ACE/ACE_wrappers -c -fpic -o .shobj/Active_Map_Manager.o Active_Map_Manager.cpp eg++ -Wall -O -fno-exceptions -D__ACE_INLINE__ -frepo -DACE_HAS_GNU_REPO -I. -I/usr/home/dave/temp/JX-1.1.22/ACE/ACE_wrappers -c -fpic -o .shobj/Arg_Shifter.o Arg_Shifter.cpp eg++ -Wall -O -fno-exceptions -D__ACE_INLINE__ -frepo -DACE_HAS_GNU_REPO -I. -I/usr/home/dave/temp/JX-1.1.22/ACE/ACE_wrappers -c -fpic -o .shobj/ARGV.o ARGV.cpp eg++ -Wall -O -fno-exceptions -D__ACE_INLINE__ -frepo -DACE_HAS_GNU_REPO -I. -I/usr/home/dave/temp/JX-1.1.22/ACE/ACE_wrappers -c -fpic -o .shobj/Containers.o Containers.cpp eg++ -Wall -O -fno-exceptions -D__ACE_INLINE__ -frepo -DACE_HAS_GNU_REPO -I. -I/usr/home/dave/temp/JX-1.1.22/ACE/ACE_wrappers -c -fpic -o .shobj/Dirent.o Dirent.cpp eg++ -Wall -O -fno-exceptions -D__ACE_INLINE__ -frepo -DACE_HAS_GNU_REPO -I. -I/usr/home/dave/temp/JX-1.1.22/ACE/ACE_wrappers -c -fpic -o .shobj/Dynamic.o Dynamic.cpp eg++ -Wall -O -fno-exceptions -D__ACE_INLINE__ -frepo -DACE_HAS_GNU_REPO -I. -I/usr/home/dave/temp/JX-1.1.22/ACE/ACE_wrappers -c -fpic -o .shobj/Filecache.o Filecache.cpp eg++ -Wall -O -fno-exceptions -D__ACE_INLINE__ -frepo -DACE_HAS_GNU_REPO -I. -I/usr/home/dave/temp/JX-1.1.22/ACE/ACE_wrappers -c -fpic -o .shobj/Functor.o Functor.cpp eg++ -Wall -O -fno-exceptions -D__ACE_INLINE__ -frepo -DACE_HAS_GNU_REPO -I. -I/usr/home/dave/temp/JX-1.1.22/ACE/ACE_wrappers -c -fpic -o .shobj/Get_Opt.o Get_Opt.cpp eg++ -Wall -O -fno-exceptions -D__ACE_INLINE__ -frepo -DACE_HAS_GNU_REPO -I. -I/usr/home/dave/temp/JX-1.1.22/ACE/ACE_wrappers -c -fpic -o .shobj/Hash_Map_Manager.o Hash_Map_Manager.cpp eg++ -Wall -O -fno-exceptions -D__ACE_INLINE__ -frepo -DACE_HAS_GNU_REPO -I. -I/usr/home/dave/temp/JX-1.1.22/ACE/ACE_wrappers -c -fpic -o .shobj/High_Res_Timer.o High_Res_Timer.cpp eg++ -Wall -O -fno-exceptions -D__ACE_INLINE__ -frepo -DACE_HAS_GNU_REPO -I. -I/usr/home/dave/temp/JX-1.1.22/ACE/ACE_wrappers -c -fpic -o .shobj/Method_Request.o Method_Request.cpp eg++ -Wall -O -fno-exceptions -D__ACE_INLINE__ -frepo -DACE_HAS_GNU_REPO -I. -I/usr/home/dave/temp/JX-1.1.22/ACE/ACE_wrappers -c -fpic -o .shobj/Object_Manager.o Object_Manager.cpp eg++ -Wall -O -fno-exceptions -D__ACE_INLINE__ -frepo -DACE_HAS_GNU_REPO -I. -I/usr/home/dave/temp/JX-1.1.22/ACE/ACE_wrappers -c -fpic -o .shobj/Profile_Timer.o Profile_Timer.cpp eg++ -Wall -O -fno-exceptions -D__ACE_INLINE__ -frepo -DACE_HAS_GNU_REPO -I. -I/usr/home/dave/temp/JX-1.1.22/ACE/ACE_wrappers -c -fpic -o .shobj/Registry.o Registry.cpp eg++ -Wall -O -fno-exceptions -D__ACE_INLINE__ -frepo -DACE_HAS_GNU_REPO -I. -I/usr/home/dave/temp/JX-1.1.22/ACE/ACE_wrappers -c -fpic -o .shob
Re: Code Crusader 2.0.x on FreeBSD
Hmm, I missed that. I took -lc out, but now I get this: g++ -o makemake makemake.o ../../include/jcore/JBroadcaster.o ../../include/jcore/JCollectio n.o ../../include/jcore/JContainer.o ../../include/jcore/JProbDistr.o ../../include/jcore/JOr deredSetT.o ../../include/jcore/JOrderedSetUtil.o ../../include/jcore/JString.o ../../include /jcore/JSubstitute.o ../../include/jcore/jCommandLine.o ../../include/jcore/jStreamUtil.o ../ ../include/jcore/jStreamUtil_UNIX.o ../../include/jcore/jFStreamUtil.o ../../include/jcore/jF StreamUtil_UNIX.o ../../include/jcore/jFileUtil.o ../../include/jcore/jFileUtil_UNIX.o ../../ include/jcore/jDirUtil_UNIX.o ../../include/jcore/jUNIXUtil.o ../../include/jcore/JError.o .. /../include/jcore/JStdError.o ../../include/jcore/JRTTIBase.o ../../include/jcore/JProgressDi splay.o ../../include/jcore/jMemory.o ../../include/jcore/jMath.o ../../include/jcore/jAssert .o ../../include/jcore/JAssertBase.o ../../include/jcore/jGlobals.o ../../include/jcore/JUser Notification.o ../../include/jcore/JTextUserNotification.o ../../include/jcore/JChooseSaveFil e.o ../../include/jcore/JTextChooseSaveFile.o ../../include/jcore/JCreateProgressDisplay.o .. /../include/jcore/JCreateTextPG.o ../../include/jcore/JTextProgressDisplay.o ../../include/jc ore/JLatentPG.o ../../include/jcore/JProcess.o ../../include/jcore/JProcessError.o ../../incl ude/jcore/JThisProcess.o ../../include/jcore/jProcessUtil.o ../../include/jcore/jSignal.o ../ ../include/jcore/JInPipeStream.o ../../include/jcore/JUNIXDirInfo.o ../../include/jcore/JUNIX DirEntry.o ../../include/jcore/Templates-JString.o ../../include/jcore/Templates-int.o ../../ include/jcore/Templates-long.o ../../include/jcore/Templates-longlong.o ../../include/jcore/T emplates-double.o ../../include/jcore/JPtrArray-JString.o ../../include/jcore/JRegex.o ../../ include/jcore/JInterpolate.o ../../include/jcore/jHashFunctions.o ../../include/jcore/jNew.o ../../include/jcore/JMemoryManager.o ../../include/jcore/JMMTable.o ../../include/jcore/JMMAr rayTable.o ../../include/jcore/JMMHashTable.o ../../include/jcore/JMMMonitor.o ../../include/ jcore/JMMErrorPrinter.o ../../include/jcore/JMMRecord.o ../../include/jcore/JArray-JMMRecord. o ../../include/jcore/JHashTable-JMMRecord.o ../../misc/regex/regcomp.o ../../misc/regex/rege xec.o ../../misc/regex/regerror.o ../../misc/regex/regfree.o -L../../lib -lACE-4_6 -pthread -lstdc++ -lm -pthread /usr/local/lib/liblthread.so.0: undefined reference to `_sigsuspend' /usr/local/lib/liblthread.so.0: undefined reference to `_nanosleep' /usr/local/lib/liblthread.so.0: undefined reference to `_fork' /usr/local/lib/liblthread.so.0: undefined reference to `_sched_yield' /usr/local/lib/liblthread.so.0: undefined reference to `_write' /usr/local/lib/liblthread.so.0: undefined reference to `_close' gmake[2]: *** [makemake] Error 1 gmake[2]: Leaving directory `/usr/home/dave/temp/JX-1.1.22/programs/makemake' gmake[1]: *** [install] Error 2 gmake[1]: Leaving directory `/usr/home/dave/temp/JX-1.1.22/lib' gmake: *** [freebsd] Error 2 A search on freebsd.org/search made references that sigsuspend was removed from libc? Stranger and stranger.. On Fri, 23 Apr 1999, you wrote: > Why is it still linking with libc? > > Russell > > |g++ -o makemake makemake.o ../../include/jcore/JBroadcaster.o > ../../include/jcore/JCollection.o ../../include/jcore/JContainer.o > ../../include/jcore/JProbDistr.o ../../include/jcore/JOrderedSetT.o > ../../include/jcore/JOrderedSetUtil.o ../../include/jcore/JString.o > ../../include/jcore/JSubstitute.o ../../include/jcore/jCommandLine.o > ../../include/jcore/jStreamUtil.o ../../include/jcore/jStreamUtil_UNIX.o > ../../include/jcore/jFStreamUtil.o ../../include/jcore/jFStreamUtil_UNIX.o > ../../include/jcore/jFileUtil.o ../../include/jcore/jFileUtil_UNIX.o > ../../include/jcore/jDirUtil_UNIX.o ../../include/jcore/jUNIXUtil.o > ../../include/jcore/JError.o ../../include/jcore/JStdError.o > ../../include/jcore/JRTTIBase.o ../../include/jcore/JProgressDisplay.o > ../../include/jcore/jMemory.o ../../include/jcore/jMath.o > ../../include/jcore/jAssert.o ../../include/jcore/JAssertBase.o > ../../include/jcore/jGlobals.o ../../include/jcore/JUserNotification.o > ../../include/jcore/JTextUserNotification.o .! > ./../include/jcore/JChooseSaveFil|e.o > ../../include/jcore/JTextChooseSaveFile.o > ../../include/jcore/JCreateProgressDisplay.o > ../../include/jcore/JCreateTextPG.o > ../../include/jcore/JTextProgressDisplay.o ../../include/jcore/JLatentPG.o > ../../include/jcore/JProcess.o ../../include/jcore/JProcessError.o > ../../include/jcore/JThisProcess.o ../../include/jcore/jProcessUtil.o > ../../include/jcore/jSignal.o ../../include/jcore/JInPipeStream.o > ../../include/jcore/JUNIXDirInfo.o ../../include/jcore/JUNIXDirEntry.o > ../../include/jcore/Templates-JString.o ../../include/jcore/Templates-int.o > ../../include/jcore/Templates-long.o ../../include/jcore/Te
Re: Code Crusader 2.0.x on FreeBSD
%Hmm, I missed that. I took -lc out, but now I get this: % [...] %/usr/local/lib/liblthread.so.0: undefined reference to `_sigsuspend' %/usr/local/lib/liblthread.so.0: undefined reference to `_nanosleep' %/usr/local/lib/liblthread.so.0: undefined reference to `_fork' %/usr/local/lib/liblthread.so.0: undefined reference to `_sched_yield' %/usr/local/lib/liblthread.so.0: undefined reference to `_write' %/usr/local/lib/liblthread.so.0: undefined reference to `_close' %gmake[2]: *** [makemake] Error 1 %gmake[2]: Leaving directory `/usr/home/dave/temp/JX-1.1.22/programs/makemake' %gmake[1]: *** [install] Error 2 %gmake[1]: Leaving directory `/usr/home/dave/temp/JX-1.1.22/lib' %gmake: *** [freebsd] Error 2 % %A search on freebsd.org/search made references that sigsuspend was removed from %libc? Stranger and stranger.. because liblthread is linuxthreads, and you really want what the original ACE configuration probably specified, given the time frame, which is libc_r threads. I am converging in on getting a performance analysis done of libc_r and linuxthreads on ACE and TAO (!!) nailed down, so I don't have time to build this stuff though it looks very interesting. Please do not use any of my config files at www.pinyon.org/ace for this sort of thing. Switching amongst the thread libs is a real mess right now but I have got most of it automated. Still some glitches though. I will say for those interested that the sched.diff patch on Richard Seaman's page works as advertised, and I am just drooling at the prospect of running the full set of "real-time" priority tests on the set of described in several papers on Douglas Schmidt's site. Way cool, everybody who has worked on threads or scheduling! Thanks! Cheers, Russell % % %On Fri, 23 Apr 1999, you wrote: %> Why is it still linking with libc? %> %> Russell %> %> |g++ -o makemake makemake.o ../../include/jcore/JBroadcaster.o ../../include/jcore/JCollection.o ../../include/jcore/JContainer.o ../../include/jcore/JProbDistr.o ../../include/jcore/JOrderedSetT.o ../../include/jcore/JOrderedSetUtil.o ../../include/jcore/JString.o ../../include/jcore/JSubstitute.o ../../include/jcore/jCommandLine.o ../../include/jcore/jStreamUtil.o ../../include/jcore/jStreamUtil_UNIX.o ../../include/jcore/jFStreamUtil.o ../../include/jcore/jFStreamUtil_UNIX.o ../../include/jcore/jFileUtil.o ../../include/jcore/jFileUtil_UNIX.o ../../include/jcore/jDirUtil_UNIX.o ../../include/jcore/jUNIXUtil.o ../../include/jcore/JError.o ../../include/jcore/JStdError.o ../../include/jcore/JRTTIBase.o ../../include/jcore/JProgressDisplay.o ../../include/jcore/jMemory.o ../../include/jcore/jMath.o ../../include/jcore/jAssert.o ../../include/jcore/JAssertBase.o ../../include/jcore/jGlobals.o ../../include/jcore/JUserNotification.o ../../include/jcore/JTextUserNotificatio! n.o .! %> ./../include/jcore/JChooseSaveFil|e.o ../../include/jcore/JTextChooseSaveFile.o ../../include/jcore/JCreateProgressDisplay.o ../../include/jcore/JCreateTextPG.o ../../include/jcore/JTextProgressDisplay.o ../../include/jcore/JLatentPG.o ../../include/jcore/JProcess.o ../../include/jcore/JProcessError.o ../../include/jcore/JThisProcess.o ../../include/jcore/jProcessUtil.o ../../include/jcore/jSignal.o ../../include/jcore/JInPipeStream.o ../../include/jcore/JUNIXDirInfo.o ../../include/jcore/JUNIXDirEntry.o ../../include/jcore/Templates-JString.o ../../include/jcore/Templates-int.o ../../include/jcore/Templates-long.o ../../include/jcore/Templates-longlong.o ../../include/jcore/Templates-double.o ../../include/jcore/JPtrArray-JString.o ../../include/jcore/JRegex.o ../../include/jcore/JInterpolate.o ../../include/jcore/jHashFunctions.o ../../include/jcore/jNew.o ../../include/jcore/JMemoryManager.o ../../include/jcore/JMMTable.o ../../include/jcore/JMMArrayTable.o ../../inclu! de/j! %> ccore/JMMHashTable.o ../../include/jcore/JMMMonitor.o ../../include/|jcore/JMMErrorPrinter.o ../../include/jcore/JMMRecord.o ../../include/jcore/JArray-JMMRecord.o ../../include/jcore/JHashTable-JMMRecord.o ../../misc/regex/regcomp.o ../../misc/regex/regexec.o ../../misc/regex/regerror.o ../../misc/regex/regfree.o -L../../lib -lACE-4_6 -pthread -lstdc++ -lm -lc % To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message
Re: Code Crusader 2.0.x on FreeBSD
Replying to both Scott Michel and Russell L. Carter: Scott. According to man pthread, libc_r is pulled in automatically by the -pthread switch.