lsapi compile problem - xslt-sablot

felosi

Well-Known Member
#1
Im compiling a custom php4 lsapi for a client and one of their required libs are the sablot. Here is the configure I am using. The sablot and the js libraries are installed and it errors on the lsapi make which leads me to belive its related to the litespeed lsapi

configure
Code:
./configure \
--prefix=/php4 \
--with-litespeed \
--with-config-file-path=/php4/ \
--with-curl \
--with-curl-dir=/opt/curl \
--with-gd \
--with-gettext \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--with-kerberos \
--with-mcrypt \
--with-mhash \
--with-mysql=/usr \
--with-pear \
--with-xml \
--with-openssl=/usr \
--with-zlib \
--with-zlib-dir=/usr \
--with-zip \
--with-expat-dir=/usr \
--with-xslt-sablot \
--with-dom=/usr/local \
--with-dom-xslt=/usr/local \
--with-dom-exslt=/usr/local \
--with-iconv=/usr/local \
--with-inifile \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-track-vars \
--enable-mbstring \
--enable-exif \
--enable-xslt \
--enable-inline-optimization \
--disable-debug

Configure goes by without a hitch yet on make I get these errors

Code:
/usr/lib64/libsablot.so: undefined reference to `JS_GC'
/usr/lib64/libsablot.so: undefined reference to `JS_Enumerate'
/usr/lib64/libsablot.so: undefined reference to `JS_ConvertStub'
/usr/lib64/libsablot.so: undefined reference to `JS_GetProperty'
/usr/lib64/libsablot.so: undefined reference to `JS_GetStringBytes'
/usr/lib64/libsablot.so: undefined reference to `JS_InitStandardClasses'
/usr/lib64/libsablot.so: undefined reference to `JS_NewStringCopyZ'
/usr/lib64/libsablot.so: undefined reference to `JS_DefineFunctions'
/usr/lib64/libsablot.so: undefined reference to `JS_InitClass'
/usr/lib64/libsablot.so: undefined reference to `JS_ClearPendingException'
/usr/lib64/libsablot.so: undefined reference to `JS_ValueToFunction'
/usr/lib64/libsablot.so: undefined reference to `JS_AddRoot'
/usr/lib64/libsablot.so: undefined reference to `JS_SetPendingException'
/usr/lib64/libsablot.so: undefined reference to `JS_DestroyIdArray'
/usr/lib64/libsablot.so: undefined reference to `JS_DefineFunction'
/usr/lib64/libsablot.so: undefined reference to `JS_DeleteElement'
/usr/lib64/libsablot.so: undefined reference to `JS_ValueToString'
/usr/lib64/libsablot.so: undefined reference to `JS_ReportError'
/usr/lib64/libsablot.so: undefined reference to `JS_GetElement'
/usr/lib64/libsablot.so: undefined reference to `JS_Init'
/usr/lib64/libsablot.so: undefined reference to `JS_EnumerateStub'
/usr/lib64/libsablot.so: undefined reference to `JS_GetContextPrivate'
/usr/lib64/libsablot.so: undefined reference to `JS_GetPrototype'
/usr/lib64/libsablot.so: undefined reference to `JS_IdToValue'
/usr/lib64/libsablot.so: undefined reference to `JS_SetContextPrivate'
/usr/lib64/libsablot.so: undefined reference to `readline'
/usr/lib64/libsablot.so: undefined reference to `JS_FinalizeStub'
/usr/lib64/libsablot.so: undefined reference to `JS_CallFunctionName'
/usr/lib64/libsablot.so: undefined reference to `JS_NewArrayObject'
/usr/lib64/libsablot.so: undefined reference to `JS_EvaluateScript'
/usr/lib64/libsablot.so: undefined reference to `JS_PropertyStub'
/usr/lib64/libsablot.so: undefined reference to `JS_SetProperty'
/usr/lib64/libsablot.so: undefined reference to `JS_DeleteProperty'
/usr/lib64/libsablot.so: undefined reference to `JS_NewStringCopyN'
/usr/lib64/libsablot.so: undefined reference to `JS_DefineProperties'
/usr/lib64/libsablot.so: undefined reference to `JS_SetElement'
/usr/lib64/libsablot.so: undefined reference to `JS_IsExceptionPending'
/usr/lib64/libsablot.so: undefined reference to `JS_NewObject'
/usr/lib64/libsablot.so: undefined reference to `JS_DestroyContext'
/usr/lib64/libsablot.so: undefined reference to `JS_ResolveStub'
/usr/lib64/libsablot.so: undefined reference to `JS_NewDoubleValue'
/usr/lib64/libsablot.so: undefined reference to `JS_Finish'
/usr/lib64/libsablot.so: undefined reference to `add_history'
/usr/lib64/libsablot.so: undefined reference to `JS_GetGlobalObject'
/usr/lib64/libsablot.so: undefined reference to `JS_ValueToNumber'
/usr/lib64/libsablot.so: undefined reference to `JS_DefineObject'
/usr/lib64/libsablot.so: undefined reference to `JS_MaybeGC'
/usr/lib64/libsablot.so: undefined reference to `JS_GetFunctionName'
/usr/lib64/libsablot.so: undefined reference to `JS_NewContext'
/usr/lib64/libsablot.so: undefined reference to `JS_GetPrivate'
/usr/lib64/libsablot.so: undefined reference to `JS_SetPrivate'
/usr/lib64/libsablot.so: undefined reference to `JS_GetArrayLength'
/usr/lib64/libsablot.so: undefined reference to `JS_SetErrorReporter'
/usr/lib64/libsablot.so: undefined reference to `JS_SetPrototype'
/usr/lib64/libsablot.so: undefined reference to `JS_ConstructObject'
/usr/lib64/libsablot.so: undefined reference to `JS_GetClass'
/usr/lib64/libsablot.so: undefined reference to `JS_RemoveRoot'
any ideas?
 
#4
Hi, I'm having the same problem as in I receive the error messages:

Code:
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libsablot.so: undefined reference to `readline'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libsablot.so: undefined reference to `add_history'
Can anyone shed any light on how I can work around this problem?

Many thanks,

Jamie
 
Last edited:
Top