[PATCH] Patch to fix libecpg.so for isinf missing - Mailing list pgsql-hackers

From Jiang Guiqing
Subject [PATCH] Patch to fix libecpg.so for isinf missing
Date
Msg-id 50BC34D0.7070503@cn.fujitsu.com
Whole thread Raw
Responses Re: [PATCH] Patch to fix libecpg.so for isinf missing  (Michael Meskes <meskes@postgresql.org>)
List pgsql-hackers
hi

isinf() is not build to libecpg.so if build and install postgresql by
source on solaris9.
(isinf() is not contained within solaris9 system.)

bash-2.05$ nm /usr/local/pgsql/lib/libecpg.so | grep isinf
[215]   |         0|       0|FUNC |GLOB |0    |UNDEF  |isinf

It(isinf missing) will causes ecpg program compile error such as follows.

bash-2.05$ ecpg test.pgc
bash-2.05$ cc -I/usr/local/pgsql/include -L/usr/local/pgsql/lib -lecpg
test.c -o test
Undefined                       first referenced
  symbol                             in file
isinf                               /usr/local/pgsql/lib/libecpg.so
ld: fatal: Symbol referencing errors. No output written to test


I modify src/interfaces/ecpg/ecpglib/Makefile to resolve this problem.
The diff file refer to the attachment "ecpglib-Makefile.patch".

Regards,
Jiang Guiqing

Attachment

pgsql-hackers by date:

Previous
From: Steve Singer
Date:
Subject: Re: [PATCH 11/14] Introduce wal decoding via catalog timetravel
Next
From: "Etsuro Fujita"
Date:
Subject: Re: Patch for removng unused targets