Forum OpenACS Q&A: Compile aolserver-3.4.2 on HP-UX

Collapse
Posted by Cheng-Yi Hsu on
After some config file change, I can compile aolserver-3.4.2 on hp-ux 11, here is my environment
1. O/S: HP-UX B.11.11
2. GCC version 3.2 20020708
3. Gmake 3.79.1
4. ld (hp native)
ld -V
92453-07 linker command s800.sgs ld PA64 B.11.18 REL 000922
ld: 92453-07 linker linker ld B.11.18 000922

1. vi aolserver-3.4.2/tcl8.3.2/Makefile
  remove Dsignal=ns_signal from Makefile
2. vi aolserver-3.4.2/include/Makefile.global
  search HP-UX and replace config file as
#
# HP/UX
#
ifneq (,$(findstring HP-UX,$(PLAT)))
    PLATFORM=hp11
    # CC=cc
    # CFLAGS+=-Ae +DAportable +z
    LDSO=$(LD) -b
    NSDLIBS=-lm
    CFLAGS+=-D__hp11 -pipe -fPIC -Wall -Wno-unused
    LDFLAGS=-Wl,-E
    LIBS+=-lpthread
    CFLAGS+=-DUSE_DLSHL=1
endif
3. add SHLIB_PATH=$NSHOME/lib:/usr/lib on .profile

Collapse
Posted by Cheng-Yi Hsu on
To compile nsoracle-2.7 , LIBS should change to
LIBS+=-lpthread -lcl

and in .profile , should add
LD_PRELOAD=/usr/lib/libcl.2
export LD_PRELOAD