pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Troubles with the ODBC driver in the postgres distribution (integrated installation)
4+ messages / 1 participants
[nested] [flat]

* Troubles with the ODBC driver in the postgres distribution (integrated installation)
@ 1999-02-11 09:48  Pascal DAYRE <dayre@ipgp.jussieu.fr>
  0 siblings, 0 replies; 4+ messages in thread

From: Pascal DAYRE @ 1999-02-11 09:48 UTC (permalink / raw)
  To: pgsql-interfaces

(Sparc Ultra10, solaris 2.6, Postgres 6.4.2)

Hello everybody, can you help me?

I 've tried to install the ODBC driver like the description
in "PostgreSQL Programmer's Guide" guide (153-157).
I've tried the integrated installation and also the standalone
installation.

What is the compiler needed for C++? I have tried a GNU one and a
Solaris one?
What is the good version for GNU C++?

-----------------------------------------------
My compilations for integrated installation:



1> integrated installation with a GNU c++
 ./configure --prefix=/export/sgbd/pgsql
--with-template=solaris_sparc_cc --with-odbc
--with-CXX=/usr/local/bin/c++



gmake
...
gmake[2]: Leaving directory
`/usr/localsgbd1/postgresql-6.4.2/src/interfaces/ecpg'
gmake -C libpq++ all
gmake[2]: Entering directory
`/usr/localsgbd1/postgresql-6.4.2/src/interfaces/libpq++'
/usr/local/geoscope/src/GNU/package/usr/local/bin/c++  -I../../backend
-I../../include -I../../interfaces/libpq -I../../include
-I../../backend   -Xa -v -D__sparc__ -D__sun__ -DDISABLE_COMPLEX_MACRO
-K PIC   -c pgenv.cc -o pgenv.o
c++: cannot specify -o with -c and multiple compilations
gmake[2]: *** [pgenv.o] Error 1
gmake[2]: Leaving directory
`/usr/localsgbd1/postgresql-6.4.2/src/interfaces/libpq++'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory
`/usr/localsgbd1/postgresql-6.4.2/src/interfaces'
gmake: *** [all] Error 2



2> integrated installation with /opt/SUNWspro/bin/CC (workshop, solaris)



 ./configure --prefix=/export/sgbd/pgsql
--with-template=solaris_sparc_cc --with-odbc --with-CXX=CC

gmake

gmake[2]: Leaving directory
`/usr/localsgbd1/postgresql-6.4.2/src/interfaces/ecpg'
gmake -C libpq++ all
gmake[2]: Entering directory
`/usr/localsgbd1/postgresql-6.4.2/src/interfaces/libpq++'
CC  -I../../backend -I../../include -I../../interfaces/libpq
-I../../include -I../../backend   -Xa -v -D__sparc__ -D__sun__
-DDISABLE_COMPLEX_MACRO  -K PIC   -c pgenv.cc -o pgenv.o
CC: Warning: Option -Xa passed to ld, if ld is invoked, ignored
otherwise
CC: Warning: Option -K passed to ld, if ld is invoked, ignored otherwise

### CC: Note: LM_LICENSE_FILE = (null)
### CC: Note: NLSPATH =
/opt/SUNWspro/bin/../SC4.2/bin/../lib/locale/%L/LC_MESSAGES/%N.cat:/opt/SUNWspro/bin/../SC4.2/bin/../../lib/locale/%L/LC_MESSAGES/%N.cat

