Hi. I'm tryng to compile openssh 2.5.p1 (latest) on sco unixware 7.0.1 and I'm getting this error in make: cc -o sshd sshd.o auth.o auth1.o auth2.o auth-chall.o auth2-chall.o auth-rhosts.o auth-options.o auth-krb4.o auth-pam.o auth2-pam.o auth-passwd.o auth-rsa.o auth-rh-rsa.o auth-sia.o dh.o sshpty.o log-server.o sshlogin.o loginrec.o servconf.o serverloop.o md5crypt.o session.o groupaccess.o -L. -Lopenbsd-compat/ -L/usr/local/lib -L/usr/local/ssl/lib -L/usr/local/ssl/lib -lssh -lopenbsd-compat -lz -lsocket -lnsl -lgen -lcrypto Undefined first referenced symbol in file getspnam auth.o UX:ld: ERROR: sshd: fatal error: Symbol referencing errors. No output written to sshd make: *** [sshd] Error 1 Basically some problems with getspnam. I checked on internet and some solutions are to look in LIBS to -lgen, but from output it looks like it is looking in lgen. Is there some workaround? Here is output from configure: # ./configure loading cache ./config.cache checking for gcc... (cached) cc checking whether the C compiler (cc ) works... yes checking whether the C compiler (cc ) is a cross-compiler... no checking whether we are using GNU C... (cached) no checking whether cc accepts -g... (cached) yes checking host system type... i586-sco-sysv5uw7.0.1 checking how to run the C preprocessor... (cached) cc -E checking for ranlib... (cached) : checking for a BSD compatible install... ./install-sh -c checking for ar... (cached) /usr/bin/ar checking for perl... (cached) /usr/bin/perl checking for ent... no checking for filepriv... (cached) /sbin/filepriv checking for bash... (cached) /usr/bin/ksh checking for ksh... (cached) /usr/bin/ksh checking for sh... (cached) /usr/bin/ksh checking for login... (cached) /usr/bin/login checking for inline... (cached) no checking for yp_match in -lnsl... (cached) yes checking for main in -lsocket... (cached) yes checking for innetgr in -lrpc... (cached) no checking for getspnam in -lgen... (cached) no checking for deflate in -lz... (cached) yes checking for login in -lutil... (cached) no checking for regcomp... (cached) yes checking for strcasecmp... (cached) yes checking for utimes... (cached) yes checking for bstring.h... (cached) no checking for endian.h... (cached) no checking for floatingpoint.h... (cached) no checking for getopt.h... (cached) no checking for lastlog.h... (cached) yes checking for limits.h... (cached) yes checking for login.h... (cached) no checking for login_cap.h... (cached) no checking for maillock.h... (cached) yes checking for netdb.h... (cached) yes checking for netgroup.h... (cached) no checking for netinet/in_systm.h... (cached) yes checking for paths.h... (cached) yes checking for poll.h... (cached) yes checking for pty.h... (cached) no checking for regex.h... (cached) yes checking for shadow.h... (cached) yes checking for security/pam_appl.h... (cached) no checking for sys/bitypes.h... (cached) yes checking for sys/bsdtty.h... (cached) no checking for sys/cdefs.h... (cached) yes checking for sys/poll.h... (cached) yes checking for sys/queue.h... (cached) no checking for sys/select.h... (cached) yes checking for sys/stat.h... (cached) yes checking for sys/stropts.h... (cached) yes checking for sys/sysmacros.h... (cached) yes checking for sys/time.h... (cached) yes checking for sys/ttcompat.h... (cached) no checking for sys/un.h... (cached) yes checking for stddef.h... (cached) yes checking for time.h... (cached) yes checking for ttyent.h... (cached) no checking for usersec.h... (cached) no checking for util.h... (cached) no checking for utime.h... (cached) yes checking for utmp.h... (cached) yes checking for utmpx.h... (cached) yes checking for vis.h... (cached) no checking for arc4random... (cached) no checking for atexit... (cached) yes checking for b64_ntop... (cached) no checking for bcopy... (cached) yes checking for bindresvport_sa... (cached) no checking for clock... (cached) yes checking for fchown... (cached) yes checking for fchmod... (cached) yes checking for freeaddrinfo... (cached) yes checking for futimes... (cached) no checking for gai_strerror... (cached) yes checking for getcwd... (cached) yes checking for getaddrinfo... (cached) yes checking for getgrouplist... (cached) no checking for getnameinfo... (cached) yes checking for getrlimit... (cached) yes checking for getrusage... (cached) yes checking for getttyent... (cached) no checking for inet_aton... (cached) yes checking for inet_ntoa... (cached) yes checking for innetgr... (cached) yes checking for login_getcapbool... (cached) no checking for md5_crypt... (cached) no checking for memmove... (cached) yes checking for mkdtemp... (cached) no checking for on_exit... (cached) no checking for openpty... (cached) no checking for realpath... (cached) yes checking for rresvport_af... (cached) no checking for setdtablesize... (cached) no checking for setenv... (cached) no checking for seteuid... (cached) yes checking for setlogin... (cached) no checking for setproctitle... (cached) no checking for setreuid... (cached) yes checking for setrlimit... (cached) yes checking for setsid... (cached) yes checking for sigaction... (cached) yes checking for sigvec... (cached) no checking for snprintf... (cached) yes checking for strerror... (cached) yes checking for strlcat... (cached) no checking for strlcpy... (cached) no checking for strmode... (cached) no checking for strsep... (cached) no checking for strtok_r... (cached) yes checking for sysconf... (cached) yes checking for tcgetpgrp... (cached) yes checking for utimes... (cached) yes checking for vsnprintf... (cached) yes checking for vhangup... (cached) no checking for vis... (cached) no checking for waitpid... (cached) yes checking for _getpty... (cached) no checking for __b64_ntop... (cached) no checking for gettimeofday... (cached) yes checking for time... (cached) yes checking for libutil.h... (cached) no checking for login... (cached) no checking for logout... (cached) no checking for updwtmp... (cached) yes checking for logwtmp... (cached) no checking for endutent... (cached) yes checking for getutent... (cached) yes checking for getutid... (cached) yes checking for getutline... (cached) yes checking for pututline... (cached) yes checking for setutent... (cached) yes checking for utmpname... (cached) yes checking for endutxent... (cached) yes checking for getutxent... (cached) yes checking for getutxid... (cached) yes checking for getutxline... (cached) yes checking for pututxline... (cached) yes checking for setutxent... (cached) yes checking for utmpxname... (cached) yes checking for getuserattr... (cached) no checking for getuserattr in -ls... (cached) no checking for login... (cached) no checking for login in -lbsd... (cached) no checking for daemon... (cached) no checking for daemon in -lbsd... (cached) no checking for getpagesize... (cached) yes checking whether snprintf correctly terminates long strings... yes checking whether getpgrp takes no argument... (cached) yes checking for strftime... (cached) yes checking for OpenSSL directory... (cached) /usr/local/ssl checking for RSA support... yes checking size of char... (cached) 1 checking size of short int... (cached) 2 checking size of int... (cached) 4 checking size of long int... (cached) 4 checking size of long long int... (cached) 8 checking for u_int type... (cached) yes checking for intXX_t types... (cached) no checking for int64_t type... (cached) no checking for u_intXX_t types... (cached) no checking for u_int64_t types... (cached) no checking for intXX_t and u_intXX_t types in sys/bitypes.h... yes checking for uintXX_t types... (cached) no checking for socklen_t... (cached) no checking for size_t... (cached) yes checking for ssize_t... (cached) yes checking for clock_t... (cached) yes checking for sa_family_t... (cached) yes checking for pid_t... (cached) yes checking for mode_t... (cached) yes checking for struct sockaddr_storage... (cached) no checking for struct sockaddr_in6... (cached) yes checking for struct in6_addr... (cached) yes checking for struct addrinfo... (cached) yes checking for struct timeval... (cached) yes checking for ut_host field in utmp.h... (cached) no checking for ut_host field in utmpx.h... (cached) yes checking for syslen field in utmpx.h... (cached) yes checking for ut_pid field in utmp.h... (cached) yes checking for ut_type field in utmp.h... (cached) yes checking for ut_type field in utmpx.h... (cached) yes checking for ut_tv field in utmp.h... (cached) no checking for ut_id field in utmp.h... (cached) yes checking for ut_id field in utmpx.h... (cached) yes checking for ut_addr field in utmp.h... (cached) no checking for ut_addr field in utmpx.h... (cached) no checking for ut_addr_v6 field in utmp.h... (cached) no checking for ut_addr_v6 field in utmpx.h... (cached) no checking for ut_exit field in utmp.h... (cached) yes checking for ut_time field in utmp.h... (cached) yes checking for ut_time field in utmpx.h... (cached) yes checking for ut_tv field in utmpx.h... (cached) yes checking for st_blksize in struct stat... (cached) yes checking for sun_len field in struct sockaddr_un... (cached) no checking for ss_family field in struct sockaddr_storage... (cached) no checking for __ss_family field in struct sockaddr_storage... (cached) no checking for pw_class field in struct passwd... (cached) no checking if libc defines __progname... (cached) no checking if libc defines sys_errlist... (cached) yes checking if libc defines sys_nerr... (cached) yes checking for rsh... (cached) /usr/bin/rsh checking for xauth... (cached) /usr/X/bin/xauth checking for /dev/ptmx... (cached) yes checking for /dev/ptc... (cached) no checking for /dev/urandom... (cached) no checking for PRNGD/EGD socket... not found checking for ls... (cached) /usr/bin/ls checking for netstat... (cached) /usr/bin/netstat checking for arp... (cached) /usr/sbin/arp checking for ifconfig... (cached) /usr/sbin/ifconfig checking for ps... (cached) /sbin/ps checking for w... (cached) /usr/bin/w checking for who... (cached) /sbin/who checking for last... (cached) /usr/bin/last checking for lastlog... no checking for df... (cached) /sbin/df checking for vmstat... no checking for uptime... (cached) /usr/bin/uptime checking for ipcs... (cached) /usr/bin/ipcs checking for tail... (cached) /usr/bin/tail checking if the systems has expire shadow information... yes checking if we need to convert IPv4 in IPv6-mapped addresses... no (default) checking whether to install ssh as suid root... no checking if your system defines LASTLOG_FILE... no checking if your system defines _PATH_LASTLOG... no checking if your system defines UTMP_FILE... yes checking if your system defines WTMP_FILE... yes checking if your system defines UTMPX_FILE... yes checking if your system defines WTMPX_FILE... yes checking for Cygwin environment... (cached) no checking for mingw32 environment... (cached) no checking for executable suffix... (cached) no creating ./config.status creating Makefile creating openbsd-compat/Makefile creating ssh_prng_cmds creating config.h config.h is unchanged OpenSSH configured has been configured with the following options. User binaries: /usr/local/bin System binaries: /usr/local/sbin Configuration files: /usr/local/etc Askpass program: /usr/local/libexec/ssh-askpass Manual pages: /usr/local/man/catX PID file: /usr/local/etc Random number collection: Builtin (timeout 200) Manpage format: cat PAM support: no KerberosIV support: no AFS support: no S/KEY support: no TCP Wrappers support: no MD5 password support: no IP address in $DISPLAY hack: no Use IPv4 by default hack: no Translate v4 in v6 hack: no Host: i586-sco-sysv5uw7.0.1 Compiler: cc Compiler flags: -g Preprocessor flags: -I/usr/local/include -I/usr/local/ssl/include Linker flags: -L/usr/local/lib -L/usr/local/ssl/lib Libraries: -lz -lsocket -lnsl -lcrypto WARNING: you are using the builtin random number collection service. Please read WARNING.RNG and request that your OS vendor includes /dev/random in future versions of their OS.
On Tue, 10 Apr 2001, [iso-8859-2] Dean Luka Domikuli? wrote:> Hi. > > I'm tryng to compile openssh 2.5.p1 (latest) > on sco unixware 7.0.1 and I'm getting > this error in make: > > cc -o sshd sshd.o auth.o auth1.o auth2.o auth-chall.o auth2-chall.o > auth-rhosts.o auth-options.o auth-krb4.o auth-pam.o auth2-pam.o > auth-passwd.o auth-rsa.o auth-rh-rsa.o auth-sia.o dh.o sshpty.o log-server.o > sshlogin.o loginrec.o servconf.o serverloop.o md5crypt.o session.o > groupaccess.o -L. -Lopenbsd-compat/ -L/usr/local/lib -L/usr/local/ssl/lib > -L/usr/local/ssl/lib -lssh -lopenbsd-compat -lz -lsocket -lnsl -lgen > -lcrypto > Undefined first referenced > symbol in file > getspnam auth.o > UX:ld: ERROR: sshd: fatal error: Symbol referencing errors. No output > written to sshd > make: *** [sshd] Error 1Can you try: LIBS=-lshadow ./configure [whatever] -d -- | Damien Miller <djm at mindrot.org> \ ``E-mail attachments are the poor man's | http://www.mindrot.org / distributed filesystem'' - Dan Geer
Mea culpa, it looks like the system was missconfigured. LIBS=-lshadow did not help. But thanks for the advice. getspnam is in shadow.h in /usr/include but there is no libshadow* library. Library in which getspnam really is is libgen. I found that library with find and it is in /usr/ccs/lib. I checked with grep and strings and it realy contains getspnam. So I added /usr/ccs/lib to LD_LIBRARY_PATH, removed config.cache, started ./configure again and everything went fine. Maybe /usr/ccs/lib should be added in lib path for this platform.> -----Original Message----- > From: Damien Miller [mailto:djm at mindrot.org] > Sent: Wednesday, April 11, 2001 3:20 AM > To: Dean Luka Domikuli? > Cc: 'openssh-unix-dev at mindrot.org' > Subject: Re: Compiling openssh 2.5.p1 on unixware 7.0.1 > > > On Tue, 10 Apr 2001, [iso-8859-2] Dean Luka Domikuliae wrote: > > > Hi. > > > > I'm tryng to compile openssh 2.5.p1 (latest) > > on sco unixware 7.0.1 and I'm getting > > this error in make: > > > > cc -o sshd sshd.o auth.o auth1.o auth2.o auth-chall.o auth2-chall.o > > auth-rhosts.o auth-options.o auth-krb4.o auth-pam.o auth2-pam.o > > auth-passwd.o auth-rsa.o auth-rh-rsa.o auth-sia.o dh.o > sshpty.o log-server.o > > sshlogin.o loginrec.o servconf.o serverloop.o md5crypt.o session.o > > groupaccess.o -L. -Lopenbsd-compat/ -L/usr/local/lib > -L/usr/local/ssl/lib > > -L/usr/local/ssl/lib -lssh -lopenbsd-compat -lz -lsocket -lnsl -lgen > > -lcrypto > > Undefined first referenced > > symbol in file > > getspnam auth.o > > UX:ld: ERROR: sshd: fatal error: Symbol referencing errors. > No output > > written to sshd > > make: *** [sshd] Error 1 > > Can you try: > > LIBS=-lshadow ./configure [whatever] > > -d > > -- > | Damien Miller <djm at mindrot.org> \ ``E-mail attachments are > the poor man's > | http://www.mindrot.org / distributed > filesystem'' - Dan Geer >