[PATCH] Patch to fix libecpg.so for isinf missing

From: Jiang Guiqing <jianggq(at)cn(dot)fujitsu(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: [PATCH] Patch to fix libecpg.so for isinf missing
Date: 2012-12-03 05:12:48
Message-ID: 50BC34D0.7070503@cn.fujitsu.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
test.pgc text/plain 188 bytes
ecpglib-Makefile.patch text/plain 1.1 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavan Deolasee 2012-12-03 06:23:30 Minor optimizations in lazy_scan_heap
Previous Message Steve Singer 2012-12-03 02:52:08 Re: [PATCH 11/14] Introduce wal decoding via catalog timetravel