Thread: ODBC - psqlodbc-7.2.3
Hi,
I am not sure when i compiler the source using make, it failed. it worked fine when in execute the configure command.
I can't use the latest release. it does not work for me on the Solaris 10.
root@m# ./configure
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets ${MAKE}... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking for ld used by GCC... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking for /usr/ccs/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/ccs/bin/nm -p
checking whether ln -s works... yes
checking how to recognise dependant libraries... pass_all
checking command to parse /usr/ccs/bin/nm -p output... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/ccs/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking dynamic linker characteristics... solaris2.10 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
creating libtool
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for uint8... no
checking for int timezone... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
root@mia-sdb-d01#
/usr/ccs/bin/ld -G -z defs -h psqlodbc.so -o .libs/psqlodbc.so info.lo bind.lo columninfo.lo connection.lo convert.lo drvconn.lo environ.lo execute.lo lobj.lo win_md5.lo misc.lo options.lo pgtypes.lo psqlodbc.lo qresult.lo results.lo socket.lo parse.lo statement.lo tuple.lo tuplelist.lo dlg_specific.lo odbcapi.lo multibyte.lo gpps.lo -lc
Undefined first referenced
symbol in file
recv socket.lo
send connection.lo
gethostbyname socket.lo
socket connection.lo
connect connection.lo
inet_addr socket.lo
ld: fatal: symbol referencing errors. No output written to .libs/psqlodbc.so
*** Error code 1
make: Fatal error: Command failed for target `psqlodbc.la'
Current working directory /export/home/rfamilia/psqlodbc-7.2.3
*** Error code 1
make: Fatal error: Command failed for target `all'
root@m#: make install
/bin/bash ./libtool --mode=link gcc -m64 -DBUILD_REAL_64_BIT_MODE -o psqlodbc.la -rpath /usr/local/lib -module -no-undefined -avoid-version info.lo bind.lo columninfo.lo connection.lo convert.lo drvconn.lo environ.lo execute.lo lobj.lo win_md5.lo misc.lo options.lo pgtypes.lo psqlodbc.lo qresult.lo results.lo socket.lo parse.lo statement.lo tuple.lo tuplelist.lo dlg_specific.lo odbcapi.lo multibyte.lo gpps.lo
rm -fr .libs/psqlodbc.la .libs/psqlodbc.* .libs/psqlodbc.*
/usr/ccs/bin/ld -G -z defs -h psqlodbc.so -o .libs/psqlodbc.so info.lo bind.lo columninfo.lo connection.lo convert.lo drvconn.lo environ.lo execute.lo lobj.lo win_md5.lo misc.lo options.lo pgtypes.lo psqlodbc.lo qresult.lo results.lo socket.lo parse.lo statement.lo tuple.lo tuplelist.lo dlg_specific.lo odbcapi.lo multibyte.lo gpps.lo -lc
Undefined first referenced
symbol in file
recv socket.lo
send connection.lo
gethostbyname socket.lo
socket connection.lo
connect connection.lo
inet_addr socket.lo
ld: fatal: symbol referencing errors. No output written to .libs/psqlodbc.so
*** Error code 1
make: Fatal error: Command failed for target `psqlodbc.la'
root@m:
I have tried the latest one too.
Thank you.
regards,