static compilation error - Mailing list pgsql-general

From Ice Planet
Subject static compilation error
Date
Msg-id 20001103120755.A31134@ice.sk
Whole thread Raw
List pgsql-general
Hi,

I would like to compile my simple test program, but I need to use static
compilation.

I'm using postgres 7.0.2 on debian 2.2 .

Enviroment settings:
LD_LIBRARY_PATH=/usr/local/pgsql/lib

The whole install was done following readme in sources downloaded from
www.postgresql.org

I compile this attached source using:

gcc admin.c -static -L/usr/local/pgsql/lib -lpq -lcrypt -Wall -o admin

And I get error message like this:

/usr/local/pgsql/lib/libpq.a(fe-connect.o): In function `defaultNoticeProcessor':
fe-connect.o(.text+0x21ad): undefined reference to `_IO_stderr_'
collect2: ld returned 1 exit status

Thanks for any help

                      Ice Planet

Attachment

pgsql-general by date:

Previous
From: Matt Beauregard
Date:
Subject: Re: Sharing Postgres Files
Next
From: Yann Ramin
Date:
Subject: Re: filemaker to pgsql ?