INSTALL_AS_USER & ldconfig problem.

Feodor Trubetskoy fedya at
Wed Mar 31 03:29:09 PST 2004

Good day!

I'm trying to install ports in my home directory with non-root 
privileges (having ports-tree in my home directory also).

Ports usually install ok, except that the port depends on "library" 
port, which tries to register installed libraries with ldconfig. 
"Library" port install its libraries fine, ldconfig fails as expected 
(I'm non-root), but depending port don't see just installed libraries in 
LD_LIBRARY_PATH and fails.

Any suggestions how to make depending port recognize libraries in 

Here is typical output:

Environment: =====================

setenv PREFIX $HOME/usr
setenv LOCALBASE $HOME/usr
setenv INSTALL_AS_USER yes
setenv NO_PKG_REGISTER yes
setenv DISTDIR $HOME/tmp/dist
setenv WRKDIRPREFIX $HOME/tmp/work
setenv DEPENDS_TARGET 'install clean'
setenv PORTSDIR $HOME/usr/ports
#setenv PKG_DBDIR $HOME/var/db/pkg

fedya at shell:~/usr/ports/mail/crm114> make clean all install
===>  Cleaning for libiconv-1.9.1_3
===>  Cleaning for gettext-0.13.1_1
===>  Cleaning for gmake-3.80_2
===>  Cleaning for libgnugetopt-1.2
===>  Cleaning for libtool-1.3.5_2
===>  Cleaning for pkgconfig-0.15.0_1
===>  Cleaning for procmail-3.22_4
===>  Cleaning for expat-1.95.7
===>  Cleaning for libtre-0.6.6
===>  Cleaning for crm114-20040221_1
===>  Vulnerability check disabled
===>  Extracting for crm114-20040221_1
>> Checksum OK for crm114-20040221-BlameYokohama.src.tar.gz.
>> Checksum OK for crm114-20040221-BlameYokohama.css.tar.gz.
===>  Patching for crm114-20040221_1
===>  Applying FreeBSD patches for crm114-20040221_1
===>   crm114-20040221_1 depends on shared library: tre.4 - not found
===>    Verifying install clean for tre.4 in
===>  Vulnerability check disabled
===>  Extracting for libtre-0.6.6
>> Checksum OK for tre-0.6.6.tar.bz2.
===>  Patching for libtre-0.6.6
===>   libtre-0.6.6 depends on file:
/bhome/fedya/usr/libexec/libtool13/libtool - found
===>   libtre-0.6.6 depends on executable: pkg-config - found
===>   libtre-0.6.6 depends on shared library: gnugetopt.1 - not found
===>    Verifying install clean for gnugetopt.1 in
===>  Vulnerability check disabled
===>  Extracting for libgnugetopt-1.2
>> Checksum OK for libgnugetopt-1.2.tar.bz2.
===>  Patching for libgnugetopt-1.2
===>  Configuring for libgnugetopt-1.2
===>  Building for libgnugetopt-1.2
cc -O -pipe   -fPIC -o getopt.o -c -s getopt.c
cc -O -pipe   -fPIC -o getopt1.o -c -s getopt1.c
cc -O -pipe   -shared -Wl,-soname, -o
getopt.o getopt1.o
building static libgnugetopt library
ar cq libgnugetopt.a `lorder getopt.o getopt1.o | tsort -q`
ranlib libgnugetopt.a
===>  Installing for libgnugetopt-1.2
===>   Generating temporary packing list
Warning: not superuser, you may get some errors during installation.
Warning: not superuser, can't run mtree.
You may want to become root and try again to ensure correct permissions.
===>   Running ldconfig (errors are ignored)
/sbin/ldconfig -m /bhome/fedya/usr/lib
ldconfig: /bhome/fedya/usr/lib: ignoring directory not owned by root
ldconfig: mkstemp(/var/run/ Permission denied
*** Error code 1 (ignored)
===>  Cleaning for libgnugetopt-1.2
===>   Returning to build of libtre-0.6.6
Error: shared library "gnugetopt.1" does not exist
*** Error code 1

Stop in /dzen/home/fedya/usr/ports/textproc/libtre.
*** Error code 1

Stop in /dzen/home/fedya/usr/ports/mail/crm114.
fedya at shell:~/usr/ports/mail/crm114>


fedya at shell:~> ls -al ~/usr/lib
total 1839
drwxr-xr-x   4 fedya  sadmin      512 Mar 25 16:25 .
drwxr-xr-x  14 fedya  sadmin     1024 Mar 25 13:51 ..
-r--r--r--   1 fedya  sadmin     8382 Mar 25 15:13 libgnugetopt.a
lrwxr-xr-x   1 fedya  sadmin       17 Mar 25 15:13 ->
-r--r--r--   1 fedya  sadmin     9707 Mar 25 15:13
-rw-r--r--   1 fedya  sadmin  1043788 Mar 25 16:22 libruby18-static.a
lrwxrwxrwx   1 fedya  sadmin       15 Mar 25 16:25 ->
-rwxr-xr-x   1 fedya  sadmin   792360 Mar 25 16:22
drwxr-xr-x   4 fedya  sadmin      512 Mar 25 10:08 m3
drwxr-xr-x   4 fedya  sadmin      512 Mar 25 16:25 ruby


fedya at shell:~/usr/ports/sysutils/portupgrade> uname -a
FreeBSD shell 4.8-STABLE FreeBSD 4.8-STABLE #0: Mon Oct  6 00:08:58 MSD 
root at pm5:/var/backup/3/FreeBSD/work/freebsd-stable-4.8/sys/compile/shell


Thank you,

More information about the freebsd-ports mailing list