graphics/netpbm failing to compile

Conrad J. Sabatier conrads at cox.net
Mon Nov 15 18:43:13 PST 2004


On Mon, 15 Nov 2004 18:31:17 -0800, Joshua Tinnin
<krinklyfig at spymac.com> wrote:

> On Monday 15 November 2004 05:19 pm, "Conrad J. Sabatier" 
> <conrads at cox.net> wrote:
> > On Mon, 15 Nov 2004 19:05:50 -0600, "Conrad J. Sabatier"
> > <conrads at cox.net> wrote:
> > > On Mon, 15 Nov 2004 14:27:27 -0800, Sean McNeil <sean at mcneil.com>
> > > wrote:
> > > > I get the following error:
> > > >
> > > > cc -c -I/usr/ports/graphics/netpbm/work/netpbm-10.25/lib -I.
> > > > -DNDEBUG-g -O -pipe  -fpic -DPIC \
> > > >     -o libpbm3.lo libpbm3.c
> > > > libpbm3.c: In function `packBitsWithMmxSse':
> > > > libpbm3.c:83: error: `col' undeclared (first use in this
> > > > function) libpbm3.c:83: error: (Each undeclared identifier is
> > > > reported only once libpbm3.c:83: error: for each function it
> > > > appears in.) gmake[1]: *** [libpbm3.lo] Error 1
> > > > gmake[1]: Leaving directory
> > > > `/usr/ports/graphics/netpbm/work/netpbm-10.25/lib'
> > >
> > > It's just a simple omission of the declaration of "int col;".
> > >
> > > Apply the attached patch under
> > > /usr/ports/graphics/netpbm/work/netpbm-10.25/lib
> >
> > Oops.  Did the diff backwards.  :-)
> >
> > Try this one instead.
> 
> I was getting this same error, but I have CPUTYPE?=athlon-xp in 
> my /etc/make.conf. When I commented it out, it built and installed
> just fine. It doesn't appear as if the OP was using that option, so
> I'm not at all sure how helpful this is, but FWIW that's how I solved
> the problem. Maybe got (un)lucky?
> 
> - jt


Yes, the error was in a routine that was only compiled if the CPU
supports MMX/SSE.  I believe Sean (the OP) was compiling on amd64, so
that section of code *was* being compiled.


-- 
Conrad J. Sabatier <conrads at cox.net> -- "In Unix veritas"


More information about the freebsd-ports mailing list