ports/53622: [patch] archivers/unadf and "#define LITT_ENDIAN must exist"
Jacek Serwatynski
tutus at trynet.eu.org
Mon Jun 23 00:40:04 UTC 2003
>Number: 53622
>Category: ports
>Synopsis: [patch] archivers/unadf and "#define LITT_ENDIAN must exist"
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Jun 22 17:40:02 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Jacek Serwatynski <tutus at trynet.eu.org>
>Release: FreeBSD 5.1-RELEASE i386
>Organization:
home user
>Environment:
System: FreeBSD beta.trynet.eu.org 5.1-RELEASE FreeBSD 5.1-RELEASE #1: Wed Jun 18 02:58:52 CEST 2003 root at beta.trynet.eu.org:/usr/obj/usr/src/sys/BSDS5 i386
>Description:
Script Lib/myconf has problem with detecting Big or Little Endian
machine and he always set "Big Endian machine". archivers/unadf will
compile but when you want to unpack some files you will get this
message:
"Compilation error : #define LITT_ENDIAN must exist"
>How-To-Repeat:
Just compile archivers/unadf and try unpack some files.
>Fix:
Copy patch-Libmyconf to archivers/unadf/files and compile the port.
--- patch-Libmyconf begins here ---
--- Lib/myconf Sat Aug 19 03:08:08 2000
+++ Lib/myconf.new Mon Jun 23 01:32:48 2003
@@ -31,17 +31,17 @@
gcc myctest.c -o myctest
rm myctest.c
-if [ `myctest |cut -d' ' -f 1` != 4 ]
+if [ `./myctest |cut -d' ' -f 1` != 4 ]
then echo "Error : sizeof(long)!=4"
fi
-if [ `myctest |cut -d' ' -f 2` != 2 ]
+if [ `./myctest |cut -d' ' -f 2` != 2 ]
then echo "Error : sizeof(short)!=2"
fi
-if [ `myctest |cut -d' ' -f 3` != 4 ]
+if [ `./myctest |cut -d' ' -f 3` != 4 ]
then echo "Error :sizeof(int)!=4"
fi
-if [ `myctest |cut -d' ' -f 4` = LITTLE ]
+if [ `./myctest |cut -d' ' -f 4` = LITTLE ]
then
echo "#ifndef LITT_ENDIAN" >defendian.h
echo "#define LITT_ENDIAN 1" >>defendian.h
--- patch-Libmyconf ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list