[SM-Users] Can't cast athcool...

David Brown dmlb2000 at gmail.com
Sun Mar 18 15:45:03 EST 2007


On 3/18/07, Javier Vasquez <jevv.cr at gmail.com> wrote:
> On 3/17/07, David Brown <dmlb2000 at gmail.com> wrote:
> > On 3/17/07, Javier Vasquez <jevv.cr at gmail.com> wrote:
> > > Hi,
> > >
> > > As I have a laptop, I just wanted to cast athcool, but it doesn't get
> > > to compile:
> > >
> > > [...]
> >
> > Its missing a library to link to zlib most-likely, probably should
> > submit a bug on this one. I got it to compile easy enough with a
> > simple makefile change.
> >
> > Thanks,
> > - David Brown
>
> Thanks a lot...  I'll look into smgl bug submission...  Now, what
> change did you perform?  I see:
>
> SRCS = athcool.c scanpci.c
> OBJS = $(SRCS:.c=.o)
>
> all: $(PACKAGE)
>
> $(PACKAGE): $(OBJS)
>      $(CC) $(CFLAGS) $(OBJS) $(LIBS) -o $@
>
> .c.o:
>      $(CC) $(CFLAGS) $(DEFS) -c $< -o $@
>
> athcool.o:      athcool.c chips.h athcool.h
>
> scanpci.o:      scanpci.c athcool.h
>
> I can't just figure out what to include in the make file, maybe a "-L"
> or "-l" pointing somewhere?
>
> Thanks,

Actually if you see at the top where it says 'LDFLAGS=-lpci' add a -lz
to that variable and it should work fine

Thanks,
- David Brown


More information about the SM-Users mailing list