Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Feb 1999 12:46:16 +1300
From:      Joe Abley <jabley@clear.co.nz>
To:        freebsd-ports@freebsd.org, torstenb@freebsd.org, imp@freebsd.org
Cc:        jabley@clear.co.nz
Subject:   ssh (with USE_SOCKS) and socks5
Message-ID:  <19990218124616.A71933@clear.co.nz>

next in thread | raw e-mail | index | archive | help
Hi,

I can't seem to socksify ssh on 4.0-CURRENT (transcript below, current socks5
and ssh ports installed) using the USE_SOCKS make switch.

It looks to me as though libsocks5.so.1 is alive and well and in the ldconfig
hints file.

Ssh's configure.orig seems to do a test compile with -lsocks5, which if I
try it manually seems to work just fine:

  jabley@buddha[22]% cat >test.c
  int main(void)
  {
    SOCKSinit();
  }
  jabley@buddha[23]% cc -L/usr/local/lib -lsocks5 test.c
  jabley@buddha[24]% strings a.out
  /usr/libexec/ld-elf.so.1
  libsocks5.so
  _DYNAMIC
  _GLOBAL_OFFSET_TABLE_
  SOCKSinit
  libc.so.3
  _init
  _fini
  exit
  __progname
  atexit
  environ
  _etext
  _edata
  __bss_start
  _end
  8/u
  jabley@buddha[25]% ./a.out
  jabley@buddha[26]%

Is this a known issue?


Joe

---- failure transcript follows! ----

buddha# uname -a
FreeBSD buddha.clear.net.nz 4.0-CURRENT FreeBSD 4.0-CURRENT #30: Tue Feb  2 13:14:03 NZDT 1999     root@buddha.clear.net.nz:/usr/src/sys/compile/TIMELORD  i386
buddha# ident /usr/ports/security/ssh/Makefile /usr/ports/net/socks5/Makefile
/usr/ports/security/ssh/Makefile:
     $Id: Makefile,v 1.72 1999/01/02 00:12:20 asami Exp $

/usr/ports/net/socks5/Makefile:
     $Id: Makefile,v 1.23 1999/01/06 04:49:29 imp Exp $
