> > > > 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
> > executable.
> 
> They are defined in backend/utils/mb/conv.c and declared in
> include/mb/pg_wchar.h.  They're also linked into the 
> postmaster.  I don't see anything unusual.

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).

Please apply to current (only affects AIX).

The _LARGE_FILES problem is unfortunately still open, unless Peter 
has fixed it per his recent idea.

Thanx
Andreas
Mon, 30 Sep 2002 13:59:54 +0200
"Zeugswetter Andreas SB SD" <ZeugswetterA@spardat.at>
AIX compilation problems (was Re: Proposal ...)
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?  Have you tried -bnogc?

-- 
Peter Eisentraut   peter_e@gmx.net


Mon, 30 Sep 2002 23:42:57 +0200 (CEST)
Peter Eisentraut <peter_e@gmx.net>
Re: AIX compilation problems (was Re: Proposal ...)

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:
> 
> > > > > 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
> > > executable.
> > 
> > They are defined in backend/utils/mb/conv.c and declared in
> > include/mb/pg_wchar.h.  They're also linked into the 
> > postmaster.  I don't see anything unusual.
> 
> 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).
> 
> Please apply to current (only affects AIX).
> 
> The _LARGE_FILES problem is unfortunately still open, unless Peter 
> has fixed it per his recent idea.
> 
> Thanx
> Andreas

Content-Description: mb_link_patch4.gz

[ Attachment, skipping... ]

> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

Thu, 3 Oct 2002 15:17:42 -0400 (EDT)
Bruce Momjian <pgman@candle.pha.pa.us>
Re: AIX compilation problems (was Re: [HACKERS] Proposal ...)

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 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.
> > 
> > They are defined in backend/utils/mb/conv.c and declared in
> > include/mb/pg_wchar.h.  They're also linked into the 
> > postmaster.  I don't see anything unusual.
> 
> 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).
> 
> Please apply to current (only affects AIX).
> 
> The _LARGE_FILES problem is unfortunately still open, unless Peter 
> has fixed it per his recent idea.
> 
> Thanx
> Andreas

Content-Description: mb_link_patch4.gz

[ Attachment, skipping... ]

> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

Wed, 9 Oct 2002 12:21:50 -0400 (EDT)
Bruce Momjian <pgman@candle.pha.pa.us>
Re: AIX compilation problems (was Re: [HACKERS] Proposal ...)