Subject: postgresql-client fails to find /usr/pkg/lib on Solaris
To: None <tech-pkg@NetBSD.org>
From: Charlie Allom <charlie@rubberduck.com>
List: tech-pkg
Date: 02/29/2004 22:12:09
--Apple-Mail-9-961681383
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Hi,
it seems ld on Solaris fails to use /usr/pkg/lib even though I have
specified it in crle and I am building through pkgsrc.
21:16 lazy:pkgsrc/databases/postgresql-client# crle
Configuration file [3]: /var/ld/ld.config
Default Library Path (ELF):
/usr/pkg/lib:/opt/SUNWspro/lib/v8plusa:/opt/SUNWspro/lib:/usr/ccs/lib:/
usr/lib
Trusted Directories (ELF): /usr/lib/secure (system default)
Setting LD_LIBRARY_PATH to /usr/pkg/lib helps out - but why do I need
to set this?
for example, before setting that path:
cc -Xa -O -xO4 -xarch=v8plusa -xtarget=ultra2 -I/usr/pkg/include
pg_dump.o common.o pg_backup_archiver.o pg_backup_db.o
pg_backup_custom.o pg_backup_files.o pg_backup_null.o pg_backup_tar.o
sprompt.o dumputils.o ../../../src/backend/parser/keywords.o -lpq
-L../../../src/port -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib
-R/usr/pkg/lib -lssl -lcrypto -lz -lreadline -ltermcap -lrt -lresolv
-lgen -lsocket -lnsl -ldl -lm -lpgport -o pg_dump
4084: open("/opt/SUNWspro/prod/lib/v8plusa/libpq.so", O_RDONLY) Err#2
ENOENT
4084: open("/opt/SUNWspro/prod/lib/v8plusa/libpq.a", O_RDONLY) Err#2
ENOENT
4084: open("/opt/SUNWspro/prod/lib/libpq.so", O_RDONLY) Err#2 ENOENT
4084: open("/opt/SUNWspro/prod/lib/libpq.a", O_RDONLY) Err#2 ENOENT
4084: open("/usr/ccs/lib/libpq.so", O_RDONLY) Err#2 ENOENT
4084: open("/usr/ccs/lib/libpq.a", O_RDONLY) Err#2 ENOENT
4084: open("/usr/lib/libpq.so", O_RDONLY) Err#2 ENOENT
4084: open("/usr/lib/libpq.a", O_RDONLY) Err#2 ENOENT
ld: fatal: library -lpq: not found
Again, my question is - should pkgsrc take care of LD_LIBRARY_PATH ?
I've never had to set this before.
Regards,
C.
--
charlie@rubberduck.com - Melbourne, Australia
http://rubberduck.com/~yeled/
PGP: 0x14AA7941 || finger yeled@lazy.spodder.com
--Apple-Mail-9-961681383
content-type: application/pgp-signature; x-mac-type=70674453;
name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)
iD8DBQFAQckJqiZDwhSqeUERAnI/AJ4nSNymhHCiuInnqV/umaJltslYKgCgsUVy
DFw2Oy0RLJxrkFafVWyua7s=
=gFxU
-----END PGP SIGNATURE-----
--Apple-Mail-9-961681383--