pkgsrc-Users archive

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

Problem with a non root installation for lang/tcl-otcl



Hi,

I'm having a problem when I install lang/tcl-otcl.
There are two different behaviours whether I install it with a normal
user and therefore use su or sudo for the installation task or when I
install it directly as root.

Installing as root adds the correct rpath for the X11 libaries (why it
links the binaries again during the installation is another subject).

Attached are two outputs for the make install.
- inst.sudo is as the name says an installation via sudo
  There is no difference as when I disable sudo and have to use su
- inst.root is an installation done directly as root

The two binaries are build with the correct rpath. I checked it via
ldd before I tried to install it after I build the package as a non
root user.

This is with NetBSD-current as of yesterday and an uptodate pkgsrc
tree (I just updated pkgsrc/mk in case it could be a problem there).
So I use the pkg_install from NetBSD-current, but I don't think this
is pkg_install related.

Regards,
Bernd

=> Required installed package digest>=20010302: digest-20070803 found
=> Required installed package checkperms>=1.1: checkperms-1.7 found
===> Installing for tcl-otcl-1.13
=> Becoming ``root'' to make su-install-all (/usr/pkg/bin/sudo)
=> Generating pre-install file lists
=> Creating installation directories
rm -f libotcl.a otcl.o
/usr/pkg/bin/libtool  --mode=compile cc -c -O2 -I/usr/pkg/include 
-I/usr/include -DNDEBUG -DUSE_SHM -I.  -I/usr/pkg/include 
-I/usr/pkg/include/tcl/generic -I/usr/pkg/include/tcl/generic  
-I/usr/X11R6/include otcl.c
 cc -c -O2 -I/usr/pkg/include -I/usr/include -DNDEBUG -DUSE_SHM -I. 
-I/usr/pkg/include -I/usr/pkg/include/tcl/generic 
-I/usr/pkg/include/tcl/generic -I/usr/X11R6/include otcl.c  -fPIC -DPIC -o 
.libs/otcl.o
 cc -c -O2 -I/usr/pkg/include -I/usr/include -DNDEBUG -DUSE_SHM -I. 
