Subject: pkg/33318: security/john Solaris10 x86_64
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Gilles Dauphin <dauphin@enst.fr>
List: pkgsrc-bugs
Date: 04/20/2006 14:20:00
>Number:         33318
>Category:       pkg
>Synopsis:       security/john Solaris10 x86_64
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 20 14:20:00 +0000 2006
>Originator:     Gilles Dauphin
>Release:        SunOS 5.10 i86pc
>Organization:
ENST 
>Environment:


System: SunOS bi.enst.fr 5.10 Generic_Patch_118844-30 i86pc


>Description:


bmake ../run/john ../run/unshadow ../run/unafs ../run/unique
gcc  -s DES_fmt.o DES_std.o DES_bs.o  BSDI_fmt.o  MD5_fmt.o MD5_std.o  BF_fmt.o BF_std.o  AFS_fmt.o  LM_fmt.o  batch.o bench.o charset.o common.o compiler.o config.o cracker.o  crc32.o external.o formats.o getopt.o idle.o inc.o john.o list.o  loader.o logger.o math.o memory.o misc.o options.o params.o path.o  recovery.o rpp.o rules.o signals.o single.o status.o tty.o wordlist.o  unshadow.o  unafs.o  unique.o  DES_bs_b.o -o ../run/john
Undefined                       first referenced
 symbol                             in file
sched_yield                         idle.o
ld: fatal: Symbol referencing errors. No output written to ../run/john
collect2: ld returned 1 exit status
*** Error code 1

Stop.



>How-To-Repeat:


bmake in john


>Fix:


[root@u2 1063] diff -bu Makefile /home/cvsmywork/pkgsrc/security/john/Makefile 
--- Makefile    Thu Mar 30 16:01:12 2006
+++ /home/cvsmywork/pkgsrc/security/john/Makefile       Thu Apr 20 16:10:09 2006
@@ -27,10 +27,11 @@
 .  else
 BUILD_TARGET=  solaris-sparc-gcc
 .  endif
-.elif ${OPSYS} == "SunOS" && ${MACHINE_ARCH} == "i386"
+.elif ${OPSYS} == "SunOS" && ${MACHINE_ARCH} == "i386" && ${ABI} == "32"
 BUILD_TARGET=  solaris-x86-any
 .else
 BUILD_TARGET=  generic
+LDFLAGS+=      -lrt
 .endif
 
 INSTALLATION_DIRS=     bin
[root@u2 1064]