Need help compiling Web Datablade
Posted in 2000
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL, Server Administration, Data Types & Schema Design, Platform-Specific Issues, Internationalization & Character Sets
I am trying to compile the web datablade module into my Apache web server. I am getting a compilation error - "undefined reference to ..." . See the output below from ./Configure for details. Any ideas on which library is missing? TIA Steve Romankiw Output from ./Configure ----------------------------------------------- [root@dba src]# ./Configure Using config file: Configuration Creating Makefile + configured for Linux platform + setting C compiler to gcc + setting C pre-processor to gcc -E + checking for system header files + adding selected modules + checking sizeof various data types + doing sanity check on compiler and options ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cd ..; gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite `/usr/local/apache/src/apaci` -L/opt/informix/v9.2.UC1-1/extend/web.4.00.UC1/apache -L/opt/informix/v9.2.UC1-1/lib -L/opt/informix/v9.2.UC1-1/lib/esql helpers/dummy.c -o helpers/dummy -lifxw -lifsql -lifasf -lifgen -lifos -lifgls /opt/informix/v9.2.UC1-1/lib/esql/checkapi.o -lifglx -lifsql -lifasf -lifgen -lifos -lifgls -lm -lcrypt -lm /opt/informix/v9.2.UC1-1/lib/libifasf.so: undefined reference to `dlclose' /opt/informix/v9.2.UC1-1/lib/libifasf.so: undefined reference to `dlopen' /opt/informix/v9.2.UC1-1/lib/libifasf.so: undefined reference to `dlsym' **** Here is the error ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ collect2: ld returned 1 exit status make: *** [dummy] Error 1 ** A test compilation with your Makefile configuration ** failed. This is most likely because your C compiler ** is not ANSI. Apache requires an ANSI C Compiler, such ** as gcc. The above error message from your compiler ** will also provide a clue. Aborting! [root@dba lib]# ldd -v libifasf.so statically linked Version information: /lib/libNoVersion.so.1: libc.so.6 (GLIBC_2.0) => /lib/libc.so.6 /lib/libc.so.6: ld-linux.so.2 (GLIBC_2.1.1) => /lib/ld-linux.so.2 ld-linux.so.2 (GLIBC_2.1) => /lib/ld-linux.so.2 ld-linux.so.2 (GLIBC_2.0) => /lib/ld-linux.so.2 [root@dba lib]# gcc -v Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs nux dba.execrisk.com 2.2.12-20 #1 Mon Sep 27 10:40:35 EDT 1999 i686 unknown uname -a -------- gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) -- Steve Romankiw Chubb / Executive Risk 82 Hopmeadow Street Simsbury, CT 06070
Alter the configuation.tmpl file in the src and not the configuration file. Apart from that the manual is spot on Steve Romankiw wrote: > > I am trying to compile the web datablade module into my Apache web > server. I am getting a compilation error - "undefined reference to ..." > . See the output below from ./Configure for details. > > Any ideas on which library is missing? > > TIA > > Steve Romankiw > > Output from ./Configure > ----------------------------------------------- > [root@dba src]# ./Configure > Using config file: Configuration > Creating Makefile > + configured for Linux platform > + setting C compiler to gcc > + setting C pre-processor to gcc -E > + checking for system header files > + adding selected modules > + checking sizeof various data types > + doing sanity check on compiler and options > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > cd ..; gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite > `/usr/local/apache/src/apaci` > -L/opt/informix/v9.2.UC1-1/extend/web.4.00.UC1/apache > -L/opt/informix/v9.2.UC1-1/lib -L/opt/informix/v9.2.UC1-1/lib/esql > helpers/dummy.c -o helpers/dummy -lifxw -lifsql -lifasf -lifgen -lifos > -lifgls /opt/informix/v9.2.UC1-1/lib/esql/checkapi.o -lifglx -lifsql > -lifasf -lifgen -lifos -lifgls -lm -lcrypt -lm > /opt/informix/v9.2.UC1-1/lib/libifasf.so: undefined reference to > `dlclose' > /opt/informix/v9.2.UC1-1/lib/libifasf.so: undefined reference to > `dlopen' > /opt/informix/v9.2.UC1-1/lib/libifasf.so: undefined reference to `dlsym' > > **** Here is the error > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > collect2: ld returned 1 exit status > make: *** [dummy] Error 1 > ** A test compilation with your Makefile configuration > ** failed. This is most likely because your C compiler > ** is not ANSI. Apache requires an ANSI C Compiler, such > ** as gcc. The above error message from your compiler > ** will also provide a clue. > Aborting! > > [root@dba lib]# ldd -v libifasf.so > statically linked > > Version information: > /lib/libNoVersion.so.1: > libc.so.6 (GLIBC_2.0) => /lib/libc.so.6 > /lib/libc.so.6: > ld-linux.so.2 (GLIBC_2.1.1) => /lib/ld-linux.so.2 > ld-linux.so.2 (GLIBC_2.1) => /lib/ld-linux.so.2 > ld-linux.so.2 (GLIBC_2.0) => /lib/ld-linux.so.2 > > [root@dba lib]# gcc -v > Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs > > nux dba.execrisk.com 2.2.12-20 #1 Mon Sep 27 10:40:35 EDT 1999 i686 > unknown > > uname -a > -------- > gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) > > -- > Steve Romankiw > Chubb / Executive Risk > 82 Hopmeadow Street > Simsbury, CT 06070 -- Paul Watson # WF Software Ltd # You are only young once Tel: +44 1436 674729 # but you can be immature Fax: +44 1436 678693 # for ever www.wfsoftware.com #