-I/usr/pkg/include -I/usr/pkg/include/tcl/generic 
-I/usr/pkg/include/tcl/generic -I/usr/X11R6/include otcl.c -o otcl.o >/dev/null 
2>&1
/usr/pkg/bin/libtool  --mode=link cc -o libotcl.la otcl.lo -rpath /usr/pkg/lib 
-version-info 0:0
rm -fr  .libs/libotcl.a .libs/libotcl.la .libs/libotcl.lai 
.libs/libotcl.lai.blsav .libs/libotcl.so .libs/libotcl.so.0 
.libs/libotcl.so.0.0.0
cc -shared  .libs/otcl.o   -Wl,-soname -Wl,libotcl.so.0 -o 
.libs/libotcl.so.0.0.0
(cd .libs && rm -f libotcl.so.0 && ln -s libotcl.so.0.0.0 libotcl.so.0)
(cd .libs && rm -f libotcl.so && ln -s libotcl.so.0.0.0 libotcl.so)
ar cru .libs/libotcl.a  otcl.o
ranlib .libs/libotcl.a
creating libotcl.la
(cd .libs && rm -f libotcl.la && ln -s ../libotcl.la libotcl.la)
rm -f libotcl.so
/usr/pkg/bin/libtool  --mode=link cc -o owish -I/usr/pkg/include/tcl/generic 
-I/usr/pkg/include -I/usr/include -O2 -I/usr/pkg/include -I/usr/include -I.  
-I/usr/pkg/include -I/usr/pkg/include/tcl/generic 
-I/usr/pkg/include/tcl/generic  -I/usr/X11R6/include  otkAppInit.c  
./libotcl.la -L/usr/pkg/lib -ltk84 -L/usr/pkg/lib -ltcl84 -lpthread -lm  
-L/usr/X11R6/lib -lXext -lX11  -lintl -lm
cc -o .libs/owish -I/usr/pkg/include/tcl/generic -I/usr/pkg/include 
-I/usr/include -O2 -I/usr/pkg/include -I/usr/include -I. -I/usr/pkg/include 
-I/usr/pkg/include/tcl/generic -I/usr/pkg/include/tcl/generic 
-I/usr/X11R6/include otkAppInit.c  ./.libs/libotcl.so -L/usr/pkg/lib 
/usr/pkg/lib/libtk84.so -L/usr/X11R6/lib -ltclstub84 /usr/pkg/lib/libtcl84.so 
-lpthread -lXext -lX11 -lintl -lm -Wl,--rpath -Wl,/usr/pkg/lib
creating owish
rm -f libotcl.so
/usr/pkg/bin/libtool  --mode=link cc -o otclsh -I/usr/pkg/include/tcl/generic 
-I/usr/pkg/include -I/usr/include -O2 -I/usr/pkg/include -I/usr/include -I.  
-I/usr/pkg/include -I/usr/pkg/include/tcl/generic 
-I/usr/pkg/include/tcl/generic  -I/usr/X11R6/include  otclAppInit.c  
./libotcl.la -L/usr/pkg/lib -ltk84 -L/usr/pkg/lib -ltcl84 -lpthread -lm  
-L/usr/X11R6/lib -lXext -lX11  -lintl -lm
cc -o .libs/otclsh -I/usr/pkg/include/tcl/generic -I/usr/pkg/include 
-I/usr/include -O2 -I/usr/pkg/include -I/usr/include -I. -I/usr/pkg/include 
-I/usr/pkg/include/tcl/generic -I/usr/pkg/include/tcl/generic 
-I/usr/X11R6/include otclAppInit.c  ./.libs/libotcl.so -L/usr/pkg/lib 
/usr/pkg/lib/libtk84.so -L/usr/X11R6/lib -ltclstub84 /usr/pkg/lib/libtcl84.so 
-lpthread -lXext -lX11 -lintl -lm -Wl,--rpath -Wl,/usr/pkg/lib
creating otclsh
for d in /usr/pkg/bin /usr/pkg/bin /usr/pkg/lib /usr/pkg/lib /usr/pkg/include; 
do  if [ ! -d $d ]; then  mkdir -p $d ; fi; done
/usr/pkg/bin/libtool  --mode=install /usr/bin/install -c -o root -g wheel -m 
444 libotcl.la /usr/pkg/lib
/usr/bin/install -c -o root -g wheel -m 444 .libs/libotcl.so.0.0.0 
/usr/pkg/lib/libotcl.so.0.0.0
(cd /usr/pkg/lib && { ln -s -f libotcl.so.0.0.0 libotcl.so.0 || { rm -f 
libotcl.so.0 && ln -s libotcl.so.0.0.0 libotcl.so.0; }; })
(cd /usr/pkg/lib && { ln -s -f libotcl.so.0.0.0 libotcl.so || { rm -f 
libotcl.so && ln -s libotcl.so.0.0.0 libotcl.so; }; })
/usr/bin/install -c -o root -g wheel -m 444 .libs/libotcl.lai 
/usr/pkg/lib/libotcl.la
/usr/bin/install -c -o root -g wheel -m 444 .libs/libotcl.a 
/usr/pkg/lib/libotcl.a
chmod 644 /usr/pkg/lib/libotcl.a
ranlib /usr/pkg/lib/libotcl.a
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/pkg/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/usr/pkg/bin/libtool  --mode=install /usr/bin/install -c -s -o root -g wheel -m 
555 owish /usr/pkg/bin
/usr/bin/install -c -o root -g wheel -m 555 -s .libs/owish /usr/pkg/bin/owish
/usr/pkg/bin/libtool  --mode=install /usr/bin/install -c -s -o root -g wheel -m 
555 otclsh /usr/pkg/bin
/usr/bin/install -c -o root -g wheel -m 555 -s .libs/otclsh /usr/pkg/bin/otclsh
/usr/bin/install -c -o root -g wheel -m 644 otcl.h /usr/pkg/include
/usr/bin/install -d -o root -g wheel -m 755 /usr/pkg/share/doc/tcl/otcl
/usr/bin/install -c -o root -g wheel -m 444 
/pkgsrc/lang/tcl-otcl/work.i386/otcl-1.13/CHANGES.html 
/usr/pkg/share/doc/tcl/otcl
/usr/bin/install -c -o root -g wheel -m 444 
/pkgsrc/lang/tcl-otcl/work.i386/otcl-1.13/doc/autoload.html 
/usr/pkg/share/doc/tcl/otcl
/usr/bin/install -c -o root -g wheel -m 444 
/pkgsrc/lang/tcl-otcl/work.i386/otcl-1.13/doc/capi.html 
/usr/pkg/share/doc/tcl/otcl
/usr/bin/install -c -o root -g wheel -m 444 
/pkgsrc/lang/tcl-otcl/work.i386/otcl-1.13/doc/class.html 
/usr/pkg/share/doc/tcl/otcl
/usr/bin/install -c -o root -g wheel -m 444 
/pkgsrc/lang/tcl-otcl/work.i386/otcl-1.13/doc/object.html 
/usr/pkg/share/doc/tcl/otcl
/usr/bin/install -c -o root -g wheel -m 444 
/pkgsrc/lang/tcl-otcl/work.i386/otcl-1.13/doc/tutorial.html 
/usr/pkg/share/doc/tcl/otcl
/usr/bin/install -c -o root -g wheel -m 444 
/pkgsrc/lang/tcl-otcl/work.i386/otcl-1.13/doc/otcl-paper.ps.gz 
/usr/pkg/share/doc/tcl/otcl
=> Automatic manual page handling
=> Generating post-install file lists
/usr/pkg/lib/libotcl.so.0.0.0: installed without execute permission; fixing 
(should use [BSD_]INSTALL_LIB)
=> Registering installation for tcl-otcl-1.13
tcl-otcl-1.13 requires installed package tcl-8.4.15
tcl-otcl-1.13 requires installed package tk-8.4.15
=> Checking file-check results for tcl-otcl-1.13
=> Checking file permissions in tcl-otcl-1.13
=> Checking for missing run-time search paths in tcl-otcl-1.13
ERROR: /usr/pkg/bin/otclsh:     -lXext.6 => not found
ERROR:  -lX11.6 => not found
ERROR: /usr/pkg/bin/owish:      -lXext.6 => not found
ERROR:  -lX11.6 => not found
ERROR: *** The programs/libs shown above will not find the listed
ERROR:     shared libraries at runtime.
ERROR:     Please fix the package (add -Wl,-R.../lib in the right places)!
*** Error code 1

