credativ / informix_fdw

Foreign Data Wrapper for Informix Databases
Other
28 stars 5 forks source link

Compilation error on CentOS 6.7 #9

Closed rossj-cargotel closed 9 years ago

rossj-cargotel commented 9 years ago

Hi Bernd,

I finally got a real server to run informix_fdw! It's got a fresh install of CentOS 6.7 and I downloaded the latest informix_fdw. CSDK is from this: clientsdk.4.10.FC5DE.LINUX.tar

When I try to make informix_fdw, I'm getting an odd error:

[root@717311-app1 informix_fdw-master]# make
Preprocessing Informix ESQL/C sources
## Only preprocessing, compilation will be performed later
esql -c ifx_connection.ec
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I/usr/include/et -fpic -I/opt/IBM/informix/incl/esql -I. -I./ -I/usr/pgsql-9.4/include/server -I/usr/pgsql-9.4/include/internal -I/usr/include/et -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include  -c -o ifx_connection.o ifx_connection.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I/usr/include/et -fpic -I/opt/IBM/informix/incl/esql -I. -I./ -I/usr/pgsql-9.4/include/server -I/usr/pgsql-9.4/include/internal -I/usr/include/et -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include  -c -o ifx_conncache.o ifx_conncache.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I/usr/include/et -fpic -I/opt/IBM/informix/incl/esql -I. -I./ -I/usr/pgsql-9.4/include/server -I/usr/pgsql-9.4/include/internal -I/usr/include/et -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include  -c -o ifx_utils.o ifx_utils.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I/usr/include/et -fpic -I/opt/IBM/informix/incl/esql -I. -I./ -I/usr/pgsql-9.4/include/server -I/usr/pgsql-9.4/include/internal -I/usr/include/et -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include  -c -o ifx_conv.o ifx_conv.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I/usr/include/et -fpic -I/opt/IBM/informix/incl/esql -I. -I./ -I/usr/pgsql-9.4/include/server -I/usr/pgsql-9.4/include/internal -I/usr/include/et -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include  -c -o ifx_fdw.o ifx_fdw.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I/usr/include/et -fpic -shared -o ifx_fdw.so ifx_connection.o ifx_conncache.o ifx_utils.o ifx_conv.o ifx_fdw.o -L/usr/pgsql-9.4/lib -L/usr/lib64 -Wl,--as-needed -Wl,--no-as-needed -lifsql -lifasf -lifgen -lifos -lifgls -lpthread -lm -ldl -lcrypt /opt/IBM/informix/lib/esql/checkapi.o -lifglx -Wl,--as-needed  -L/opt/IBM/informix/lib/ -L/opt/IBM/informix/lib/esql
/usr/bin/ld: /opt/IBM/informix/lib//libifasf.a(asfapi.o): relocation R_X86_64_32S against `statetable' can not be used when making a shared object; recompile with -fPIC
/opt/IBM/informix/lib//libifasf.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [ifx_fdw.so] Error 1

Is this an error with the Informix CSDK or something else?

Thanks!

Jeff

rossj-cargotel commented 9 years ago

I think this was an error on my server--after removing and reinstalling almost everything after the OS installation, informix_fdw builds and works just fine.

Sorry for the noise!