Hi everyone,
I've have a self-written ARDBC plug-in which works just fine on
Windows, Solaris and HP-UX. When I install it and try to restart the
server on Linux I get this:
Fri Jul 20 08:29:58 2007 390695 : An error has occurred while loading
a plug-in. (ARERR 8756)
Fri Jul 20 08:29:58 2007 /appexec/ar/arsentw01_spk/plugins/
ardbccsv/linux/linux/ardbccsv.so: cannot open shared object file: File
or Directory not found.
I have ldap and reporting plugins running on this server in the same
directory, so I'm not sure what's wrong with it.
Permissions of the .so library and directories are fine.
Here is my Makefile:
rm=/bin/rm -f
CC=gcc -fPIC -DPIC -c
LINK=gcc -shared -lc -fPIC -lnsl -lpthread -static-libgcc
DEFS= -DAR_STRICT_ANSI -DLINUX -DFULL -DREMEDY_63 -D_REENTRANT
AR= ar cq
RANLIB= /usr/bin/ranlib
LIBNAME= ardbctest.so
LIBX=
INCLUDES= -I. -I.. -I../inc
DEFINES= $(INCLUDES) $(DEFS) -DSYS_UNIX=1
CFLAGS= -g -c $(DEFINES)
SRCS = ardbctest.c ardbcstubs.c TestLayer.c TestUtils.c
QualifierStruct.c crypt.c TimeStampMananger.c
OBJS = ardbctest.o ardbcstubs.o TestLayer.o TestUtils.o
QualifierStruct.o crypt.o TimeStampManager.o
LIBS = $(OBJS) $(LIBX)
.c.o:
$(rm) -f $@
$(CC) $(CFLAGS) -c $*.c
.cpp.o:
$(rm) -f $@
$(CC) $(CFLAGS) -c $*.cpp
all: $(LIBNAME)
$(LIBNAME) : $(OBJS)
$(rm) $@
$(LINK) -o $(LIBNAME) $(LIBS)
clean:
$(rm) $(OBJS) $(LIBNAME) cor *~
Do you guys think the Makefile is alright? Do you have any idea what's
wrong with this thing?
Thanks!
Mark
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the
Answers Are"