Discussion:
[SM-Users] Can't cast athcool...
Javier Vasquez
2007-03-18 01:59:07 UTC
Permalink
Hi,

As I have a laptop, I just wanted to cast athcool, but it doesn't get
to compile:

Running make with 2 jobs failed. Attempt to run with a single job? [y]

gcc -O2 -Wall athcool.o scanpci.o -lpci -o athcool
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libpci.a(names.o): In
function `pci_load_name_list':
names.c:(.text+0x4e1): undefined reference to `gzopen'
names.c:(.text+0x57d): undefined reference to `gzgets'
names.c:(.text+0x682): undefined reference to `gzclose'
names.c:(.text+0x6a8): undefined reference to `gzeof'
names.c:(.text+0x737): undefined reference to `gzclose'
names.c:(.text+0xb11): undefined reference to `gzopen'
names.c:(.text+0xc99): undefined reference to `gzerror'
names.c:(.text+0xcb9): undefined reference to `gzclose'
collect2: ld returned 1 exit status
make: *** [athcool] Error 1
! Problem Detected !
Creating compile log /var/log/sorcery/compile/athcool-0.3.11.bz2

Spells that encountered problems:
---------------------------------
athcool


Any hints on any library or something missing? The dependencies seem
to be all satisfied:

17/03/2007 7:36pm # gaze dependencies -c athcool
athcool ()
pciutils (depends)

I have pciutils already installed...
--
Javier
David Brown
2007-03-18 03:22:42 UTC
Permalink
Post by Javier Vasquez
Hi,
As I have a laptop, I just wanted to cast athcool, but it doesn't get
Running make with 2 jobs failed. Attempt to run with a single job? [y]
gcc -O2 -Wall athcool.o scanpci.o -lpci -o athcool
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libpci.a(names.o): In
names.c:(.text+0x4e1): undefined reference to `gzopen'
names.c:(.text+0x57d): undefined reference to `gzgets'
names.c:(.text+0x682): undefined reference to `gzclose'
names.c:(.text+0x6a8): undefined reference to `gzeof'
names.c:(.text+0x737): undefined reference to `gzclose'
names.c:(.text+0xb11): undefined reference to `gzopen'
names.c:(.text+0xc99): undefined reference to `gzerror'
names.c:(.text+0xcb9): undefined reference to `gzclose'
collect2: ld returned 1 exit status
make: *** [athcool] Error 1
! Problem Detected !
Creating compile log /var/log/sorcery/compile/athcool-0.3.11.bz2
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
Javier Vasquez
2007-03-18 20:01:19 UTC
Permalink
Post by David Brown
Post by Javier Vasquez
Hi,
As I have a laptop, I just wanted to cast athcool, but it doesn't get
[...]
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,
--
Javier
David Brown
2007-03-18 20:45:03 UTC
Permalink
Post by Javier Vasquez
Post by David Brown
Post by Javier Vasquez
Hi,
As I have a laptop, I just wanted to cast athcool, but it doesn't get
[...]
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
SRCS = athcool.c scanpci.c
OBJS = $(SRCS:.c=.o)
all: $(PACKAGE)
$(PACKAGE): $(OBJS)
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

Loading...