Re: Build problems

From: "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
To: "Fredrik Karlsson" <dargosch(at)gmail(dot)com>, <pgsql-odbc(at)postgresql(dot)org>
Subject: Re: Build problems
Date: 2007-05-06 16:17:15
Message-ID: 009901c78ffa$030650d0$0d01a8c0@hiroshi6e67244
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Hi.

Your environment doesn't hope for UNICODE and make the ANSI type by the reason.

Plese, configure --disable-unicode
It build psqlodbca.so.

If it is not so, it seems to have to build it with unixODBC.

Regards,
Hiroshi Saito

----- Original Message -----
From: "Fredrik Karlsson" <dargosch(at)gmail(dot)com>
To: <pgsql-odbc(at)postgresql(dot)org>
Sent: Sunday, May 06, 2007 5:13 PM
Subject: [ODBC] Build problems

> Hi,
>
> I tried to build the ODBC driver for PostGreSQL from source on a
> Gentoo system, but it failed. What am I doing wrong?
>
> /Fredrik
>
>
> theodor psqlodbc-08.02.0400 # ./configure
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... gawk
> 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 file name... 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 gcc option to accept ISO C89... none needed
> checking for style of include used by make... GNU
> checking dependency style of gcc... gcc3
> checking for library containing SQLGetPrivateProfileString... -lodbcinst
> checking for iswascii... no
> checking for strtoul... yes
> checking for strtoll... yes
> checking for addrinfo... yes
> checking for pthread_create in -lpthreads... no
> checking for pthread_create in -lpthread... yes
> checking for localtime_r... yes
> checking for strtok_r... yes
> checking for strerror_r... yes
> checking for pthread_mutexattr_settype... yes
> checking for strerror_r... (cached) yes
> checking for gcc... (cached) gcc
> checking whether we are using the GNU C compiler... (cached) yes
> checking whether gcc accepts -g... (cached) yes
> checking for gcc option to accept ISO C89... (cached) none needed
> checking dependency style of gcc... (cached) gcc3
> checking build system type... i686-pc-linux-gnu
> checking host system type... i686-pc-linux-gnu
> checking for a sed that does not truncate output... /usr/bin/sed
> checking for grep that handles long lines and -e... /bin/grep
> checking for egrep... /bin/grep -E
> checking for ld used by gcc... /usr/i686-pc-linux-gnu/bin/ld
> checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
> checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r
> checking for BSD-compatible nm... /usr/bin/nm -B
> checking whether ln -s works... yes
> checking how to recognise dependent libraries... pass_all
> 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 g++... g++
> checking whether we are using the GNU C++ compiler... yes
> checking whether g++ accepts -g... yes
> checking dependency style of g++... gcc3
> checking how to run the C++ preprocessor... g++ -E
> checking for g77... no
> checking for f77... no
> checking for xlf... no
> checking for frt... no
> checking for pgf77... no
> checking for cf77... no
> checking for fort77... no
> checking for fl32... no
> checking for af77... no
> checking for f90... no
> checking for xlf90... no
> checking for pgf90... no
> checking for pghpf... no
> checking for epcf90... no
> checking for gfortran... gfortran
> checking whether we are using the GNU Fortran 77 compiler... yes
> checking whether gfortran accepts -g... yes
> checking the maximum length of command line arguments... 32768
> checking command to parse /usr/bin/nm -B output from gcc object... ok
> checking for objdir... .libs
> checking for ar... ar
> checking for ranlib... ranlib
> checking for strip... strip
> checking if gcc supports -fno-rtti -fno-exceptions... no
> 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 whether the gcc linker (/usr/i686-pc-linux-gnu/bin/ld)
> supports shared libraries... yes
> checking whether -lc should be explicitly linked in... no
> checking dynamic linker characteristics... GNU/Linux ld.so
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> checking for shl_load... no
> checking for shl_load in -ldld... no
> checking for dlopen... yes
> checking whether a program can dlopen itself... yes
> checking whether a statically linked program can dlopen itself... yes
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
> checking whether to build static libraries... no
> configure: creating libtool
> appending configuration tag "CXX" to libtool
> checking for ld used by g++... /usr/i686-pc-linux-gnu/bin/ld
> checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
> checking whether the g++ linker (/usr/i686-pc-linux-gnu/bin/ld)
> supports shared libraries... yes
> checking for g++ option to produce PIC... -fPIC
> checking if g++ PIC flag -fPIC works... yes
> checking if g++ static flag -static works... no
> checking if g++ supports -c -o file.o... yes
> checking whether the g++ linker (/usr/i686-pc-linux-gnu/bin/ld)
> supports shared libraries... yes
> checking dynamic linker characteristics... GNU/Linux ld.so
> checking how to hardcode library paths into programs... immediate
> appending configuration tag "F77" to libtool
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
> checking whether to build static libraries... no
> checking for gfortran option to produce PIC... -fPIC
> checking if gfortran PIC flag -fPIC works... yes
> checking if gfortran static flag -static works... no
> checking if gfortran supports -c -o file.o... yes
> checking whether the gfortran linker (/usr/i686-pc-linux-gnu/bin/ld)
> supports shared libraries... yes
> checking dynamic linker characteristics... GNU/Linux ld.so
> checking how to hardcode library paths into programs... immediate
> checking locale.h usability... yes
> checking locale.h presence... yes
> checking for locale.h... yes
> checking sys/un.h usability... yes
> checking sys/un.h presence... yes
> checking for sys/un.h... yes
> checking sys/time.h usability... yes
> checking sys/time.h presence... yes
> checking for sys/time.h... yes
> checking whether time.h and sys/time.h may both be included... yes
> checking for ssize_t... yes
> checking for long... yes
> checking size of long... 4
> checking for void *... yes
> checking size of void *... 4
> checking for long long... yes
> checking for an ANSI C-conforming const... yes
> checking for size_t... yes
> checking whether struct tm is in sys/time.h or time.h... time.h
> checking for pg_config... /usr/bin/pg_config
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating config.h
> config.status: config.h is unchanged
> config.status: executing depfiles commands
> theodor psqlodbc-08.02.0400 # make
> make all-am
> make[1]: Entering directory `/home/zak/temp/psqlodbc-08.02.0400'
> if /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
> -I. -I. -I/usr/include/postgresql/libpq-4 -g -O2 -MT info.lo -MD
> -MP -MF ".deps/info.Tpo" -c -o info.lo info.c; \
> then mv -f ".deps/info.Tpo" ".deps/info.Plo"; else rm -f
> ".deps/info.Tpo"; exit 1; fi
> mkdir .libs
> gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/postgresql/libpq-4 -g
> -O2 -MT info.lo -MD -MP -MF .deps/info.Tpo -c info.c -fPIC -DPIC -o
> .libs/info.o
> info.c: In function 'PGAPI_Columns':
> info.c:2467: error: 'SQL_WLONGVARCHAR' undeclared (first use in this function)
> info.c:2467: error: (Each undeclared identifier is reported only once
> info.c:2467: error: for each function it appears in.)
> info.c:2469: error: 'SQL_WCHAR' undeclared (first use in this function)
> info.c:2469: error: 'SQL_WVARCHAR' undeclared (first use in this function)
> make[1]: *** [info.lo] Fel 1
> make[1]: Leaving directory `/home/zak/temp/psqlodbc-08.02.0400'
> make: *** [all] Fel 2
>
> --
>
> "Give up learning, and put an end to your troubles."
>
> My Gentoo + PVR-350 + IVTV + MythTV blog is on http://gentoomythtv.blogspot.com/
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq

In response to

Browse pgsql-odbc by date

  From Date Subject
Next Message Dave Page 2007-05-07 07:31:56 Re: ODBC Upgrades
Previous Message Fredrik Karlsson 2007-05-06 08:13:40 Build problems