CC: Invalid input file name PIC, no output generated for this file.
/opt/SUNWspro/bin/../SC4.2/bin/ccfe -y-o -ypgenv.o -I../../backend
-I../../include -I../../interfaces/libpq -I../../include -I../../backend
-y-fbe -y/opt/SUNWspro/bin/../SC4.2/bin/fbe -ptb pgenv.o -y-xarch=v7
-y-verbose -O0 -ptf /tmp/08458%1.%2 -ptx
/opt/SUNWspro/bin/../SC4.2/bin/CC -ptk "-I../../backend -I../../include
-I../../interfaces/libpq -I../../include -I../../backend -Xa -v
-D__sparc__ -D__sun__ -DDISABLE_COMPLEX_MACRO -K -c " -D__SunOS_5_6
-D__SUNPRO_CC=0x420 -Dunix -Dsun -Dsparc -D__sparc -D__unix -D__sun
-D__BUILTIN_VA_ARG_INCR -D__SVR4 -I/opt/SUNWspro/SC4.2/include/CC
-I/opt/SUNWspro/SC4.2/include/CC/rw7 -I/opt/SUNWspro/SC4.2/include/cc
-D__sparc__ -D__sun__ -DDISABLE_COMPLEX_MACRO pgenv.cc -s
/tmp/ccfe.08458.0.s
"pgenv.h", line 21: Error: Could not open include file <string>.
"pgenv.h", line 25: Error: Type name expected instead of "using".
"pgenv.h", line 48: Error: Type name expected instead of "string".
"pgenv.h", line 48: Error: No storage class or type for this
declaration.
"pgenv.h", line 48: Error: "," expected instead of "pgAuth".
"pgenv.h", line 49: Error: Use ";" to terminate declarations.
"pgenv.h", line 49: Error: Type name expected instead of "string".
"pgenv.h", line 49: Error: No storage class or type for this
declaration.
"pgenv.h", line 49: Error: Multiple declaration for string.
"pgenv.h", line 49: Error: "," expected instead of "pgHost".
"pgenv.h", line 50: Error: Use ";" to terminate declarations.
"pgenv.h", line 50: Error: Type name expected instead of "string".
"pgenv.h", line 50: Error: No storage class or type for this
declaration.
"pgenv.h", line 50: Error: Multiple declaration for string.
"pgenv.h", line 50: Error: "," expected instead of "pgPort".
"pgenv.h", line 51: Error: Use ";" to terminate declarations.
"pgenv.h", line 51: Error: Type name expected instead of "string".
"pgenv.h", line 51: Error: No storage class or type for this
declaration.
"pgenv.h", line 51: Error: Multiple declaration for string.
"pgenv.h", line 51: Error: "," expected instead of "pgOption".
"pgenv.h", line 52: Error: Use ";" to terminate declarations.
"pgenv.h", line 52: Error: Type name expected instead of "string".
"pgenv.h", line 52: Error: No storage class or type for this
declaration.
"pgenv.h", line 52: Error: Multiple declaration for string.
"pgenv.h", line 52: Error: "," expected instead of "pgTty".
Compilation aborted, too many Error messages.
rm /tmp/ccfe.08458.0.s
gmake[2]:







How can I fix the problem?
What is the mistake?

thank you for answering :)



Pascal





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Troubles with the ODBC driver in the postgres distribution (integrated installation)
@ 1999-02-11 09:57  Pascal DAYRE <dayre@ipgp.jussieu.fr>
  0 siblings, 0 replies; 4+ messages in thread

From: Pascal DAYRE @ 1999-02-11 09:57 UTC (permalink / raw)
  To: pgsql-interfaces; dayre@ipgp.jussieu.fr

(Sparc Ultra10, solaris 2.6, Postgres 6.4.2)

Hello everybody, can you help me?

I 've tried to install the ODBC driver like the description
in "PostgreSQL Programmer's Guide" guide (153-157).
I've tried the integrated installation and also the standalone
installation.

What is the compiler needed for C++? I have tried a GNU one and a
Solaris one?
What is the good version for GNU C++?

-----------------------------------------------
My compilations for integrated installation:

1> integrated installation with a GNU c++
 ./configure --prefix=/export/sgbd/pgsql
--with-template=solaris_sparc_cc --with-odbc
--with-CXX=/usr/local/bin/c++

gmake
...
gmake[2]: Leaving directory
`/usr/localsgbd1/postgresql-6.4.2/src/interfaces/ecpg'
gmake -C libpq++ all
gmake[2]: Entering directory
`/usr/localsgbd1/postgresql-6.4.2/src/interfaces/libpq++'
/usr/local/geoscope/src/GNU/package/usr/local/bin/c++  -I../../backend
-I../../include -I../../interfaces/libpq -I../../include
-I../../backend   -Xa -v -D__sparc__ -D__sun__ -DDISABLE_COMPLEX_MACRO
-K PIC   -c pgenv.cc -o pgenv.o
c++: cannot specify -o with -c and multiple compilations
gmake[2]: *** [pgenv.o] Error 1
gmake[2]: Leaving directory
`/usr/localsgbd1/postgresql-6.4.2/src/interfaces/libpq++'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory
`/usr/localsgbd1/postgresql-6.4.2/src/interfaces'
gmake: *** [all] Error 2

2> integrated installation with /opt/SUNWspro/bin/CC (workshop, solaris)

 ./configure --prefix=/export/sgbd/pgsql
