ports/73964: [ports/graphics/netpbm] fix build error

Meyer, Justin jmeyer at verisign.com
Mon Nov 15 22:40:33 UTC 2004


The following reply was made to PR ports/73964; it has been noted by GNATS.

From: "Meyer, Justin" <jmeyer at verisign.com>
To: "'freebsd-gnats-submit at FreeBSD.org'" <freebsd-gnats-submit at FreeBSD.org>,
	"'sunpoet at sunpoet.net'" <sunpoet at sunpoet.net>
Cc:  
Subject: Re: ports/73964: [ports/graphics/netpbm] fix build error
Date: Mon, 15 Nov 2004 14:34:19 -0800

 Hi all,
 
 The same bug has bitten me on my 5.3 system.
 
 This is apparently a known issue, per the netpbm-10.25 release notes
 @ http://sourceforge.net/project/shownotes.php?release_id=275719:
 
 "libpbm3.c won't compile if you use a -msse Gcc compile flag.
   The error is "undefined variable 'col'."  You need to add the
  declaration "int c;"."
 
 In fact, that doesn't appear to be totally correct; you need to simply
 declare "int col;"
 
 The port compiles successfully with the following patch, though I have
 not tested it yet:
 
 --- lib/libpbm3.c       Fri Oct  1 08:56:33 2004
 +++ lib/libpbm3.c.patch Mon Nov 15 15:24:59 2004
 @@ -80,6 +80,8 @@
 
      di const zero64 = 0;        /* to clear with PXOR */
 
 +    int col;
 +
      for (col =0; col < cols-7; col += 8)
          packedBits[col/8]
            = bitreverse [ ~ (unsigned char) __builtin_ia32_pmovmskb (
 
 
 -- 
 Justin



More information about the freebsd-ports-bugs mailing list