buddha# cd /usr/ports/security/ssh
buddha# make USE_SOCKS=YES install && make USE_SOCKS=YES clean
===>  Extracting for ssh-1.2.26
>> Checksum OK for ssh-1.2.26.tar.gz.
===>  Patching for ssh-1.2.26
===>  Applying FreeBSD patches for ssh-1.2.26
===>  Configuring for ssh-1.2.26
creating cache ./config.cache
checking host system type... i386-unknown-freebsd4.0
checking cached information... ok
checking for gcc... cc
checking whether the C compiler (cc -O -pipe ) works... yes
checking whether the C compiler (cc -O -pipe ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether cc accepts -g... yes
checking for POSIXized ISC... no
checking that the compiler works... yes
checking if the compiler understands -pipe... yes
checking whether to enable -Wall... no
checking return type of signal handlers... void
checking how to run the C preprocessor... cc -pipe -E
checking for ANSI C header files... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for off_t... yes
checking for mode_t... yes
checking for st_blksize in struct stat... yes
checking for working const... yes
checking for inline... inline
checking whether byte ordering is bigendian... no
checking size of long... 4
checking size of int... 4
checking size of short... 2
checking for termios.h... yes
checking for utmpx.h... no
checking whether utmpx have ut_syslen field... no
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for unistd.h... yes
checking for rusage.h... no
checking for sys/time.h... yes
checking for lastlog.h... no
checking for login_cap.h... yes
checking for utmp.h... yes
checking for shadow.h... no
checking for sgtty.h... yes
checking for sys/select.h... yes
checking for sys/ioctl.h... yes
checking for machine/endian.h... yes
checking for paths.h... yes
checking for usersec.h... no
checking for utime.h... yes
checking for netinet/in_systm.h... yes
checking for netinet/in_system.h... no
checking for netinet/ip.h... yes
checking for netinet/tcp.h... yes
checking for ulimit.h... no
checking for sys/resource.h... yes
checking for login_cap.h... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking whether stat file-mode macros are broken... no
checking whether sys/types.h defines makedev... yes
checking whether utmp have ut_pid field... no
checking whether utmp have ut_name field... yes
checking whether utmp have ut_id field... no
checking whether utmp have ut_host field... yes
checking whether utmp have ut_addr field... no
checking whether you have incompatible SIGINFO macro... no
checking for crypt in -lc... no
checking for crypt in -lcrypt... yes
checking for getspnam in -lsec... no
checking for get_process_stats in -lseq... no
checking for bcopy in -lbsd... no
checking for main in -lnsl... no
checking for socket in -lsocket... no
checking for getpwnam in -lsun... no
checking for openpty in -lbsd... no
checking for login in -lutil... yes
checking for vhangup... no
checking for setsid... yes
checking for gettimeofday... yes
checking for times... yes
checking for getrusage... yes
checking for ftruncate... yes
checking for revoke... yes
checking for makeutx... no
checking for strchr... yes
checking for memcpy... yes
checking for setlogin... yes
checking for openpty... yes
checking for _getpty... no
checking for clock... yes
checking for fchmod... yes
checking for ulimit... no
checking for gethostname... yes
checking for getdtablesize... yes
checking for umask... yes
checking for innetgr... yes
checking for initgroups... yes
checking for setpgrp... yes
checking for setpgid... yes
checking for daemon... yes
checking for waitpid... yes
checking for ttyslot... yes
checking for authenticate... no
checking for strerror... yes
checking for memmove... yes
checking for remove... yes
checking for random... yes
checking for putenv... yes
checking for crypt... yes
checking for socketpair... yes
checking whether ln -s works... yes
checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel
checking for ar... ar
checking for ranlib... ranlib
checking for makedepend... makedepend
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for gethostbyname... yes
checking for connect... yes
checking for remove... (cached) yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for passwd... /usr/bin/passwd
checking for xauth... /usr/X11R6/bin/xauth
checking for X11 unix domain socket directory... /tmp/.X11-unix
checking for perl5... /replace_it_with_PERL_path
./configure: /replace_it_with_PERL_path: not found
checking for getpseudotty... no
checking for pseudo ttys... bsd-style ptys
checking for /etc/default/login... no
checking for shadow passwords... no
checking location of mail spool files... /var/mail
checking location of utmp... /var/run/utmp
checking location of wtmp... /var/log/wtmp
checking location of lastlog... /var/log/lastlog
checking whether /var/log/lastlog is a directory... no
checking whether to include the IDEA encryption algorithm... yes
checking whether to include the Blowfish encryption algorithm... yes
checking whether to include the DES encryption algorithm... no
checking whether to include the ARCFOUR encryption algorithm... no
checking whether to include the none encryption algorithm... no
checking whether to use login... no
checking whether to use rsh... yes
checking for remsh... no
checking for resh... no
checking for rsh... /usr/bin/rsh
checking default path... use system default
checking etcdir... /usr/local/etc
checking whether to use nologin.allow file to override nologin... no
checking whether to support SecurID... no
checking whether to support TIS authentication server... no
checking whether to use Kerberos... no
checking whether to enable passing the Kerberos TGT... no
checking whether to use libwrap... no
checking whether to support SOCKS... checking whether to support SOCKS5... yes
configure: error: Could not find the -lsocks5 library.  You must first install socks5.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.

buddha# ls -l /usr/local/lib/*sock*
-r--r--r--  1 root  wheel   86246 Sep 29 11:16 /usr/local/lib/libsocket++.a
lrwxr-xr-x  1 root  wheel      16 Sep 29 11:16 /usr/local/lib/libsocket++.so -> libsocket++.so.1
-r--r--r--  1 root  wheel   76969 Sep 29 11:16 /usr/local/lib/libsocket++.so.1
-rwxr-xr-x  1 root  wheel  109266 Feb 18 11:54 /usr/local/lib/libsocks5.a
lrwxr-xr-x  1 root  wheel      17 Sep 20 03:02 /usr/local/lib/libsocks5.so -> ./libsocks5_sh.so
lrwxr-xr-x  1 root  wheel      17 Sep 20 03:02 /usr/local/lib/libsocks5.so.1 -> ./libsocks5_sh.so
-rwxr-xr-x  1 root  wheel   94647 Feb 18 11:54 /usr/local/lib/libsocks5_sh.so
buddha# ldconfig -elf -r | grep -i socks
        82:-lsocks5.1 => /usr/local/lib/libsocks5.so.1



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990218124616.A71933>