Compiling NSAPI Plug-in in SuSe Linux using GCC 4.1.2

Hi,

I am compiling custom web server Plug-in (it is a NSAPI plug-in) in SuSe Linux Enterprise Server 10 in 32 bit mode with Sun Web Server 7.0. I am getting an compilation error in NSAPI_Main.h/NSAPI_Main.cpp. NSAPI_Main contains ‘C’ wrapper methods for the underlying plug-in code implemented in ‘C++’. I am using GCC compiler 4.1.2 to compile the code in SuSe Linux; this same code has been successfully compiled in Solaris & HP Unix earlier.

The error we are getting is:

XXXXXXXXXXXXXX:/home/user1/Plugin_new# make -f Makefile.suse_linux_nojava
cc -m32 -DNET_SSL -DLinux -DLINUX -D_REENTRANT -DMCC_HTTPD -DXP_UNIX -DSPAPI20 -D__NSAPI_INTERFACE__ -DBERKELEYSOCKETS -DEXCLUDE_JAVA_SUPPORT -shared -fPIC -I/sun/webserver7/include -I/sun/webserver7/include/base -I/sun/webserver7/include/frame -c -o NSAPI_Main.o NSAPI_Main.cpp
NSAPI_Main.h:41: error: expected constructor, destructor, or type conversion before â;â token
NSAPI_Main.h:42: error: expected constructor, destructor, or type conversion before â;â token
NSAPI_Main.h:43: error: expected constructor, destructor, or type conversion before â;â token
NSAPI_Main.cpp:182: error: ISO C++ forbids declaration of âissinit_imâ with no type
NSAPI_Main.cpp:244: error: ISO C++ forbids declaration of âissnametransâ with no type
NSAPI_Main.cpp:475: error: ISO C++ forbids declaration of âissstartlogonâ with no type
make: *** [NSAPI_Main.o] Error 1

Note: SuSe Linux installed is X86_64 bit & the Sun Web Server as well as the ISS plug-in we are trying to compile is 32 bit.

Any thoughts/suggestions on this & any possible ways to solve it.

Thanks,
gtrdownlaod
Topic archived. No new replies allowed.