Hello,
I am trying to compile a program in Solaris 2.6 using cc that is not
currently working. This is a plugin for Netscapes directory server
using some API's from OpenText. For some reason it has to be compiled
using Sun cc 4.2.
Here is the Makefile I grabbed off of the Netscape site:
# SOLARIS Makefile for Directory Server plug-in examples
#
CC = cc
LD = ld
INCLUDE_FLAGS =
CFLAGS = $(INCLUDE_FLAGS) -D_REENTRANT -KPIC
LDFLAGS = -G -L/apps/livelink/lapi/lib -llapi
OBJS = passmod.o
all: passmod.so
passmod.so: $(OBJS)
.c.o:
$(CC) $(CFLAGS) -c $<
clean:
-rm -f $(OBJS) passmod.so
Here are the errors I am getting:
"./lber.h", line 127: warning: const is a keyword in ANSI C
"./lber.h", line 127: syntax error before or at: const
"./lber.h", line 127: warning: undefined or missing type for: const
"./lber.h", line 127: warning: undefined or missing type for: int
"./llapi.h", line 27: invalid compiler control line in ".i" file
"./llapi.h", line 28: invalid compiler control line in ".i" file
"./llapi.h", line 41: invalid token: ##
"./llapi.h", line 41: undefined or not a type: __
"./llapi.h", line 41: cannot recover from previous errors
These are all in header files I did not create. They should be fine.
This did compile with gcc and fPIC instead of KPIC, but the OpenText
API's won't work unless compiled with cc. Does anyone have any
suggestion?
Thanks,
Paul Horalek