Re: BUG #2608: dblink compile fails on AIX 5.3 - Mailing list pgsql-bugs

From Chris Browne
Subject Re: BUG #2608: dblink compile fails on AIX 5.3
Date
Msg-id 60u03jqodv.fsf@dba2.int.libertyrms.com
Whole thread Raw
In response to BUG #2608: dblink compile fails on AIX 5.3  ("Michael Hoffmann" <hoffmann@fh-trier.de>)
List pgsql-bugs
hoffmann@fh-trier.de ("Michael Hoffmann") writes:
> The following bug has been logged online:
>
> Bug reference:      2608
> Logged by:          Michael Hoffmann
> Email address:      hoffmann@fh-trier.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.

pgsql-bugs by date:

Previous
From: skirsten@gmx.net
Date:
Subject: Strange behavior of incremented_by
Next
From: Tom Lane
Date:
Subject: Re: bitmap index scan problem?