Stop.
make: stopped in /home/source/pkgsrc/lang/tcl-otcl
*** Error code 1

Stop.
make: stopped in /home/source/pkgsrc/lang/tcl-otcl
*** Error code 1

Stop.
make: stopped in /home/source/pkgsrc/lang/tcl-otcl
=> Required installed package digest>=20010302: digest-20070803 found
=> Required installed package checkperms>=1.1: checkperms-1.7 found
===> Installing for tcl-otcl-1.13
=> Generating pre-install file lists
=> Creating installation directories
rm -f libotcl.a otcl.o
libtool  --mode=compile cc -c -O2 -I/usr/pkg/include -I/usr/include -DNDEBUG 
-DUSE_SHM -I.  -I/usr/pkg/include -I/usr/pkg/include/tcl/generic 
-I/usr/pkg/include/tcl/generic  -I/usr/X11R6/include otcl.c
 cc -c -O2 -I/pkgsrc/lang/tcl-otcl/work.i386/.buildlink/include -DNDEBUG 
-DUSE_SHM -I. -I/pkgsrc/lang/tcl-otcl/work.i386/.buildlink/include/tcl/generic 
-I/pkgsrc/lang/tcl-otcl/work.i386/.x11-buildlink/include otcl.c  -fPIC -DPIC -o 
.libs/otcl.o
 cc -c -O2 -I/pkgsrc/lang/tcl-otcl/work.i386/.buildlink/include -DNDEBUG 
