Re: AIX compilation problems (was Re: [HACKERS] Proposal ...)

2002-10-09 Thread Bruce Momjian
Patch applied. Thanks. --- Zeugswetter Andreas SB SD wrote: > > > > > > and mb conversions (pg_ascii2mic and pg_mic2ascii not > > > > > found in the postmaster and not included from elsewhere) > > > > > > shared libs on

Re: AIX compilation problems (was Re: [HACKERS] Proposal ...)

2002-10-09 Thread Bruce Momjian
te: > > > Date: Tue, 1 Oct 2002 10:23:13 +0200 > > From: Zeugswetter Andreas SB SD <[EMAIL PROTECTED]> > > To: Peter Eisentraut <[EMAIL PROTECTED]> > > Cc: PostgreSQL Development <[EMAIL PROTECTED]> > > Subject: Re: AIX compilation problems (was Re: [H

Re: AIX compilation problems (was Re: [HACKERS] Proposal ...)

2002-10-09 Thread Samuel A Horwitz
: PostgreSQL Development <[EMAIL PROTECTED]> > Subject: Re: AIX compilation problems (was Re: [HACKERS] Proposal ...) > > > > > Attached is a patch to fix the mb linking problems on AIX. As a nice side effect > > > it reduces the duplicate symbol warnings to linki

Re: AIX compilation problems (was Re: [HACKERS] Proposal ...)

2002-10-03 Thread Bruce Momjian
Your patch has been added to the PostgreSQL unapplied patches list at: http://candle.pha.pa.us/cgi-bin/pgpatches I will try to apply it within the next 48 hours. --- Zeugswetter Andreas SB SD wrote: > > > > > >

Re: AIX compilation problems (was Re: [HACKERS] Proposal ...)

2002-10-03 Thread Bruce Momjian
, 1 Oct 2002, Zeugswetter > Andreas SB SD wrote: > > > Date: Tue, 1 Oct 2002 10:23:13 +0200 > > From: Zeugswetter Andreas SB SD <[EMAIL PROTECTED]> > > To: Peter Eisentraut <[EMAIL PROTECTED]> > > Cc: PostgreSQL Development <[EMAIL PROTECTED]>

Re: AIX compilation problems (was Re: [HACKERS] Proposal ...)

2002-10-03 Thread Samuel A Horwitz
EMAIL PROTECTED]> > Subject: Re: AIX compilation problems (was Re: [HACKERS] Proposal ...) > > > > > Attached is a patch to fix the mb linking problems on AIX. As a nice side effect > > > it reduces the duplicate symbol warnings to linking libpq.so and libecpg.so &

Re: AIX compilation problems (was Re: [HACKERS] Proposal ...)

2002-10-02 Thread Zeugswetter Andreas SB SD
> > > Attached is a patch to fix the mb linking problems on AIX. As a nice side effect > > > it reduces the duplicate symbol warnings to linking libpq.so and libecpg.so > > > (all shlibs that are not postmaster loadable modules). > > > > Can you explain the method behind your patch? Have you tr

Re: AIX compilation problems (was Re: [HACKERS] Proposal ...)

2002-10-01 Thread Zeugswetter Andreas SB SD
> > Attached is a patch to fix the mb linking problems on AIX. As a nice side effect > > it reduces the duplicate symbol warnings to linking libpq.so and libecpg.so > > (all shlibs that are not postmaster loadable modules). > > Can you explain the method behind your patch? Have you tried -bnogc

Re: AIX compilation problems (was Re: [HACKERS] Proposal ...)

2002-09-30 Thread Peter Eisentraut
Zeugswetter Andreas SB SD writes: > Attached is a patch to fix the mb linking problems on AIX. As a nice side effect > it reduces the duplicate symbol warnings to linking libpq.so and libecpg.so > (all shlibs that are not postmaster loadable modules). Can you explain the method behind your patch

AIX compilation problems (was Re: [HACKERS] Proposal ...)

2002-09-30 Thread Zeugswetter Andreas SB SD
> > > > and mb conversions (pg_ascii2mic and pg_mic2ascii not > > > > found in the postmaster and not included from elsewhere) > > > > shared libs on AIX need to be able to resolve all symbols at linkage time. > > Those two symbols are in backend/utils/SUBSYS.o but not in the postgres > > executa

Re: AIX compilation problems (was Re: [HACKERS] Proposal ...)

2002-09-28 Thread Peter Eisentraut
Zeugswetter Andreas SB SD writes: > -brtl , but that does a lot more that we don't want and does not work :-( I think -bnogc is the switch you want. -- Peter Eisentraut [EMAIL PROTECTED] ---(end of broadcast)--- TIP 4: Don't 'kill -9' the pos

Re: AIX compilation problems (was Re: [HACKERS] Proposal ...)

2002-09-28 Thread Peter Eisentraut
Zeugswetter Andreas SB SD writes: > The problem is, that scan.c includes unistd.h before postgres.h > and thus unistd.h defines _LARGE_FILE_API which is not allowed > together with _LARGE_FILES. Do you know an answer ? Actually, a better idea I just had is to include scan.c at the end of gram.c

Re: AIX compilation problems (was Re: [HACKERS] Proposal ...)

2002-09-26 Thread Peter Eisentraut
Zeugswetter Andreas SB SD writes: > The problem is, that scan.c includes unistd.h before postgres.h > and thus unistd.h defines _LARGE_FILE_API which is not allowed > together with _LARGE_FILES. Do you know an answer ? > Offhand I can only think of using -D_LARGE_FILES as a compiler flag :-( Tha

Re: AIX compilation problems (was Re: [HACKERS] Proposal ...)

2002-09-26 Thread Zeugswetter Andreas SB SD
> > Further research prooved, that the AIX linker eliminates functions on a per > > c file basis if none of them is referenced elsewhere (declared extern or not). > > Thus it eliminates the whole conv.c file from the postgres executable since > > those functions are only used by the conversion s

Re: AIX compilation problems (was Re: [HACKERS] Proposal ...)

2002-09-26 Thread Tom Lane
"Zeugswetter Andreas SB SD" <[EMAIL PROTECTED]> writes: > Further research prooved, that the AIX linker eliminates functions on a per > c file basis if none of them is referenced elsewhere (declared extern or not). > Thus it eliminates the whole conv.c file from the postgres executable since > th

Re: AIX compilation problems (was Re: [HACKERS] Proposal ...)

2002-09-26 Thread Zeugswetter Andreas SB SD
> > shared libs on AIX need to be able to resolve all symbols at linkage time. > > Those two symbols are in backend/utils/SUBSYS.o but not in the postgres > > executable. > > My guess is, that they are eliminated by the linker ? Do they need an extern > > declaration ? Further research prooved,

Re: AIX compilation problems (was Re: [HACKERS] Proposal ...)

2002-09-26 Thread Zeugswetter Andreas SB SD
> > configure somehow thinks it needs to #define _LARGE_FILES though, which > > then clashes with pg_config.h's _LARGE_FILES. I think the test needs to > > #include unistd.h . > > _LARGE_FILES is defined because it's necessary to make off_t 64 bits. If > you disagree, please post compiler outpu

Re: AIX compilation problems (was Re: [HACKERS] Proposal ...)

2002-09-19 Thread Peter Eisentraut
Zeugswetter Andreas SB SD writes: > configure somehow thinks it needs to #define _LARGE_FILES though, which > then clashes with pg_config.h's _LARGE_FILES. I think the test needs to > #include unistd.h . _LARGE_FILES is defined because it's necessary to make off_t 64 bits. If you disagree, plea

Re: AIX compilation problems (was Re: [HACKERS] Proposal ...)

2002-09-19 Thread Zeugswetter Andreas SB SD
> > PS: pg snapshot 09/11 does not compile on AIX (large files (don't want > > _LARGE_FILES), > > Please provide details. On AIX we would only want to make the large file api visible (_LARGE_FILE_API) which automatically gets defined when xlc is used with -qlonglong. #ifdef _LARGE_FILE_API ext

AIX compilation problems (was Re: [HACKERS] Proposal ...)

2002-09-18 Thread Peter Eisentraut
Zeugswetter Andreas SB SD writes: > PS: pg snapshot 09/11 does not compile on AIX (large files (don't want > _LARGE_FILES), Please provide details. > and mb conversions (pg_ascii2mic and pg_mic2ascii not > found in the postmaster and not included from elsewhere) And details here as well. --