Thread: plperl and pgport

plperl and pgport

From
Nicolas Addington
Date:
Hi,

Compiling 8.0.0RC2 on AIX 4.3 on an RS600 with gcc, in src/pl/plperl, got
the following error:

gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -fno-strict-aliasing
-Wl,-bnoentry -Wl,-H512 -Wl,-bM:SRE -o libplperl.so libplperl.a
-L../../../src/port -L/usr/local/lib -L/da23/d56/croquet/readline/lib
/usr/local/lib/perl5/5.6.0/aix/auto/DynaLoader/DynaLoader.a
-L/usr/local/lib/perl5/5.6.0/aix/CORE -lperl -lnsl -ldbm -ldl -lld -lm -lC
-lc -lbsd -lPW -liconv   -Wl,-bI:../../../src/backend/postgres.imp
-Wl,-bE:libplperl.exp
ld: 0711-317 ERROR: Undefined symbol: .pg_strcasecmp
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
collect2: ld returned 8 exit status

Adding -lpgport to this command line allowed the build to continue.

Is this the proper place to send build errors like this?  What's a useful
subject line?


Nick Addington

Re: plperl and pgport

From
Tom Lane
Date:
Nicolas Addington <adding@math.wisc.edu> writes:
> Compiling 8.0.0RC2 on AIX 4.3 on an RS600 with gcc, in src/pl/plperl, got
> the following error:

> gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -fno-strict-aliasing
> -Wl,-bnoentry -Wl,-H512 -Wl,-bM:SRE -o libplperl.so libplperl.a
> -L../../../src/port -L/usr/local/lib -L/da23/d56/croquet/readline/lib
> /usr/local/lib/perl5/5.6.0/aix/auto/DynaLoader/DynaLoader.a
> -L/usr/local/lib/perl5/5.6.0/aix/CORE -lperl -lnsl -ldbm -ldl -lld -lm -lC
> -lc -lbsd -lPW -liconv   -Wl,-bI:../../../src/backend/postgres.imp
> -Wl,-bE:libplperl.exp
> ld: 0711-317 ERROR: Undefined symbol: .pg_strcasecmp
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
> information.
> collect2: ld returned 8 exit status

> Adding -lpgport to this command line allowed the build to continue.

That seems like the wrong fix.  Why isn't the linker finding
pg_strcasecmp in the main backend?

            regards, tom lane