Forum OpenACS Q&A: Response to OpenBSD 2.8 + AOLserver compile problem

Collapse
Posted by Jason Stanford on

Sorry for the plethora of replies to my own question here, but I think I've figured it out. I finally got it to compile w/o error. If I do a command line as user 'nsadmin' (a la ACS installs):

nsadmin:~$ ./bin/nsd -f -t sample-config.tcl
<...snipped...>
[06/Feb/2001:15:00:10][31314.991232][-main-] Notice: nsmain: AOLserver/3.2 running
[06/Feb/2001:15:00:10][31314.991232][-main-] Notice: nsmain: security info: uid=1003, euid=1003, gid=1003, egid=1003
Segmentation fault

However, when I did:

root:~nsadmin# ./bin/nsd -u nsadmin -g nsadmin -f -t sample-config.tcl

It worked... the first time, now I just keep getting segfaults. Grrr. Possibly not quite "perfect" with the linker options yet?

-Jason

P.S. Here's the mods I made to aolserver3_2/include/Makefile.global:


--- include/Makefile.global     Sat Oct  7 15:08:42 2000
+++ include/Makefile-OpenBSD2_8.global  Tue Feb  6 14:58:05 2001
@@ -8,8 +8,8 @@
 
 #
 # Installation locations.
-#
-PREFIX       =   /usr/local/aolserver
+#PREFIX       =   /usr/local/aolserver
+PREFIX       =   /home/nsadmin
 INST         =   $(PREFIX)
 INSTBIN      =   $(INST)/bin
 INSTLIB      =   $(INST)/lib
@@ -220,7 +220,8 @@
 ifeq (OpenBSD,$(shell uname))
     PLATFORM=openbsd
     CFLAGS+=-pthread -D_THREAD_SAFE
-    LDFLAGS+=-pthread -Wl,-E
+    #LDFLAGS+=-pthread -Wl,-E
+    LDFLAGS+=-pthread -Wl,-Bdynamic
     RANLIB=ranlib
     CFLAGS+=-DHAVE_CMMSG=1 -DUSE_DLSYMPREFIX=1 -DUSE_RTLD_LAZY=1
     CFLAGS+=-DNO_TIMEZONE=1 -DHAVE_TIMEGM
@@ -288,7 +289,8 @@
 #    Note:  Tcl 7.6 on *BSD has a different name for no apparent reason.
 #
 TCL8X_DIR=tcl8.3.2
-TCL8X_LIB=libtcl8.3g.a
+#TCL8X_LIB=libtcl8.3g.a
+TCL8X_LIB=libtcl83g.a
 TCL76_DIR=tcl7.6
 ifeq (bsd, $(findstring bsd, $(PLATFORM)))
   TCL76_LIB=libtcl76.a


#eof