--with-template=solaris_sparc_cc --with-odbc --with-CXX=CC

gmake

gmake[2]: Leaving directory
`/usr/localsgbd1/postgresql-6.4.2/src/interfaces/ecpg'
gmake -C libpq++ all
gmake[2]: Entering directory
`/usr/localsgbd1/postgresql-6.4.2/src/interfaces/libpq++'
CC  -I../../backend -I../../include -I../../interfaces/libpq
-I../../include -I../../backend   -Xa -v -D__sparc__ -D__sun__
-DDISABLE_COMPLEX_MACRO  -K PIC   -c pgenv.cc -o pgenv.o
CC: Warning: Option -Xa passed to ld, if ld is invoked, ignored
otherwise
CC: Warning: Option -K passed to ld, if ld is invoked, ignored otherwise

### CC: Note: LM_LICENSE_FILE = (null)
### CC: Note: NLSPATH =
/opt/SUNWspro/bin/../SC4.2/bin/../lib/locale/%L/LC_MESSAGES/%N.cat:/opt/SUNWspro/bin/../SC4.2/bin/../../lib/locale/%L/LC_MESSAGES/%N.cat

CC: Invalid input file name PIC, no output generated for this file.
/opt/SUNWspro/bin/../SC4.2/bin/ccfe -y-o -ypgenv.o -I../../backend
-I../../include -I../../interfaces/libpq -I../../include -I../../backend
-y-fbe -y/opt/SUNWspro/bin/../SC4.2/bin/fbe -ptb pgenv.o -y-xarch=v7
-y-verbose -O0 -ptf /tmp/08458%1.%2 -ptx
/opt/SUNWspro/bin/../SC4.2/bin/CC -ptk "-I../../backend -I../../include
-I../../interfaces/libpq -I../../include -I../../backend -Xa -v
-D__sparc__ -D__sun__ -DDISABLE_COMPLEX_MACRO -K -c " -D__SunOS_5_6
-D__SUNPRO_CC=0x420 -Dunix -Dsun -Dsparc -D__sparc -D__unix -D__sun
-D__BUILTIN_VA_ARG_INCR -D__SVR4 -I/opt/SUNWspro/SC4.2/include/CC
-I/opt/SUNWspro/SC4.2/include/CC/rw7 -I/opt/SUNWspro/SC4.2/include/cc
-D__sparc__ -D__sun__ -DDISABLE_COMPLEX_MACRO pgenv.cc -s
/tmp/ccfe.08458.0.s
"pgenv.h", line 21: Error: Could not open include file <string>.
"pgenv.h", line 25: Error: Type name expected instead of "using".
"pgenv.h", line 48: Error: Type name expected instead of "string".
"pgenv.h", line 48: Error: No storage class or type for this
declaration.
"pgenv.h", line 48: Error: "," expected instead of "pgAuth".
"pgenv.h", line 49: Error: Use ";" to terminate declarations.
"pgenv.h", line 49: Error: Type name expected instead of "string".
"pgenv.h", line 49: Error: No storage class or type for this
declaration.
"pgenv.h", line 49: Error: Multiple declaration for string.
"pgenv.h", line 49: Error: "," expected instead of "pgHost".
"pgenv.h", line 50: Error: Use ";" to terminate declarations.
"pgenv.h", line 50: Error: Type name expected instead of "string".
"pgenv.h", line 50: Error: No storage class or type for this
declaration.
"pgenv.h", line 50: Error: Multiple declaration for string.
"pgenv.h", line 50: Error: "," expected instead of "pgPort".
"pgenv.h", line 51: Error: Use ";" to terminate declarations.
"pgenv.h", line 51: Error: Type name expected instead of "string".
"pgenv.h", line 51: Error: No storage class or type for this
declaration.
"pgenv.h", line 51: Error: Multiple declaration for string.
"pgenv.h", line 51: Error: "," expected instead of "pgOption".
"pgenv.h", line 52: Error: Use ";" to terminate declarations.
"pgenv.h", line 52: Error: Type name expected instead of "string".
"pgenv.h", line 52: Error: No storage class or type for this
declaration.
"pgenv.h", line 52: Error: Multiple declaration for string.
"pgenv.h", line 52: Error: "," expected instead of "pgTty".
Compilation aborted, too many Error messages.
rm /tmp/ccfe.08458.0.s
gmake[2]:

How can I fix the problem?
What is the mistake?

thank you for answering :)

Pascal






