Troubles with the ODBC driver in the postgres distribution (integrated installation)
От | Pascal DAYRE |
---|---|
Тема | Troubles with the ODBC driver in the postgres distribution (integrated installation) |
Дата | |
Msg-id | 36C2A76A.9F1D8CA8@ipgp.jussieu.fr обсуждение исходный текст |
Список | 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
В списке pgsql-interfaces по дате отправления:
Следующее
От: Pascal DAYREДата:
Сообщение: Troubles with the ODBC driver in the postgres distribution (integrated installation)