Re: BUG #2608: dblink compile fails on AIX 5.3

From: Chris Browne <cbbrowne(at)acm(dot)org>
To: pgsql-bugs(at)postgresql(dot)org pgsql-ports(at)postgresql(dot)org
Subject: Re: BUG #2608: dblink compile fails on AIX 5.3
Date: 2006-09-07 22:54:04
Message-ID: 60u03jqodv.fsf@dba2.int.libertyrms.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

hoffmann(at)fh-trier(dot)de ("Michael Hoffmann") writes:
> The following bug has been logged online:
>
> Bug reference: 2608
> Logged by: Michael Hoffmann
> Email address: hoffmann(at)fh-trier(dot)de
> PostgreSQL version: 8.1.2
> Operating system: AIX 5.3
> Description: dblink compile fails on AIX 5.3
> Details:
>
>>/usr/local/pgsql/src/postgresql-8.1.2/contrib/dblink>gmake
> ../../src/backend/port/aix/mkldexport.sh libdblink.a > libdblink.exp
> xlC -O2 -qmaxmem=16384 -qsrcmsg -qlonglong -Wl,-bnoentry -Wl,-H512
> -Wl,-bM:SRE -o libdblink.so libdblink.a -Wl,-bE:libdblink.exp
> -L../../src/interfaces/libpq -L../../src/port -lpq
> -Wl,-bI:../../src/backend/postgres.imp
> ld: 0711-317 ERROR: Undefined symbol: .bindtextdomain
> ld: 0711-317 ERROR: Undefined symbol: .dgettext
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
> information.
> gmake: *** [libdblink.so] Error 8

This looks like another instance of missing libraries, akin to a
problem I'm having with compiling (AIX 5.3 with GCC 4.1.1) with
OpenSSL support.

Those objects are part of gettext, which gets linked in if you request
NLS support.

What has proven helpful to me with the OpenSSL issue is to modify
contrib/dblink/Makefile

SHLIB_LINK = $(libpq)

-- becomes -->>

SHLIB_LINK = $(libpq) $(LIBS)

You might find that helpful.

You might also try to recompile some non-contrib component, let's say
the postmaster, or psql. See what libraries are included; adding them
to the SHLIB_LINK line may do the trick.

Tom Lane has indicated that simply adding in $(LIBS) isn't quite
right; it may draw in too many libraries. I don't see any other
binding that is more suitable, alas.
--
output = ("cbbrowne" "@" "linuxdatabases.info")
http://www3.sympatico.ca/cbbrowne/languages.html
"No, I'm not interested in developing a powerful brain. All I'm after
is just a mediocre brain, something like the president of American
Telephone and Telegraph Company." -- Alan Turing on the possibilities
of a thinking machine, 1943.

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Chris Browne 2006-09-08 03:44:26 Re: BUG #2600: dblink compile with SSL missing libraries
Previous Message Tom Lane 2006-09-07 16:12:38 Re: Wishlist: Please ad a switch to dectivate the comments in the dump