Trying to compile sqsh on Red Hat Rel. 5 with OCS 15_0. Followed the install notes and successfully ran configure. When I run make I recieve the following errors relating to the Sybase libraries:
/usr/bin/ld: skipping incompatible /apcom/sybase/lib/libsybblk.so when searching for -lsybblk
/usr/bin/ld: skipping incompatible /apcom/sybase/lib/libsybblk.a when searching for -lsybblk
/usr/bin/ld: cannot find -lsybblk
collect2: ld returned 1 exit status
make[1]: *** [sqsh] Error 1
make[1]: Leaving directory `/opt/apsrc/sybdba/sqsh/src/sqsh-2_15/sqsh-2.1.5/src'
make: *** [build-subdirs] Error 2
The Sybase open client libraries are 32 - bit and the os is 64 - bit. I have tried
gcc -m32-bit but, this does not work either.
I have also tried changing back to the old Sybase library names without success.
Any idea on what I might try next.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I was able to get this to work by deleting all of the .o files and doing a 32-bit compile
'cc -m32 -xc'. I then ran 'cc -m32' to create the sqsh binary.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Trying to compile sqsh on Red Hat Rel. 5 with OCS 15_0. Followed the install notes and successfully ran configure. When I run make I recieve the following errors relating to the Sybase libraries:
/usr/bin/ld: skipping incompatible /apcom/sybase/lib/libsybblk.so when searching for -lsybblk
/usr/bin/ld: skipping incompatible /apcom/sybase/lib/libsybblk.a when searching for -lsybblk
/usr/bin/ld: cannot find -lsybblk
collect2: ld returned 1 exit status
make[1]: *** [sqsh] Error 1
make[1]: Leaving directory `/opt/apsrc/sybdba/sqsh/src/sqsh-2_15/sqsh-2.1.5/src'
make: *** [build-subdirs] Error 2
The Sybase open client libraries are 32 - bit and the os is 64 - bit. I have tried
gcc -m32-bit but, this does not work either.
I have also tried changing back to the old Sybase library names without success.
Any idea on what I might try next.
I was able to get this to work by deleting all of the .o files and doing a 32-bit compile
'cc -m32 -xc'. I then ran 'cc -m32' to create the sqsh binary.