If anyone is interested in compiling Aolserver in AIX 5.1+
And using the AIX native compiler
here is what I used
1)
add following to Makefile.global
#
# AIX 5.1
#
ifneq (,$(findstring AIX,$(PLAT)))
PLATFORM=aix
CC=xlc_r -bexpall
CFLAGS+=$(GCCOPTIMIZE) -DHAS_STDARG -DUSE_PROTOTYPE -DCOMPAT_43 -D_AIX
LDSO=$(LD) -G -bnoentry -lpthreads -bexpall -lc
NSDLIBS=-lm -lld -ldl
endif
2)
in
tcl8.3.2/Makefile
remove -Dsignal=ns_signal from CFLAGS
3)
in
tcl8.3.2/generic/regguts.h
#ifndef NOPARMS
#ifndef _AIX
#define NOPARMS VOID /* for empty parm lists */
#else
#define NOPARMS /* for empty parm lists */
#endif
#endif
4)
create a calls.imp file
reason for this is that AIX does not export all symbols
by default compared to solaris or hp . So you have to
tell it the symbols you need to import. Also these symbols
are imported from the executable that is why the "#!."
syntax in the begining of the file.
Where to place the file: I've placed it in all directories of modules
that need to import the symbols. I've placed it in nssock and nslog
in my build since they are the only modules I'm using just now.
Note: that the listing below might be incomplete. They may
not be the complete list of symbols exported from nsd
--------being here-------
#!.
Ns_Log
Ns_ConfigGetPath
Ns_SockAccept
Ns_QueueConn
Ns_ConfigGetValue
Ns_InfoHostname
Ns_Log
ns_inet_ntoa
ns_calloc
Ns_ConfigGetInt
ns_strdup
Ns_DStringInit
Ns_DStringVarAppend
Ns_DStringPrintf
Ns_DStringExport
Ns_RegisterDriver
Ns_MutexSetName
Ns_RegisterAtShutdown
Ns_Fatal
Ns_ThreadSetName
ns_malloc
Ns_SockSetNonBlocking
Ns_MutexLock
Ns_MutexUnlock
Ns_ThreadJoin
Ns_SockSend
Ns_SockRecv
Ns_SockListenEx
ns_sockpair
Ns_ThreadCreate
Ns_RegisterAtReady
* nslog
Ns_RegisterProcInfo
Ns_MutexInit2
Ns_PathIsAbsolute
Ns_ModulePath
Ns_DStringFree
Ns_DStringTrunc
Ns_ConfigGetBool
Ns_ScheduleDaily
Ns_RegisterAtSignal
Ns_RegisterServerTrace
Ns_TclInitInterps
Tcl_CreateCommand
Tcl_AppendResult
Tcl_SetResult
Ns_RollFile
Tcl_PosixError
Tcl_DStringAppendElement
ns_localtime
Ns_PurgeFiles
Ns_ConnPeer
Ns_DStringNAppend
Ns_LogTime
Ns_ConnResponseStatus
Ns_ConnContentSent
Ns_SetIGet
---------------end here----------------
5)
use gmake to make
--
Freddie Mendoza
[EMAIL PROTECTED]
Search Engine for Cheap Books
http://satori.com/cheapbooks