AIX compile ?? libcrypt HELP !!

Started by Nathan Boegerover 25 years ago3 messagesgeneral
Jump to latest
#1Nathan Boeger
nathan@khmere.com

I am trying to compile an app (compiles on *BSD, Linux) but for some
reason I cant get it to compile on AIX 4.3.3.3. It seems not to like the

libcrypt ??

using:
gcc version 2.95.2 19991024 (release)
PostgreSQL 7.02
GNU Make version 3.79.1
ld ??
Flags: -I/usr/include/pgsql/ -lrts -lcrypt -L/usr/lib/psql/ -static
-lecpg -lpq -lm

gr_server.c:184: warning: passing arg 3 of `naccept' from incompatible
pointer type
ld: 0711-224 WARNING: Duplicate symbol: .connect
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
ld: 0711-317 ERROR: Undefined symbol: __crypt_r
ld: 0711-317 ERROR: Undefined symbol: __setkey_r
ld: 0711-317 ERROR: Undefined symbol: __encrypt_r
collect2: ld returned 8 exit status

any help would be great !!

thank you

nathan

#2Peter Eisentraut
peter_e@gmx.net
In reply to: Nathan Boeger (#1)
Re: AIX compile ?? libcrypt HELP !!

Nathan Boeger writes:

Flags: -I/usr/include/pgsql/ -lrts -lcrypt -L/usr/lib/psql/ -static
-lecpg -lpq -lm

You probably need to put the -lcrypt after -lpq.

--
Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/

#3Nathan Boeger
nathan@khmere.com
In reply to: Peter Eisentraut (#2)
Re: AIX compile ?? libcrypt HELP !!

Peter Eisentraut wrote:

Nathan Boeger writes:

Flags: -I/usr/include/pgsql/ -lrts -lcrypt -L/usr/lib/psql/ -static
-lecpg -lpq -lm

You probably need to put the -lcrypt after -lpq.

--
Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/

Thanks for the reply but, I tried that and it didn't work.....

anyother suggestions ?

nathan