^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Troubles with the ODBC driver in the postgres distribution (integrated installation)
@ 1999-02-11 10:15  Pascal DAYRE <dayre@ipgp.jussieu.fr>
  0 siblings, 0 replies; 4+ messages in thread

From: Pascal DAYRE @ 1999-02-11 10:15 UTC (permalink / raw)
  To: pgsql-interfaces

(Sparc Ultra10, solaris 2.6, Postgres 6.4.2)

Hello everybody, can you help me?

I 've tried to install the ODBC driver like the description
in "PostgreSQL Programmer's Guide" guide (153-157).
I've tried the integrated installation and also the standalone
installation.

What is the compiler needed for C++? I have tried a GNU one and a
Solaris one?
What is the good version for GNU C++?

-----------------------------------------------
My compilations for integrated installation:

1> integrated installation with a GNU c++
 ./configure --prefix=/export/sgbd/pgsql
--with-template=solaris_sparc_cc --with-odbc
--with-CXX=/usr/local/bin/c++

gmake
...
gmake[2]: Leaving directory
`/usr/localsgbd1/postgresql-6.4.2/src/interfaces/ecpg'
gmake -C libpq++ all
gmake[2]: Entering directory
`/usr/localsgbd1/postgresql-6.4.2/src/interfaces/libpq++'
/usr/local/geoscope/src/GNU/package/usr/local/bin/c++  -I../../backend
-I../../include -I../../interfaces/libpq -I../../include
-I../../backend   -Xa -v -D__sparc__ -D__sun__ -DDISABLE_COMPLEX_MACRO
-K PIC   -c pgenv.cc -o pgenv.o
c++: cannot specify -o with -c and multiple compilations
gmake[2]: *** [pgenv.o] Error 1
gmake[2]: Leaving directory
`/usr/localsgbd1/postgresql-6.4.2/src/interfaces/libpq++'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory
`/usr/localsgbd1/postgresql-6.4.2/src/interfaces'
gmake: *** [all] Error 2

2> integrated installation with /opt/SUNWspro/bin/CC (workshop, solaris)

 ./configure --prefix=/export/sgbd/pgsql
--with-template=solaris_sparc_cc --with-odbc --with-CXX=CC

gmake

gmake[2]: Leaving directory
`/usr/localsgbd1/postgresql-6.4.2/src/interfaces/ecpg'
gmake -C libpq++ all
gmake[2]: Entering directory
`/usr/localsgbd1/postgresql-6.4.2/src/interfaces/libpq++'
CC  -I../../backend -I../../include -I../../interfaces/libpq
-I../../include -I../../backend   -Xa -v -D__sparc__ -D__sun__
-DDISABLE_COMPLEX_MACRO  -K PIC   -c pgenv.cc -o pgenv.o
CC: Warning: Option -Xa passed to ld, if ld is invoked, ignored
otherwise
CC: Warning: Option -K passed to ld, if ld is invoked, ignored otherwise

### CC: Note: LM_LICENSE_FILE = (null)
### CC: Note: NLSPATH =
/opt/SUNWspro/bin/../SC4.2/bin/../lib/locale/%L/LC_MESSAGES/%N.cat:/opt/SUNWspro/bin/../SC4.2/bin/../../lib/locale/%L/LC_MESSAGES/%N.cat

