Date: Mon, 23 Jun 2003 02:34:34 +0200 (CEST) From: Jacek Serwatynski <tutus@trynet.eu.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/53622: [patch] archivers/unadf and "#define LITT_ENDIAN must exist" Message-ID: <20030623003434.E12281E8F7E@beta.trynet.eu.org> Resent-Message-ID: <200306230040.h5N0e2CE001333@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030623003434.E12281E8F7E>