[scponly] scponly 4.6 ./configure under OpenBSD3.9

G 0kita goo13c at gmail.com
Mon Aug 28 15:47:52 EDT 2006


Hey Paul, thanks for the configure switch change.  It correctly set up the
config.h and now thing work quite a bit better.
The make jail (setup_chroot.sh) file still has a few problems based on a
change OpenBSD made to the output of the ldd program.

Old behaviour:
# ldd /usr/bin/scp
/usr/bin/scp:
    Start    End      Type Ref Name
    00000000 00000000 exe   1  /usr/bin/scp
    0ac62000 2ac9a000 rlib  1  /usr/lib/libc.so.34.1
    0b22a000 0b22a000 rtld  1  /usr/libexec/ld.so
New behaviour:
# ldd /usr/bin/scp
/bin/scp:
    Start    End      Type Open Ref GrpRef Name
    00000000 00000000 exe  1    0   0      /usr/bin/scp
    0705c000 2708d000 rlib 0    1   0      /usr/lib/libc.so.39.0
    06561000 06561000 rtld 0    1   0      /usr/libexec/ld.so

You can simply change the ldd line to -f7 from -f5 or use the diff I've
provided.  Without this change the crypto libraries aren't copied - which
might explain a few issues people have been having!
LIB_LIST: /usr/lib/libc.so.39.0 /usr/lib/libcrypto.so.12.0
/usr/libexec/ld.so /usr/libexec/ld.so
The ld.so shows up twice because of the LDSO_LIST section, btw.

G0kita

# diff -naur setup_chroot.sh.dist setup_chroot.sh.new
--- setup_chroot.sh.dist    Mon Aug 28 19:07:45 2006
+++ setup_chroot.sh.new    Mon Aug 28 19:27:53 2006
@@ -71,7 +71,7 @@
     for bin in $BINARIES; do
         GREP_LIST="$GREP_LIST -e $bin"
     done
-    LIB_LIST=`/usr/bin/ldd $BINARIES 2> /dev/null | /usr/bin/tr -s " " |
/usr/bin/cut -f5 -d" " | /usr/bin/grep -v "^Name" | /usr/bin/grep -v
$GREP_LIST | /usr/bin/sort -u`
+    LIB_LIST=`/usr/bin/ldd $BINARIES 2> /dev/null | awk '{ print $7 }' |
/usr/bin/grep -v "^Name" | /usr/bin/grep -v $GREP_LIST | /usr/bin/sort -u`
 else
     LIB_LIST=`/usr/bin/ldd $BINARIES 2> /dev/null | /usr/bin/cut -f2 -d\> |
/usr/bin/cut -f1 -d\( | /usr/bin/grep "^ " | /usr/bin/sort -u`
 fi
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the scponly mailing list