CC: Invalid input file name PIC, no output generated for this file.
/opt/SUNWspro/bin/../SC4.2/bin/ccfe -y-o -ypgenv.o -I../../backend
-I../../include -I../../interfaces/libpq -I../../include -I../../backend
-y-fbe -y/opt/SUNWspro/bin/../SC4.2/bin/fbe -ptb pgenv.o -y-xarch=v7
-y-verbose -O0 -ptf /tmp/08458%1.%2 -ptx
/opt/SUNWspro/bin/../SC4.2/bin/CC -ptk "-I../../backend -I../../include
-I../../interfaces/libpq -I../../include -I../../backend -Xa -v
-D__sparc__ -D__sun__ -DDISABLE_COMPLEX_MACRO -K -c " -D__SunOS_5_6
-D__SUNPRO_CC=0x420 -Dunix -Dsun -Dsparc -D__sparc -D__unix -D__sun
-D__BUILTIN_VA_ARG_INCR -D__SVR4 -I/opt/SUNWspro/SC4.2/include/CC
-I/opt/SUNWspro/SC4.2/include/CC/rw7 -I/opt/SUNWspro/SC4.2/include/cc
-D__sparc__ -D__sun__ -DDISABLE_COMPLEX_MACRO pgenv.cc -s
/tmp/ccfe.08458.0.s
"pgenv.h", line 21: Error: Could not open include file <string>.
"pgenv.h", line 25: Error: Type name expected instead of "using".
"pgenv.h", line 48: Error: Type name expected instead of "string".
"pgenv.h", line 48: Error: No storage class or type for this
declaration.
"pgenv.h", line 48: Error: "," expected instead of "pgAuth".
"pgenv.h", line 49: Error: Use ";" to terminate declarations.
"pgenv.h", line 49: Error: Type name expected instead of "string".
"pgenv.h", line 49: Error: No storage class or type for this
declaration.
"pgenv.h", line 49: Error: Multiple declaration for string.
"pgenv.h", line 49: Error: "," expected instead of "pgHost".
"pgenv.h", line 50: Error: Use ";" to terminate declarations.
"pgenv.h", line 50: Error: Type name expected instead of "string".
"pgenv.h", line 50: Error: No storage class or type for this
declaration.
"pgenv.h", line 50: Error: Multiple declaration for string.
"pgenv.h", line 50: Error: "," expected instead of "pgPort".
"pgenv.h", line 51: Error: Use ";" to terminate declarations.
"pgenv.h", line 51: Error: Type name expected instead of "string".
"pgenv.h", line 51: Error: No storage class or type for this
declaration.
"pgenv.h", line 51: Error: Multiple declaration for string.
"pgenv.h", line 51: Error: "," expected instead of "pgOption".
"pgenv.h", line 52: Error: Use ";" to terminate declarations.
"pgenv.h", line 52: Error: Type name expected instead of "string".
"pgenv.h", line 52: Error: No storage class or type for this
declaration.
"pgenv.h", line 52: Error: Multiple declaration for string.
"pgenv.h", line 52: Error: "," expected instead of "pgTty".
Compilation aborted, too many Error messages.
rm /tmp/ccfe.08458.0.s
gmake[2]:

How can I fix the problem?
What is the mistake?

thank you for answering :)

Pascal



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Troubles with the ODBC driver in the postgres distribution (standalone installation)
@ 1999-02-11 11:06  Pascal DAYRE <dayre@ipgp.jussieu.fr>
  0 siblings, 0 replies; 4+ messages in thread

From: Pascal DAYRE @ 1999-02-11 11:06 UTC (permalink / raw)
  To: pgsql-interfaces

(Sparc Ultra10, solaris 2.6, Postgres 6.4.2)

Hello everybody, can you help me?

I 've tried to install the ODBC driver like the description
in "PostgreSQL Programmer's Guide" guide (153-157).
I've tried the integrated installation and also the standalone
installation.

What is the compiler needed for C++? I have tried a GNU one and a
Solaris one?
What is the good version for GNU C++?

-----------------------------------------------
My compilations for standalone installation:

1> standalone installation with a GNU c++


cd interfaces/odbc

gmake standalone

rm -f psqlodbc-025.tar.gz
/bin/tar -chf psqlodbc-025.tar \
    *.c *.h *.in Config.mk TODO.txt Version.mk config.guess config.sub
configure install-sh license.txt notice.txt odbcinst.ini psqlodbc.def
psqlodbc.rc readme.txt -C ../.. makefiles template Makefile.shlib
tar: Makefile.shlib: No such file or directory
gmake: *** [standalone] Error 1
[root@geosp15]tcsh(14)





How can I fix the problem?
What is the mistake?

thank you for answering :)

Pascal




--

-------------------------------------------
        Pascal  DAYRE

        dayre@ipgp.jussieu.fr
        tel:    (33) 1 44 27 38 96
        fax:    (33) 1 44 27 38 94
--------------------------------------------

^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~1999-02-11 11:06 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-02-11 09:48 Troubles with the ODBC driver in the postgres distribution (integrated installation) Pascal DAYRE <dayre@ipgp.jussieu.fr>
1999-02-11 09:57 Troubles with the ODBC driver in the postgres distribution (integrated installation) Pascal DAYRE <dayre@ipgp.jussieu.fr>
1999-02-11 10:15 Troubles with the ODBC driver in the postgres distribution (integrated installation) Pascal DAYRE <dayre@ipgp.jussieu.fr>
1999-02-11 11:06 Troubles with the ODBC driver in the postgres distribution (standalone installation) Pascal DAYRE <dayre@ipgp.jussieu.fr>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox