Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: DSAPI make file
Feedback Type: Question
Product Area: Domino Server
Technical Area: Application Development
Platform: Linux client - RHEL
Release: 8.5.2
Reproducible: Always

Hi,
I have a problem with loading a DSAPI library into Domino Server 8.5.2 on SUSE10 x86-32bit .I think that I have a wrong make file for Linux. I can make a *.so file but when I try to load a *.so file I got a error "HTTP Server Failed to load DSAPI module..."
If somebody have a working a very simple DSAPI solotion please a contact. I would like to test it on my environment.

my make file:
#
# makefile for Notes API sample program extunix
# Linux RedHat
#
#

# set TARGET to the name of the executable to create
TARGET = redirdsapi.so

# set SOURCES to the list of C source files in this program
SOURCES = redirdsapi.c

# set HEADERS to the list of C include files in this program
HEADERS =

# set OBJECTS to the list of object files that must be linked
OBJECTS = redirdsapi.o

# CC defines the compiler.
CC = g++

# Set CCOPTS - the compiler options.
#CCOPTS = -c -mtune=i686
CCOPTS = -c -march=i686

# You may use -g flag for debugging:
#CCOPTS = -c -march=i486 -g

# set NOTESDIR to specify where to search for the Notes library file
NOTESDIR = $(Notes_ExecDirectory)

# Set LINKOPTS - the linker options passed to CC when linking.
# -o $(TARGET) causes compiler to create target rather than a.out
LINKOPTS = -o $(TARGET) -shared -fpic -Wl,-R$(NOTESDIR),-znodefs,-ztext


# Notes API header files require UNIX to be defined.
#DEFINES = -DUNIX -DLINUX -DLINUX86 -DW -DW32 -DDTRACE -fcheck-new -DPTHREAD_KERNEL -D_REENTRANT -DUSE_THREADSAFE_INTERFACES -D_POSIX_THREAD_SAFE_FUNCTIONS -DHANDLE_IS_32BITS -DHAS_IOCP -DHAS_BOOL -DHAS_DLOPEN -DUSE_PTHREAD_INTERFACES -DLARGE64_FILES -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DPRODUCTION_VERSION -DOVERRIDEDEBUG -fPIC

DEFINES = -DUNIX -DLINUX -DHANDLE_IS_32BITS

# set INCDIR to specify where to search for include files
INCDIR = $(LOTUS)/notesapi/include

# set LIBS to list all the libraries ld should link with.
LIBS = -lnotes -lm -lnsl -lpthread -lc -lresolv -ldl

# the executable depends on the objects.
$(TARGET): $(OBJECTS)
#$(CC) $(LINKOPTS) $(OBJECTS) -L$(NOTESDIR) -Wl,-rpath-link $(NOTESDIR) $(LIBS)
$(CC) $(LINKOPTS) $(OBJECTS) -L$(NOTESDIR) $(LIBS)

# the object files depend on the corresponding source files
.c.o:
$(CC) $(CCOPTS) $(DEFINES) -I$(INCDIR) $(SOURCES)

clean :
rm -rf $(TARGET) $(OBJECTS)


Feedback number WEBB9AUDZL created by ~John Minboosisterakoi on 08/23/2013

Status: Open
Comments:





Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS