pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedlibpgeasy on AIX
4+ messages / 4 participants
[nested] [flat]
* libpgeasy on AIX
@ 2004-02-23 11:28 twinsen <twins3n@yahoo.com>
0 siblings, 1 reply; 4+ messages in thread
From: twinsen @ 2004-02-23 11:28 UTC (permalink / raw)
To: pgsql-interfaces
<sigh>
I feel like an dunce...
Thanks to all that helped with my last query - I got
postgres compiled on AIX.
Now I have this problem:
I tried to compile libpgeasy and get the following:
make is gnumake 3.79.1 and the compiler is gcc 3.3.2
I presume that the equivalent of ldconfig is to set
$LIBPATH? Something is wrong with $SHARED but I dont
know what.
vodagpccspivr1:/home/dtuser/postgresql-7.4.1/pgeasy-3.0.1>
./make
gcc libpgeasy.o halt.o -L/usr/local/pgsql/lib -lpq
-fpic -shared -Wl,-x,-soname,libpgeasy.so.3
-Wl,-rpath,/usr/local/pgsql/lib -o libpgeasy.so.3.0
ld: 0706-027 The -x flag is ignored.
ld: 0706-012 The -p flag is not recognized.
ld: 0706-012 The -a flag is not recognized.
ld: 0706-012 The -t flag is not recognized.
ld: 0706-012 The -h flag is not recognized.
ld: 0706-005 Cannot find or open file: libpgeasy.so.3
ld:open(): A file or directory in the path
name does not exist.
collect2: ld returned 255 exit status
make: *** [libpgeasy.so.3.0] Error 1
Thanks in advance
Craig
__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: libpgeasy on AIX
@ 2004-02-29 01:03 Bruce Momjian <pgman@candle.pha.pa.us>
parent: twinsen <twins3n@yahoo.com>
0 siblings, 1 reply; 4+ messages in thread
From: Bruce Momjian @ 2004-02-29 01:03 UTC (permalink / raw)
To: twinsen <twins3n@yahoo.com>; +Cc: pgsql-interfaces
twinsen wrote:
> <sigh>
>
> I feel like an dunce...
>
> Thanks to all that helped with my last query - I got
> postgres compiled on AIX.
>
> Now I have this problem:
>
> I tried to compile libpgeasy and get the following:
> make is gnumake 3.79.1 and the compiler is gcc 3.3.2
> I presume that the equivalent of ldconfig is to set
> $LIBPATH? Something is wrong with $SHARED but I dont
> know what.
>
>
> vodagpccspivr1:/home/dtuser/postgresql-7.4.1/pgeasy-3.0.1>
> ./make
> gcc libpgeasy.o halt.o -L/usr/local/pgsql/lib -lpq
> -fpic -shared -Wl,-x,-soname,libpgeasy.so.3
> -Wl,-rpath,/usr/local/pgsql/lib -o libpgeasy.so.3.0
> ld: 0706-027 The -x flag is ignored.
> ld: 0706-012 The -p flag is not recognized.
> ld: 0706-012 The -a flag is not recognized.
> ld: 0706-012 The -t flag is not recognized.
> ld: 0706-012 The -h flag is not recognized.
> ld: 0706-005 Cannot find or open file: libpgeasy.so.3
> ld:open(): A file or directory in the path
> name does not exist.
> collect2: ld returned 255 exit status
> make: *** [libpgeasy.so.3.0] Error 1
Seems like gcc doesn't like your -x or -rpath. Not sure why.
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: libpgeasy on AIX
@ 2004-03-01 20:30 Peter Eisentraut <peter_e@gmx.net>
parent: Bruce Momjian <pgman@candle.pha.pa.us>
0 siblings, 1 reply; 4+ messages in thread
From: Peter Eisentraut @ 2004-03-01 20:30 UTC (permalink / raw)
To: Bruce Momjian <pgman@candle.pha.pa.us>; twinsen <twins3n@yahoo.com>; +Cc: pgsql-interfaces
Bruce Momjian wrote:
> Seems like gcc doesn't like your -x or -rpath. Not sure why.
It's a linker option, not a gcc option.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: libpgeasy on AIX
@ 2004-03-08 13:17 Craig Gibson <twins3n@yahoo.com>
parent: Peter Eisentraut <peter_e@gmx.net>
0 siblings, 0 replies; 4+ messages in thread
From: Craig Gibson @ 2004-03-08 13:17 UTC (permalink / raw)
To: pgsql-interfaces
Thanks! That gave me the lead...
-shared will invoke AIX's linker: -rpath is a GNU ld option. The AIX
equivalent is -blibpath. However after reading through
http://www-106.ibm.com/developerworks/eserver/articles/gnu.html I just
changed the Makefile by changing
SHARED= -fpic -shared -Wl,-x,-soname,$(TARGET).so.$(SO_MAJOR_VERSION)
-Wl,-rpath,$(POSTGRES_HOME)/lib to
SHARED= -fpic -shared and then set $LIBPATH to include
/usr/local/pgsql/lib
That did the trick for me, maybe it will help someone else.
On Mon, 2004-03-01 at 22:30, Peter Eisentraut wrote:
> Bruce Momjian wrote:
> > Seems like gcc doesn't like your -x or -rpath. Not sure why.
>
> It's a linker option, not a gcc option.
>
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2004-03-08 13:17 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-02-23 11:28 libpgeasy on AIX twinsen <twins3n@yahoo.com>
2004-02-29 01:03 ` Bruce Momjian <pgman@candle.pha.pa.us>
2004-03-01 20:30 ` Peter Eisentraut <peter_e@gmx.net>
2004-03-08 13:17 ` Craig Gibson <twins3n@yahoo.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox