Re: [HACKERS] report for Win32 port

Поиск
Список
Период
Сортировка
От Vince Vielhaber
Тема Re: [HACKERS] report for Win32 port
Дата
Msg-id XFMail.990526195529.vev@michvhf.com
обсуждение исходный текст
Ответ на Re: [HACKERS] report for Win32 port  (wieck@debis.com (Jan Wieck))
Ответы Re: [HACKERS] report for Win32 port  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 26-May-99 Jan Wieck wrote:
>>
>> On Wed, 26 May 1999, Horak Daniel wrote:
>>
>> > Hi,
>> >
>> > I have tested current snapshot (from CVS) to compile and run on Windows NT.
>> >
>> > It compiles mostly OK. The only problem is with linking the libpq++, but it
>> > can be a general problem:
>> >
>> > pgcursordb.o: In function `_8PgCursorRC12PgConnectionPCc':
>> > /usr/src/pgsql.test/src/interfaces/libpq++/pgcursordb.cc:37: undefined
>> > reference
>> >  to `PgTransaction::PgTransaction(PgConnection const &)'
>>
>> Interesting.  I wonder if any other platforms or compilers are also
>> showing this...  I'll submit the patch later today.
> 
> g++  -Wno-error -Wno-unused -Wl,-Bdynamic -I/usr/local/pgsql/include -o
> testlibpq0 testlibpq0.cc -L/usr/local/pgsql/lib -lpq++
> /tmp/cca280301.o: In function `main':
> /tmp/cca280301.o(.text+0x14f): undefined reference to
> `getline__H2ZcZt18string_char_traits1Zc_R7istreamRt12basic_string2ZX01ZX11X01_R7is
> tream'
> /tmp/cca280301.o(.text+0x162): undefined reference to
> `__ne__H2ZcZt18string_char_traits1Zc_RCt12basic_string2ZX01ZX11PCX01_b'
> /usr/local/pgsql/lib/libpq++.so: undefined reference to `crypt'
> /usr/local/pgsql/lib/libpq++.so: undefined reference to
> `PgTransaction::PgTransaction(PgConnection const &)'
> make: *** [testlibpq0] Error 1
> [pgsql@orion] ~/devel/src/interfaces/libpq++/examples >
> 
>     Linux 2.1.88, glibc-2, gcc 2.8.1
> 
>     Whatever  these  errors  mean and whatever they might be good
>     for.
> 
>     Up to now I thought it's due to a self made upgrade of shared
>     libs.   That  one  was  a little hairy and didn't worked as I
>     wanted it. BTW: since glibc-2 crypt() is in it's own library.
> 
>     Another  interesting  detail is that I have a Makefile.custom
>     telling "COPT=-g",  but  I  don't  see  -g  in  the  compiler
>     switches in the examples section.

I've just discovered that libpq++'s makefile uses whatever is defined as
CXX for the compiler.  It's defined as c++, which is ver 2.7.2.1 here.
When I force it to use g++28 (ver 2.8.1), it misses /usr/include/g++.
Adding that to the list of CXXFLAGS fixes that.  Now then..  Will it
break something on another platform if I were to leave that in the
list?  Anyone know?

Also with g++ 2.7.2.1 and 2.8.1 I can't duplicate the problem that Dan
mentions above.  Dan, what compiler/compiler version are you using???

Vince.
-- 
==========================================================================
Vince Vielhaber -- KA8CSH   email: vev@michvhf.com   flame-mail: /dev/null      # include <std/disclaimers.h>
       TEAM-OS2       Online Campground Directory    http://www.camping-usa.com      Online Giftshop Superstore
http://www.cloudninegifts.com
==========================================================================




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Re: create index updates nrows statistics
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] report for Win32 port