pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: LIBPATH issues on AIX

On 12/17/10 11:54 AM, Andy Wallis wrote:
On Dec 17, 2010, at 11:35 AM, Louis Guillaume wrote:

On AIX[1], we just installed some AIX-base-system software that
included it's own /usr/lib/ as a 32-bit object. But
pkgsrc has /usr/pkg/lib/ as a 64-bit object for
fontconfig et al.

In AIX 5.3, expat shouldn't be a shared library. The RPM that IBM
provides as part of their "IBM LInux Applications for POWER" kit uses
/usr/lib/libexpat.a which is a symlink to
/opt/freeware/lib/libexpat.a. Did it come from the Bull Freeware
archive? What TL and SP level are you running?

$ oslevel -s

Can you do a lslpp -w /usr/lib/ to see if some installp
fileset installed it?

It was installed from a fileset from a third-party vendor. Not from the "Toolbox for Linux Applications".

I can't just set LIBPATH in, say, /etc/profile because the [very
important] things that depend on /usr/lib/ will break
(and who knows what else).

If only selected users are going to use certain applications, you
could set up  /etc/security/environ so that those users get a custom
LIBPATH instead of setting a global one.

I'm hoping to not have to hardwire this stuff into environments. It becomes unmanageable. I want the executables know where to look for their dependencies properly.

What's the best way to solve this problem?

[1] AIX 5.3, xlC 9, pkgsrc-2010Q2. Also the following are set in mk.conf

CFLAGS+= -O3 -qstrict -qcpluscmt -qkeyword=inline

Home | Main Index | Thread Index | Old Index