-DUSE_SHM -I. -I/pkgsrc/lang/tcl-otcl/work.i386/.buildlink/include/tcl/generic 
-I/pkgsrc/lang/tcl-otcl/work.i386/.x11-buildlink/include otcl.c -o otcl.o 
>/dev/null 2>&1
libtool  --mode=link cc -o libotcl.la otcl.lo -rpath /usr/pkg/lib -version-info 
0:0
rm -fr  .libs/libotcl.a .libs/libotcl.la .libs/libotcl.lai 
.libs/libotcl.lai.blsav .libs/libotcl.so .libs/libotcl.so.0 
.libs/libotcl.so.0.0.0
cc -shared  .libs/otcl.o  -L/pkgsrc/lang/tcl-otcl/work.i386/.buildlink/lib  
-Wl,-soname -Wl,libotcl.so.0 -o .libs/libotcl.so.0.0.0
(cd .libs && rm -f libotcl.so.0 && ln -s libotcl.so.0.0.0 libotcl.so.0)
(cd .libs && rm -f libotcl.so && ln -s libotcl.so.0.0.0 libotcl.so)
ar cru .libs/libotcl.a  otcl.o
ranlib .libs/libotcl.a
creating libotcl.la
(cd .libs && rm -f libotcl.la && ln -s ../libotcl.la libotcl.la)
rm -f libotcl.so
libtool  --mode=link cc -o owish -I/usr/pkg/include/tcl/generic 
-I/usr/pkg/include -I/usr/include -O2 -I/usr/pkg/include -I/usr/include -I.  
-I/usr/pkg/include -I/usr/pkg/include/tcl/generic 
-I/usr/pkg/include/tcl/generic  -I/usr/X11R6/include -L/usr/pkg/lib 
-Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/X11R6/lib 
-Wl,-R/usr/X11R6/lib otkAppInit.c  ./libotcl.la -L/usr/pkg/lib -ltk84 
-L/usr/pkg/lib -ltcl84 -lpthread -lm  -L/usr/X11R6/lib -lXext -lX11  -lintl -lm
cc -o .libs/owish 
-I/pkgsrc/lang/tcl-otcl/work.i386/.buildlink/include/tcl/generic 
-I/pkgsrc/lang/tcl-otcl/work.i386/.buildlink/include -O2 -I. 
-I/pkgsrc/lang/tcl-otcl/work.i386/.x11-buildlink/include -Wl,-R/usr/pkg/lib 
-Wl,-R/usr/X11R6/lib otkAppInit.c  
-L/pkgsrc/lang/tcl-otcl/work.i386/.buildlink/lib 
-L/pkgsrc/lang/tcl-otcl/work.i386/.x11-buildlink/lib ./.libs/libotcl.so 
/pkgsrc/lang/tcl-otcl/work.i386/.buildlink/lib/libtk84.so -ltclstub84 
/pkgsrc/lang/tcl-otcl/work.i386/.buildlink/lib/libtcl84.so -lpthread -lXext 
-lX11 -lintl -lm -Wl,--rpath -Wl,/usr/pkg/lib -Wl,--rpath 
-Wl,/pkgsrc/lang/tcl-otcl/work.i386/.buildlink/lib
creating owish
rm -f libotcl.so
libtool  --mode=link cc -o otclsh -I/usr/pkg/include/tcl/generic 
-I/usr/pkg/include -I/usr/include -O2 -I/usr/pkg/include -I/usr/include -I.  
-I/usr/pkg/include -I/usr/pkg/include/tcl/generic 
-I/usr/pkg/include/tcl/generic  -I/usr/X11R6/include -L/usr/pkg/lib 
-Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/X11R6/lib 
-Wl,-R/usr/X11R6/lib otclAppInit.c  ./libotcl.la -L/usr/pkg/lib -ltk84 
-L/usr/pkg/lib -ltcl84 -lpthread -lm  -L/usr/X11R6/lib -lXext -lX11  -lintl -lm
cc -o .libs/otclsh 
-I/pkgsrc/lang/tcl-otcl/work.i386/.buildlink/include/tcl/generic 
-I/pkgsrc/lang/tcl-otcl/work.i386/.buildlink/include -O2 -I. 
-I/pkgsrc/lang/tcl-otcl/work.i386/.x11-buildlink/include -Wl,-R/usr/pkg/lib 
-Wl,-R/usr/X11R6/lib otclAppInit.c  
-L/pkgsrc/lang/tcl-otcl/work.i386/.buildlink/lib 
-L/pkgsrc/lang/tcl-otcl/work.i386/.x11-buildlink/lib ./.libs/libotcl.so 
/pkgsrc/lang/tcl-otcl/work.i386/.buildlink/lib/libtk84.so -ltclstub84 
/pkgsrc/lang/tcl-otcl/work.i386/.buildlink/lib/libtcl84.so -lpthread -lXext 
-lX11 -lintl -lm -Wl,--rpath -Wl,/usr/pkg/lib -Wl,--rpath 
-Wl,/pkgsrc/lang/tcl-otcl/work.i386/.buildlink/lib
creating otclsh
for d in /usr/pkg/bin /usr/pkg/bin /usr/pkg/lib /usr/pkg/lib /usr/pkg/include; 
do  if [ ! -d $d ]; then  mkdir -p $d ; fi; done
libtool  --mode=install /usr/bin/install -c -o root -g wheel -m 444 libotcl.la 
/usr/pkg/lib
/usr/bin/install -c -o root -g wheel -m 444 .libs/libotcl.so.0.0.0 
/usr/pkg/lib/libotcl.so.0.0.0
(cd /usr/pkg/lib && { ln -s -f libotcl.so.0.0.0 libotcl.so.0 || { rm -f 
libotcl.so.0 && ln -s libotcl.so.0.0.0 libotcl.so.0; }; })
(cd /usr/pkg/lib && { ln -s -f libotcl.so.0.0.0 libotcl.so || { rm -f 
libotcl.so && ln -s libotcl.so.0.0.0 libotcl.so; }; })
/usr/bin/install -c -o root -g wheel -m 444 .libs/libotcl.lai 
/usr/pkg/lib/libotcl.la
/usr/bin/install -c -o root -g wheel -m 444 .libs/libotcl.a 
/usr/pkg/lib/libotcl.a
chmod 644 /usr/pkg/lib/libotcl.a
ranlib /usr/pkg/lib/libotcl.a
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/pkg/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
libtool  --mode=install /usr/bin/install -c -s -o root -g wheel -m 555 owish 
/usr/pkg/bin
/usr/bin/install -c -o root -g wheel -m 555 -s .libs/owish /usr/pkg/bin/owish
libtool  --mode=install /usr/bin/install -c -s -o root -g wheel -m 555 otclsh 
/usr/pkg/bin
/usr/bin/install -c -o root -g wheel -m 555 -s .libs/otclsh /usr/pkg/bin/otclsh
/usr/bin/install -c -o root -g wheel -m 644 otcl.h /usr/pkg/include
/usr/bin/install -d -o root -g wheel -m 755 /usr/pkg/share/doc/tcl/otcl
/usr/bin/install -c -o root -g wheel -m 444 
/pkgsrc/lang/tcl-otcl/work.i386/otcl-1.13/CHANGES.html 
/usr/pkg/share/doc/tcl/otcl
/usr/bin/install -c -o root -g wheel -m 444 
/pkgsrc/lang/tcl-otcl/work.i386/otcl-1.13/doc/autoload.html 
/usr/pkg/share/doc/tcl/otcl
/usr/bin/install -c -o root -g wheel -m 444 
/pkgsrc/lang/tcl-otcl/work.i386/otcl-1.13/doc/capi.html 
/usr/pkg/share/doc/tcl/otcl
/usr/bin/install -c -o root -g wheel -m 444 
/pkgsrc/lang/tcl-otcl/work.i386/otcl-1.13/doc/class.html 
/usr/pkg/share/doc/tcl/otcl
/usr/bin/install -c -o root -g wheel -m 444 
/pkgsrc/lang/tcl-otcl/work.i386/otcl-1.13/doc/object.html 
/usr/pkg/share/doc/tcl/otcl
/usr/bin/install -c -o root -g wheel -m 444 
/pkgsrc/lang/tcl-otcl/work.i386/otcl-1.13/doc/tutorial.html 
/usr/pkg/share/doc/tcl/otcl
/usr/bin/install -c -o root -g wheel -m 444 
/pkgsrc/lang/tcl-otcl/work.i386/otcl-1.13/doc/otcl-paper.ps.gz 
/usr/pkg/share/doc/tcl/otcl
=> Automatic manual page handling
=> Generating post-install file lists
/usr/pkg/lib/libotcl.so.0.0.0: installed without execute permission; fixing 
(should use [BSD_]INSTALL_LIB)
=> Registering installation for tcl-otcl-1.13
tcl-otcl-1.13 requires installed package tcl-8.4.15
tcl-otcl-1.13 requires installed package tk-8.4.15
=> Checking file-check results for tcl-otcl-1.13
=> Checking file permissions in tcl-otcl-1.13
=> Checking for missing run-time search paths in tcl-otcl-1.13
=> Checking for work-directory references in tcl-otcl-1.13


Home | Main Index | Thread Index | Old Index