Обсуждение: Configuration error in psqlodbc-09.05.0100 Solaris 10

Поиск
Список
Период
Сортировка

Configuration error in psqlodbc-09.05.0100 Solaris 10

От
"Shinya, Araki"
Дата:
Hi All,

I am trying to install psqlodbc-09.05.0100 in UNIX server –
“Solaris 10 64-bit sparc”, from source and while running “./configure” , am
getting below output and it fails with error message “configure: error:
unixODBC library "odbcinst" not found”

-bash-3.00# LD=ld ./configure --with-unixodbc=/usr/local/bin/odbc_config
--with-libpq=/opt/csw/lib/libpq.so.5
checking for a BSD-compatible install... config/install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... config/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... no
checking whether make supports nested variables... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... no
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking whether cc understands -c and -o together... yes
checking for style of include used by make... none
checking dependency style of cc... none
configure: using /usr/local/include /usr/local/lib
checking last argument to SQLColAttribute is SQLLEN *... yes
checking for prove... no
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/xpg4/bin/grep
checking for egrep... /usr/xpg4/bin/grep -E
checking for fgrep... /usr/xpg4/bin/grep -F
checking for non-GNU ld... ld
checking if the linker (ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/ccs/bin/nm -p
checking the name lister (/usr/ccs/bin/nm -p) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 786240
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... no
checking how to convert sparc-sun-solaris2.10 file names to
sparc-sun-solaris2.10 format... func_convert_file_noop
checking how to convert sparc-sun-solaris2.10 file names to toolchain
format... func_convert_file_noop
checking for ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for ar... no
checking for archiver @FILE support... no
checking for strip... no
checking for ranlib... no
checking command to parse /usr/ccs/bin/nm -p output from cc object... failed
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... /lib/cpp
checking for ANSI C header files... no
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... no
checking for memory.h... no
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
checking for dlfcn.h... no
checking for objdir... .libs
checking for cc option to produce PIC... -KPIC -DPIC
checking if cc PIC flag -KPIC -DPIC works... yes
checking if cc static flag -Bstatic works... yes
checking if cc supports -c -o file.o... no
checking if cc supports -c -o file.o... (cached) no
checking if we can lock with hard links... yes
checking whether the cc linker (ld) supports shared libraries... yes
checking dynamic linker characteristics... solaris2.10 ld.so
checking how to hardcode library paths into programs... immediate
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... no
checking for dlopen in -lsvld... no
checking for dld_link in -ldld... no
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for library containing SQLGetPrivateProfileString... no
configure: error: unixODBC library "odbcinst" not found


【Information of cpu】
-bash-3.00# cat /etc/release
                   Oracle Solaris 10 9/10 s10s_u9wos_14a SPARC
     Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
                            Assembled 11 August 2010

-bash-3.00# isainfo -v
64-bit sparcv9 applications
        ima fmaf vis2 vis popc
32-bit sparc applications
        ima fmaf vis2 vis popc v8plus div32 mul32


Could anyone help me to resolve this issue?

Thanks & Regards,

Araki



--
View this message in context:
http://postgresql.nabble.com/Configuration-error-in-psqlodbc-09-05-0100-Solaris-10-tp5919915.html
Sent from the PostgreSQL - odbc mailing list archive at Nabble.com.


Re: Configuration error in psqlodbc-09.05.0100 Solaris 10

От
Adrian Klaver
Дата:
On 09/06/2016 11:42 PM, Shinya, Araki wrote:
> Hi All,
>
> I am trying to install psqlodbc-09.05.0100 in UNIX server –
> “Solaris 10 64-bit sparc”, from source and while running “./configure” , am
> getting below output and it fails with error message “configure: error:
> unixODBC library "odbcinst" not found”

Best guess, you do not have the unixODBC-devel (or its equivalent on
Solaris) libraries installed.

>
> -bash-3.00# LD=ld ./configure --with-unixodbc=/usr/local/bin/odbc_config
> --with-libpq=/opt/csw/lib/libpq.so.5
> checking for a BSD-compatible install... config/install-sh -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... config/install-sh -c -d
> checking for gawk... no
> checking for mawk... no
> checking for nawk... nawk
> checking whether make sets $(MAKE)... no
> checking whether make supports nested variables... no
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking for gcc... no
> checking for cc... cc
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables...
> checking whether we are cross compiling... no
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... no
> checking whether cc accepts -g... yes
> checking for cc option to accept ISO C89... none needed
> checking whether cc understands -c and -o together... yes
> checking for style of include used by make... none
> checking dependency style of cc... none
> configure: using /usr/local/include /usr/local/lib
> checking last argument to SQLColAttribute is SQLLEN *... yes
> checking for prove... no
> checking build system type... sparc-sun-solaris2.10
> checking host system type... sparc-sun-solaris2.10
> checking how to print strings... printf
> checking for a sed that does not truncate output... /usr/bin/sed
> checking for grep that handles long lines and -e... /usr/xpg4/bin/grep
> checking for egrep... /usr/xpg4/bin/grep -E
> checking for fgrep... /usr/xpg4/bin/grep -F
> checking for non-GNU ld... ld
> checking if the linker (ld) is GNU ld... no
> checking for BSD- or MS-compatible name lister (nm)... /usr/ccs/bin/nm -p
> checking the name lister (/usr/ccs/bin/nm -p) interface... BSD nm
> checking whether ln -s works... yes
> checking the maximum length of command line arguments... 786240
> checking whether the shell understands some XSI constructs... yes
> checking whether the shell understands "+="... no
> checking how to convert sparc-sun-solaris2.10 file names to
> sparc-sun-solaris2.10 format... func_convert_file_noop
> checking how to convert sparc-sun-solaris2.10 file names to toolchain
> format... func_convert_file_noop
> checking for ld option to reload object files... -r
> checking for objdump... objdump
> checking how to recognize dependent libraries... pass_all
> checking for dlltool... dlltool
> checking how to associate runtime and link libraries... printf %s\n
> checking for ar... no
> checking for archiver @FILE support... no
> checking for strip... no
> checking for ranlib... no
> checking command to parse /usr/ccs/bin/nm -p output from cc object... failed
> checking for sysroot... no
> checking for mt... mt
> checking if mt is a manifest tool... no
> checking how to run the C preprocessor... /lib/cpp
> checking for ANSI C header files... no
> checking for sys/types.h... no
> checking for sys/stat.h... no
> checking for stdlib.h... no
> checking for string.h... no
> checking for memory.h... no
> checking for strings.h... no
> checking for inttypes.h... no
> checking for stdint.h... no
> checking for unistd.h... no
> checking for dlfcn.h... no
> checking for objdir... .libs
> checking for cc option to produce PIC... -KPIC -DPIC
> checking if cc PIC flag -KPIC -DPIC works... yes
> checking if cc static flag -Bstatic works... yes
> checking if cc supports -c -o file.o... no
> checking if cc supports -c -o file.o... (cached) no
> checking if we can lock with hard links... yes
> checking whether the cc linker (ld) supports shared libraries... yes
> checking dynamic linker characteristics... solaris2.10 ld.so
> checking how to hardcode library paths into programs... immediate
> checking for shl_load... no
> checking for shl_load in -ldld... no
> checking for dlopen... no
> checking for dlopen in -ldl... no
> checking for dlopen in -lsvld... no
> checking for dld_link in -ldld... no
> checking whether stripping libraries is possible... no
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
> checking whether to build static libraries... no
> checking for library containing SQLGetPrivateProfileString... no
> configure: error: unixODBC library "odbcinst" not found
>
>
> 【Information of cpu】
> -bash-3.00# cat /etc/release
>                    Oracle Solaris 10 9/10 s10s_u9wos_14a SPARC
>      Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
>                             Assembled 11 August 2010
>
> -bash-3.00# isainfo -v
> 64-bit sparcv9 applications
>         ima fmaf vis2 vis popc
> 32-bit sparc applications
>         ima fmaf vis2 vis popc v8plus div32 mul32
>
>
> Could anyone help me to resolve this issue?
>
> Thanks & Regards,
>
> Araki
>
>
>
> --
> View this message in context:
http://postgresql.nabble.com/Configuration-error-in-psqlodbc-09-05-0100-Solaris-10-tp5919915.html
> Sent from the PostgreSQL - odbc mailing list archive at Nabble.com.
>
>


--
Adrian Klaver
adrian.klaver@aklaver.com


Re: Configuration error in psqlodbc-09.05.0100 Solaris 10

От
"Tsunakawa, Takayuki"
Дата:
> From: pgsql-odbc-owner@postgresql.org
> [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Shinya, Araki
> I am trying to install psqlodbc-09.05.0100 in UNIX server – “Solaris 10
> 64-bit sparc”, from source and while running “./configure” , am getting
> below output and it fails with error message “configure: error:
> unixODBC library "odbcinst" not found”
> 
> -bash-3.00# LD=ld ./configure --with-unixodbc=/usr/local/bin/odbc_config
> --with-libpq=/opt/csw/lib/libpq.so.5

Try adding the unixODBC lib directory (/usr/local/lib?) to LD_LIBRARY_PATH.

Although this is not relevant, you need to specify the PostgreSQL installation directory (e.g. /usr/local/pgsql) to
--with-libpq,not the libpq file path.
 

Regards
Takayuki Tsunakawa


Re: Configuration error in psqlodbc-09.05.0100 Solaris 10

От
"Shinya, Araki"
Дата:
I installed the unixodbc_dev from OpenCSW.

command
/opt/csw/bin/pkgutil -y -i unixodbc_dev


but same error occurs.(unixODBC library "odbcinst" not found )

Thanks & Regards,

Araki


Adrian Klaver-4 wrote
> On 09/06/2016 11:42 PM, Shinya, Araki wrote:
>> Hi All,
>>
>> I am trying to install psqlodbc-09.05.0100 in UNIX server –
>> “Solaris 10 64-bit sparc”, from source and while running “./configure” ,
>> am
>> getting below output and it fails with error message “configure: error:
>> unixODBC library "odbcinst" not found”
>
> Best guess, you do not have the unixODBC-devel (or its equivalent on
> Solaris) libraries installed.





--
View this message in context:
http://postgresql.nabble.com/Configuration-error-in-psqlodbc-09-05-0100-Solaris-10-tp5919915p5920689.html
Sent from the PostgreSQL - odbc mailing list archive at Nabble.com.


Re: Configuration error in psqlodbc-09.05.0100 Solaris 10

От
"Shinya, Araki"
Дата:
I adding the unixODBC lib directory to LD_LIBRARY_PATH,and executed.

but same error occurs.(unixODBC library "odbcinst" not found )

Thanks & Regards,

Araki
Tsunakawa, Takayuki wrote
>> From:

> pgsql-odbc-owner@

>> [mailto:

> pgsql-odbc-owner@

> ] On Behalf Of Shinya, Araki
>> I am trying to install psqlodbc-09.05.0100 in UNIX server – “Solaris 10
>> 64-bit sparc”, from source and while running “./configure” , am getting
>> below output and it fails with error message “configure: error:
>> unixODBC library "odbcinst" not found”
>>
>> -bash-3.00# LD=ld ./configure --with-unixodbc=/usr/local/bin/odbc_config
>> --with-libpq=/opt/csw/lib/libpq.so.5
>
> Try adding the unixODBC lib directory (/usr/local/lib?) to
> LD_LIBRARY_PATH.
>
> Although this is not relevant, you need to specify the PostgreSQL
> installation directory (e.g. /usr/local/pgsql) to --with-libpq, not the
> libpq file path.





--
View this message in context:
http://postgresql.nabble.com/Configuration-error-in-psqlodbc-09-05-0100-Solaris-10-tp5919915p5920690.html
Sent from the PostgreSQL - odbc mailing list archive at Nabble.com.


Re: Configuration error in psqlodbc-09.05.0100 Solaris 10

От
"Tsunakawa, Takayuki"
Дата:
Does the architecture of the library match that of the program configure is trying to build?  e.g. isn't the
odbcinst.soa 64-bit library, while configure is trying to build a 32-bit program?
 

$ file odbcinst.so

Regards
Takayuki Tsunakawa


> From: pgsql-odbc-owner@postgresql.org
> [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Shinya, Araki
> Sent: Monday, September 12, 2016 1:56 PM
> To: pgsql-odbc@postgresql.org
> Subject: Re: [ODBC] Configuration error in psqlodbc-09.05.0100 Solaris 10
> 
> I installed the unixodbc_dev from OpenCSW.
> 
> command
> /opt/csw/bin/pkgutil -y -i unixodbc_dev
> 
> 
> but same error occurs.(unixODBC library "odbcinst" not found )
> 
> Thanks & Regards,
> 
> Araki


Re: Configuration error in psqlodbc-09.05.0100 Solaris 10

От
"Shinya, Araki"
Дата:
I was installed only libpq5 from csw.

Therefore remove the libpq5, I installed the PostgreSQL9.5.0.

And, "configure" command was successful.

【"configure" command】
./configure --prefix=/usr/local/psqlodbc
--with-unixodbc=/usr/local/unixODBC/bin/odbc_config
--with-libpq=/usr/local/postgresql

Thank you, Takayuki Tsunakawa

However, this time an error occurs in the "make" command.

What is the cause?

【"make" command】
-bash-3.00 # make
make all-am
source = 'info.c' object = 'info.lo' libtool = yes \
DEPDIR = .deps depmode = none / bin / bash ./config/depcomp \
/ Bin / bash ./libtool --tag = CC --mode = compile cc -DHAVE_CONFIG_H -I. -I
/ Usr / local / unixODBC / include -I / usr / local / postgresql / include
-I / usr / local / postgresql / include -g -c -o info.lo info.c
. Libtool: compile: cc -DHAVE_CONFIG_H -I -I / usr / local / unixODBC /
include -I / usr / local / postgresql / include -I / usr / local /
postgresql / include -g -c info.c -KPIC - DPIC -o .libs / info.o
"Descriptor.h", line 176: warning: unnamed struct member
"Info.c", line 1118: improper member use: ardf
"Info.c", line 1946: improper member use: ardf
"Info.c", line 2395: improper member use: ardf
"Info.c", line 2916: improper member use: ardf
"Info.c", line 3092: improper member use: ardf
"Info.c", line 3602: improper member use: ardf
"Info.c", line 3682: improper member use: ardf
"Info.c", line 4110: improper member use: ardf
"Info.c", line 4985: improper member use: ardf
"Info.c", line 5325: improper member use: ardf
"Info.c", line 5422: improper member use: ardf
"Info.c", line 5861: improper member use: ardf
cc: acomp failed for info.c
*** Error code 1
make: Fatal error: Command failed for target `info.lo '
Current working directory /export/home/oracle/psqlodbc-09.05.0100
*** Error code 1
make: Fatal error: Command failed for target `all '


Thanks & Regards,

Araki


Tsunakawa, Takayuki wrote
> Does the architecture of the library match that of the program configure
> is trying to build?  e.g. isn't the odbcinst.so a 64-bit library, while
> configure is trying to build a 32-bit program?
>
> $ file odbcinst.so
>
> Regards
> Takayuki Tsunakawa
>
>
>> From:

> pgsql-odbc-owner@

>> [mailto:

> pgsql-odbc-owner@

> ] On Behalf Of Shinya, Araki
>> Sent: Monday, September 12, 2016 1:56 PM
>> To:

> pgsql-odbc@

>> Subject: Re: [ODBC] Configuration error in psqlodbc-09.05.0100 Solaris 10
>>
>> I installed the unixodbc_dev from OpenCSW.
>>
>> command
>> /opt/csw/bin/pkgutil -y -i unixodbc_dev
>>
>>
>> but same error occurs.(unixODBC library "odbcinst" not found )
>>
>> Thanks & Regards,
>>
>> Araki
>
>
> --
> Sent via pgsql-odbc mailing list (

> pgsql-odbc@

> )
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-odbc





--
View this message in context:
http://postgresql.nabble.com/Configuration-error-in-psqlodbc-09-05-0100-Solaris-10-tp5919915p5920889.html
Sent from the PostgreSQL - odbc mailing list archive at Nabble.com.