Subject: bin/18118: Illegal symblic link created with make install
To: None <gnats-bugs@gnats.netbsd.org>
From: Takahiro Kambe <taca@kyoto.jepro.co.jp>
List: netbsd-bugs
Date: 08/30/2002 20:19:47
>Number: 18118
>Category: bin
>Synopsis: Illegal symblic link created with make install
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Aug 30 04:20:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Takahiro Kambe
>Release: NetBSD 1.5.4_ALPHA
>Organization:
>Environment:
System: NetBSD cancel.kyoto.jepro.co.jp 1.5.4_ALPHA NetBSD 1.5.4_ALPHA (CANCEL) #64: Mon Aug 5 17:57:44 JST 2002 boxqun-request@kyoto.jepro.co.jp:/usr/src/sys/arch/i386/compile/CANCEL i386
Architecture: i386
Machine: i386
>Description:
Illegal symblic link created with make install in src/lib/libcrypto.
>How-To-Repeat:
Update source files to NetBSD 1.5.4_ALPHA 2002/08/29.
# cd /usr/src/lib/libcrypto
# make install
...
/libdes.so.5.1 -> libcrypto.so.1.1
/libdes.so.5 -> libcrypto.so.1
/libdes.so -> libcrypto.so
After that,
root@cancel[97]:ls /
.cshrc boot etc/ mnt/ sys@
.profile cdrom/ home/ netbsd* tftpboot/
a/ d/ installation/ netbsd.old* tmp/
altroot/ dev/ kern/ onetbsd* usr/
b/ dos/ libdes.so@ root/ var/
bin/ e/ libdes.so.5@ sbin/
binary/ emul@ libdes.so.5.1@ stand/
root@cancel[97]:ls -l /
...
lrwxr-xr-x 1 root wheel 12 Aug 30 19:53 libdes.so@ -> libcrypto.so
lrwxr-xr-x 1 root wheel 14 Aug 30 19:53 libdes.so.5@ -> libcrypto.so.1
lrwxr-xr-x 1 root wheel 16 Aug 30 19:53 libdes.so.5.1@ -> libcrypto.so.1.1
>Fix:
I don't check this is correct fix or not, but it seems to fix.
Index: Makefile
===================================================================
RCS file: /usr/pkg/libdata/cvs/netbsd/lib/libcrypto/Makefile,v
retrieving revision 1.1.2.3.2.1
diff -u -r1.1.2.3.2.1 Makefile
--- Makefile 2002/08/30 06:15:24 1.1.2.3.2.1
+++ Makefile 2002/08/30 11:10:30
@@ -86,10 +86,10 @@
-name Makefile.ssl | \
perl ${OPENSSLSRC}/extsrcs.pl 2> srcs.inc )
-SYMLINKS+= libcrypto.a ${LIBDIR}/libdes.a
+SYMLINKS+= libcrypto.a libdes.a
.if ${MKPROFILE} != "no"
-SYMLINKS+= libcrypto_p.a ${LIBDIR}/libdes_p.a
+SYMLINKS+= libcrypto_p.a libdes_p.a
.endif
.if ${MKPIC} != "no"
@@ -98,17 +98,17 @@
DES_SHLIB_MINOR != cd ${.CURDIR}/../libdes && ${MAKE} -B print-shlib-minor
.if ${MKPICINSTALL} != "no"
-SYMLINKS+= libcrypto_pic.a ${LIBDIR}/libdes_pic.a
+SYMLINKS+= libcrypto_pic.a libdes_pic.a
.endif
.if exists(${.CURDIR}/shlib_version)
SYMLINKS+= libcrypto.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
- ${_LIBSODIR}/libdes.so.${DES_SHLIB_MAJOR}.${DES_SHLIB_MINOR}
+ libdes.so.${DES_SHLIB_MAJOR}.${DES_SHLIB_MINOR}
.if (${OBJECT_FMT} == "ELF")
SYMLINKS+= libcrypto.so.${SHLIB_MAJOR} \
- ${_LIBSODIR}/libdes.so.${DES_SHLIB_MAJOR}
-SYMLINKS+= libcrypto.so ${_LIBSODIR}/libdes.so
+ libdes.so.${DES_SHLIB_MAJOR}
+SYMLINKS+= libcrypto.so libdes.so
.endif
.endif # exists shlib_version
>Release-Note:
>Audit-Trail:
>Unformatted: