NetBSD Problem Report #34769

From www@NetBSD.org  Mon Oct  9 11:47:57 2006
Return-Path: <www@NetBSD.org>
Received: by narn.NetBSD.org (Postfix, from userid 31301)
	id 5FE9C63BC60; Mon,  9 Oct 2006 11:47:57 +0000 (UTC)
Message-Id: <20061009114757.5FE9C63BC60@narn.NetBSD.org>
Date: Mon,  9 Oct 2006 11:47:57 +0000 (UTC)
From: srcshelton@gmail.com
Reply-To: srcshelton@gmail.com
To: gnats-bugs@NetBSD.org
Subject: file-4.17 fails to build: invalid magic
X-Send-Pr-Version: www-1.0

>Number:         34769
>Category:       pkg
>Synopsis:       file-4.17 fails to build: invalid magic
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    irix-pkg-people
>State:          feedback
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 09 11:50:00 +0000 2006
>Closed-Date:    
>Last-Modified:  Mon May 03 04:20:42 +0000 2010
>Originator:     Stuart Shelton
>Release:        n/a
>Organization:
>Environment:
IRIX64 octane 6.5 07202013 IP30 mips

>Description:
When trying to build file-4.17:

Making all in magic
cat ./Header ./Localstuff > magic
for frag in Magdir/acorn  Magdir/adi  Magdir/adventure  Magdir/allegro  Magdir/alliant  Magdir/alpha  Magdir/amanda  Magdir/amigaos  Magdir/animation  Magdir/apl  Magdir/apple  Magdir/applix  Magdir/archive  Magdir/asterix  Magdir/att3b  Magdir/audio  Magdir/basis  Magdir/bflt  Magdir/blender  Magdir/blit  Magdir/bout  Magdir/bsdi  Magdir/btsnoop  Magdir/cad  Magdir/c-lang  Magdir/c64  Magdir/cddb  Magdir/chord  Magdir/cisco  Magdir/citrus  Magdir/claris  Magdir/clipper  Magdir/cracklib  Magdir/spec  Magdir/commands  Magdir/communications  Magdir/compress  Magdir/console  Magdir/convex  Magdir/ctags  Magdir/dact  Magdir/database  Magdir/diamond  Magdir/diff  Magdir/digital  Magdir/dolby  Magdir/dump  Magdir/editors  Magdir/elf  Magdir/encore  Magdir/epoc  Magdir/esri  Magdir/fcs  Magdir/filesystems  Magdir/flash  Magdir/fonts  Magdir/frame  Magdir/freebsd  Magdir/fsav  Magdir/games  Magdir/geos  Magdir/gcc  Magdir/gimp  Magdir/gnu  Magdir/grace  Magdir/gringotts  Magdir/hitachi-sh  Magdir/hp  Magdir/human68k  Magdir/ibm370  Magdir/ibm6000  Magdir/iff  Magdir/images  Magdir/intel  Magdir/interleaf  Magdir/island  Magdir/ispell  Magdir/java  Magdir/jpeg  Magdir/karma  Magdir/lecter  Magdir/lex  Magdir/lif  Magdir/linux  Magdir/lisp  Magdir/mach  Magdir/macintosh  Magdir/magic  Magdir/mail.news  Magdir/maple  Magdir/mathematica  Magdir/matroska  Magdir/mcrypt  Magdir/mime  Magdir/mips  Magdir/mirage  Magdir/misctools  Magdir/mkid  Magdir/mlssa  Magdir/mmdf  Magdir/modem  Magdir/motorola  Magdir/msdos  Magdir/msvc  Magdir/mup  Magdir/natinst  Magdir/ncr  Magdir/netbsd  Magdir/netscape  Magdir/news  Magdir/nitpicker  Magdir/ocaml  Magdir/octave  Magdir/olf  Magdir/os2  Magdir/os9  Magdir/osf1  Magdir/palm  Magdir/parix  Magdir/pbm  Magdir/pdf  Magdir/pdp  Magdir/perl  Magdir/pgp  Magdir/pkgadd  Magdir/plan9  Magdir/plus5  Magdir/printer  Magdir/project  Magdir/psdbms  Magdir/psion  Magdir/pulsar  Magdir/pyramid  Magdir/python  Magdir/revision  Magdir/riff  Magdir/rpm  Magdir/rtf  Magdir/sc  Magdir/sccs  Magdir/sendmail  Magdir/sequent  Magdir/sgi  Magdir/sgml  Magdir/sharc  Magdir/sinclair  Magdir/sketch  Magdir/smalltalk  Magdir/sniffer  Magdir/dyadic  Magdir/scientific  Magdir/softquad  Magdir/spectrum  Magdir/sql  Magdir/sun  Magdir/sysex  Magdir/teapot  Magdir/terminfo  Magdir/tex  Magdir/tgif  Magdir/ti-8x  Magdir/timezone  Magdir/troff  Magdir/tuxedo  Magdir/typeset  Magdir/unknown  Magdir/uuencode  Magdir/varied.out  Magdir/varied.script  Magdir/vax  Magdir/vicar  Magdir/virtutech  Magdir/visx  Magdir/vms  Magdir/vmware  Magdir/vorbis  Magdir/vxl  Magdir/wordprocessors  Magdir/xdelta  Magdir/xenix  Magdir/xo65  Magdir/xwindows  Magdir/zilog  Magdir/zyxel; do  if test -f ./$frag; then  f=./$frag;  else  f=$frag;  fi;  cat $f;  done >> magic
../src/file -C -m magic
magic, 3745: Warning type `medate       x               Previous dump %s,' invalid
magic, 3746: Warning type `medate       x               This dump %s,' invalid
magic, 7239: Warning type `search/2048  !\r             Lisp/Scheme program text' invalid
magic, 7240: Warning type `search/2048  \r              Windows INF file' invalid
magic, 8346: Warning type `search/0x140 \x0\x40\x1\x0' invalid
magic, 8347: Warning missing ')' in indirect offset
magic, 8347: Warning type `)) string MSCF \b, WinHKI CAB self-extracting archive' invalid
magic, 8372: Warning type `search/0x140 PEC2 \b, PECompact2 compressed' invalid
magic, 8373: Warning type `search/0x140 UPX2' invalid
magic, 8374: Warning missing ')' in indirect offset
magic, 8374: Warning type `-4)) string          PK\3\4 \b, ZIP self-extracting archive (Info-Zip)' invalid
magic, 8375: Warning type `search/0x140 .idata' invalid
magic, 8376: Warning missing ')' in indirect offset
magic, 8376: Warning type `-4)) string          PK\3\4 \b, ZIP self-extracting archive (Info-Zip)' invalid
magic, 8377: Warning missing ')' in indirect offset
magic, 8377: Warning type `-4)) string          ZZ0 \b, ZZip self-extracting archive' invalid
magic, 8378: Warning missing ')' in indirect offset
magic, 8378: Warning type `-4)) string          ZZ1 \b, ZZip self-extracting archive' invalid
magic, 8379: Warning type `search/0x140 .rsrc' invalid
magic, 8380: Warning missing ')' in indirect offset
magic, 8380: Warning type `-4)) string          a\\\4\5 \b, WinHKI self-extracting archive' invalid
magic, 8381: Warning missing ')' in indirect offset
magic, 8381: Warning type `-4)) string          Rar! \b, RAR self-extracting archive' invalid
magic, 8382: Warning missing ')' in indirect offset
magic, 8382: Warning type `-4)) search/0x3000   MSCF \b, InstallShield self-extracting archive' invalid
magic, 8383: Warning missing ')' in indirect offset
magic, 8383: Warning type `-4)) search/32       Nullsoft \b, Nullsoft Installer self-extracting archive' invalid
magic, 8384: Warning type `search/0x140 .data' invalid
magic, 8386: Warning type `search/0x140 .petite\0 \b, Petite compressed' invalid
magic, 8388: Warning missing ')' in indirect offset
magic, 8388: Warning type `-4)) string          =!sfx! \b, ACE self-extracting archive' invalid
magic, 8389: Warning type `search/0x140 .WISE \b, WISE installer self-extracting archive' invalid
magic, 8390: Warning type `search/0x140 .dz\0\0\0 \b, Dzip self-extracting archive' invalid
magic, 8391: Warning type `search/0x140 .reloc' invalid
magic, 8392: Warning missing ')' in indirect offset
magic, 8392: Warning type `-4)) search/0x180    PK\3\4 \b, ZIP self-extracting archive (WinZip)' invalid
magic, 8394: Warning offset `(0x3c.l+0xf8)      search/0x100    _winzip_ \b, ZIP self-extracting archive (WinZip)' invalid
magic, 8394: Warning type `(0x3c.l+0xf8)        search/0x100    _winzip_ \b, ZIP self-extracting archive (WinZip)' invalid
magic, 8395: Warning offset `(0x3c.l+0xf8)      search/0x100    SharedD \b, Microsoft Installer self-extracting archive' invalid
magic, 8395: Warning type `(0x3c.l+0xf8)        search/0x100    SharedD \b, Microsoft Installer self-extracting archive' invalid
magic, 8407: Warning offset `(&0x24.s-1)                string          ARJSFX \b, ARJ self-extracting archive' invalid
magic, 8407: Warning type `(&0x24.s-1)          string          ARJSFX \b, ARJ self-extracting archive' invalid
magic, 8408: Warning type `search/0x80  WinZip(R)\ Self-Extractor \b, ZIP self-extracting archive (WinZip)' invalid
magic, 8425: Warning offset `(&0x54.l-3)                string          arjsfx \b, ARJ self-extracting archive' invalid
magic, 8425: Warning type `(&0x54.l-3)          string          arjsfx \b, ARJ self-extracting archive' invalid
magic, 8433: Warning type `search/0x100 DOS/4G for MS-DOS, DOS4GW DOS extender' invalid
magic, 8434: Warning type `search/0x200 WATCOM\ C/C++ for MS-DOS, DOS4GW DOS extender' invalid
magic, 8435: Warning type `search/0x100 CauseWay\ DOS\ Extender for MS-DOS, CauseWay DOS extender' invalid
magic, 8436: Warning type `search/0x40  PMODE/W for MS-DOS, PMODE/W DOS extender' invalid
magic, 8437: Warning type `search/0x40  STUB/32A for MS-DOS, DOS/32A DOS extender (stub)' invalid
magic, 8438: Warning type `search/0x80  STUB/32C for MS-DOS, DOS/32A DOS extender (configurable stub)' invalid
magic, 8439: Warning type `search/0x80  DOS/32A for MS-DOS, DOS/32A DOS extender (embedded)' invalid
magic, 8443: Warning type `search/8     3\xdbf\xb9 \b, 32Lite compressed' invalid
magic, 8451: Warning offset `(&0x54.l-3)                string          UNACE \b, ACE self-extracting archive' invalid
magic, 8451: Warning type `(&0x54.l-3)          string          UNACE \b, ACE self-extracting archive' invalid
magic, 8462: Warning offset `(2.s-514)  string  !LE' invalid
magic, 8462: Warning type `(2.s-514)    string  !LE' invalid
magic, 8464: Warning offset `(2.s-514)  string  LE \b, LE' invalid
magic, 8464: Warning type `(2.s-514)    string  LE \b, LE' invalid
magic, 8465: Warning type `search/0x100 DOS/4G for MS-DOS, DOS4GW DOS extender' invalid
magic, 8469: Warning offset `(2.s-514)  string  BW' invalid
magic, 8469: Warning type `(2.s-514)    string  BW' invalid
magic, 8470: Warning type `search/0x100 DOS/4G ,\b LE for MS-DOS, DOS4GW DOS extender (embedded)' invalid
magic, 8471: Warning type `search/0x100 !DOS/4G ,\b BW collection for MS-DOS' invalid
magic, 8478: Warning offset `(&0x42.l-3)        byte            x ' invalid
magic, 8478: Warning type `(&0x42.l-3)  byte            x ' invalid
magic, 8481: Warning type `search/0xa0  .text' invalid
magic, 8515: Warning offset `(2.s-517)  byte    x ' invalid
magic, 8515: Warning type `(2.s-517)    byte    x ' invalid
magic, 8522: Warning type `search/400   **ACE** \b, ACE self-extracting archive' invalid
magic, 8523: Warning type `search/0x480 UC2SFX\ Header \b, UC2 self-extracting archive' invalid
magic, 8527: Warning type `search/0xe0  aRJsfX \b, ARJ self-extracting archive' invalid
magic, 8532: Warning type `search/0x20  PKSFX \b, ZIP self-extracting archive (PKZIP)' invalid
magic, 8613: Warning type `search/0xa   \xfc\x57\xf3\xa5\xc3    COM executable for MS-DOS' invalid
magic, 8614: Warning type `search/0xa   \xfc\x57\xf3\xa4\xc3    COM executable for DOS' invalid
magic, 8615: Warning type `search/0x10  \x50\xa4\xff\xd5\x73    \b, aPack compressed' invalid
lt-file: could not find any magic files!
*** Error code 255

Stop.
bmake: stopped in /usr/bsd/var/tmp/sysutils/file/work/file-4.17/magic
*** Error code 1

>How-To-Repeat:

The problem seems to be with any entry with "search" in the second field.

"file" itself compiles without warnings or errors
>Fix:

Removing the problematic lines allows the "file" build to complete.

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->feedback
State-Changed-By: asau@NetBSD.org
State-Changed-When: Mon, 02 Nov 2009 15:19:22 +0000
State-Changed-Why:
Package was updated several times meanwhile,
does the problem persist?


Responsible-Changed-From-To: pkg-manager->irix-pkg-people
Responsible-Changed-By: dholland@NetBSD.org
Responsible-Changed-When: Mon, 03 May 2010 04:20:42 +0000
Responsible-Changed-Why:
Problem happened on IRIX, which might be relevant.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.