Skip to contentSkip to conversation

packaging problem with latest CVS snapshot ?

lm-sensors Jim Cromie 3 participants 6 messages Jan 28, 2006

lore
Share & tools
lore

Jim Cromie

author
#0 lore raw

I just pulled lm_sensors-daily.tar.gz, unpacked and ran make, got this error:

[jimc at harpo lm_sensors2]$ make user
...
gcc -M -MG -I. -Ikernel/include -I/usr/local/include -DSYSFS_SUPPORT -fpic -Wall -O2 lib/error.c | \
sed -e 's@^\(.*\)\.o:@lib/error.ld lib/error.lo: Makefile 'dirname lib/error.ld/Module.mk' @' > lib/error.ld
gcc -M -MG -I. -Ikernel/include -I/usr/local/include -DSYSFS_SUPPORT -fpic -Wall -O2 lib/general.c | \
sed -e 's@^\(.*\)\.o:@lib/general.ld lib/general.lo: Makefile 'dirname lib/general.ld/Module.mk' @' > lib/general.ld
gcc -M -MG -I. -Ikernel/include -I/usr/local/include -DSYSFS_SUPPORT -fpic -Wall -O2 lib/data.c | \
sed -e 's@^\(.*\)\.o:@lib/data.ld lib/data.lo: Makefile 'dirname lib/data.ld/Module.mk' @' > lib/data.ld
( grep 'SENSORS SYSCTL START' /dev/null kernel/chips/*.c | \
sed -e 's/:.*//' -e 's#^#kernel/include/sensors.h: #' ) >
kernel/include/sensors.hd
cat kernel/include/sensors.h.template > kernel/include/sensors.h awk '/SENSORS SYSCTL START/,/SENSORS SYSCTL END/' kernel/chips/*.c >> kernel/include/sensors.h
echo '#endif' >> kernel/include/sensors.h
gcc -M -MG -DETCDIR="\"/etc\"" -I. -Ikernel/include -I/usr/local/include -Wundef -Wall -O2 prog/sensors/chips.c | \
sed -e 's@^\(.*\)\.o:@prog/sensors/chips.rd prog/sensors/chips.ro:
Makefile 'dirname prog/sensors/chips.rd/Module.mk' @' > prog/sensors/chips.rd
make: *** No rule to make target sysfs/libsysfs.h', needed by lib/sysfs.ad'. Stop.

A very similar thing happened when I pulled from SVN.
I pulled the entire tree, was unhappy with the great gobs of stuff I didnt need,
and pruned everything but the lmsensors2 stuff.
When I got the error (like above) I figured I over-trimmed, but seeing above, maybe that wasnt the trouble.

#1 lore raw
Quoted 3 lines · Jim Cromie

I just pulled lm_sensors-daily.tar.gz, unpacked and ran make, got this error:

See our news. You need libsysfs (or package)
Regards
Rudolf

author
#2 lore raw
In reply to Jim Cromie
Quoted 12 lines · Rudolf Marek
Quoted 4 lines · Jim Cromie

I just pulled lm_sensors-daily.tar.gz, unpacked and ran make, got this error:

See our news. You need libsysfs (or package)
Regards
Rudolf

OK. neccessary but insufficient:

[jimc at harpo lm_sensors2]$ make user
...
gcc -M -MG -DETCDIR="\"/etc\"" -I. -Ikernel/include -I/usr/local/include -Wundef -Wall -O2 prog/dump/i2cdump.c | \
sed -e 's@^\(.*\)\.o:@prog/dump/i2cdump.rd prog/dump/i2cdump.ro:
Makefile 'dirname prog/dump/i2cdump.rd/Module.mk' @' > prog/dump/i2cdump.rd
gcc -M -MG -DETCDIR="\"/etc\"" -I. -Ikernel/include -I/usr/local/include -Wundef -Wall -O2 prog/detect/i2cdetect.c | \
sed -e 's@^\(.*\)\.o:@prog/detect/i2cdetect.rd prog/detect/i2cdetect.ro:
Makefile 'dirname prog/detect/i2cdetect.rd/Module.mk' @' > prog/detect/i2cdetect.rd
make: *** No rule to make target sysfs/libsysfs.h', needed by lib/sysfs.ad'. Stop.

its there:

$ ll /usr/local/include/sysfs/
total 20
-rw-r--r--  1 root root 7401 Jan 28 12:35 dlist.h
-rw-r--r--  1 root root 8586 Jan 28 12:35 libsysfs.h

still looking.. any idea ?

#3 lore raw
In reply to Jim Cromie
Quoted 26 lines

OK. neccessary but insufficient:

[jimc at harpo lm_sensors2]$ make user
...
gcc -M -MG -DETCDIR="\"/etc\"" -I. -Ikernel/include -I/usr/local/include -Wundef -Wall -O2 prog/dump/i2cdump.c | \
sed -e 's@^\(.*\)\.o:@prog/dump/i2cdump.rd prog/dump/i2cdump.ro:
Makefile 'dirname prog/dump/i2cdump.rd/Module.mk' @' > prog/dump/i2cdump.rd
gcc -M -MG -DETCDIR="\"/etc\"" -I. -Ikernel/include -I/usr/local/include -Wundef -Wall -O2 prog/detect/i2cdetect.c | \
sed -e 's@^\(.*\)\.o:@prog/detect/i2cdetect.rd prog/detect/i2cdetect.ro:
Makefile 'dirname prog/detect/i2cdetect.rd/Module.mk' @' > prog/detect/i2cdetect.rd
make: *** No rule to make target sysfs/libsysfs.h', needed by lib/sysfs.ad'. Stop.

its there:

$ ll /usr/local/include/sysfs/
total 20
(quoted diff) +0 -2
-rw-r--r--  1 root root 7401 Jan 28 12:35 dlist.h
-rw-r--r--  1 root root 8586 Jan 28 12:35 libsysfs.h
Quoted 1 line

still looking.. any idea ?

hmm no, sorry, I'm not very good with Makefiles... Please try to fix it and send a patch.

Thanks,
regards
Rudolf

#4 lore raw
In reply to Jim Cromie

Hi Jim,

Quoted 26 lines
Quoted 1 line

See our news. You need libsysfs (or package)

OK. neccessary but insufficient:

[jimc at harpo lm_sensors2]$ make user
...
gcc -M -MG -DETCDIR="\"/etc\"" -I. -Ikernel/include -I/usr/local/include -Wundef -Wall -O2 prog/dump/i2cdump.c | \
sed -e 's@^\(.*\)\.o:@prog/dump/i2cdump.rd prog/dump/i2cdump.ro:
Makefile 'dirname prog/dump/i2cdump.rd/Module.mk' @' > prog/dump/i2cdump.rd
gcc -M -MG -DETCDIR="\"/etc\"" -I. -Ikernel/include -I/usr/local/include -Wundef -Wall -O2 prog/detect/i2cdetect.c | \
sed -e 's@^\(.*\)\.o:@prog/detect/i2cdetect.rd prog/detect/i2cdetect.ro:
Makefile 'dirname prog/detect/i2cdetect.rd/Module.mk' @' > prog/detect/i2cdetect.rd
make: *** No rule to make target sysfs/libsysfs.h', needed by lib/sysfs.ad'. Stop.

its there:

$ ll /usr/local/include/sysfs/
total 20
(quoted diff) +0 -2
-rw-r--r--  1 root root 7401 Jan 28 12:35 dlist.h
-rw-r--r--  1 root root 8586 Jan 28 12:35 libsysfs.h
Quoted 1 line

still looking.. any idea ?

Make sure you run "make clean" before running "make user" again. Our build system is not very robust (to say the least) and gets easily confused.

Signature · 1 line
Jean Delvare
author
#5 lore raw
In reply to Jim Cromie
Quoted 29 lines · Jean Delvare

Hi Jim,

Quoted 26 lines
Quoted 2 lines

See our news. You need libsysfs (or package)

OK. neccessary but insufficient:

[jimc at harpo lm_sensors2]$ make user
...
gcc -M -MG -DETCDIR="\"/etc\"" -I. -Ikernel/include -I/usr/local/include -Wundef -Wall -O2 prog/dump/i2cdump.c | \
sed -e 's@^\(.*\)\.o:@prog/dump/i2cdump.rd prog/dump/i2cdump.ro:
Makefile 'dirname prog/dump/i2cdump.rd/Module.mk' @' > prog/dump/i2cdump.rd
gcc -M -MG -DETCDIR="\"/etc\"" -I. -Ikernel/include -I/usr/local/include -Wundef -Wall -O2 prog/detect/i2cdetect.c | \
sed -e 's@^\(.*\)\.o:@prog/detect/i2cdetect.rd prog/detect/i2cdetect.ro:
Makefile 'dirname prog/detect/i2cdetect.rd/Module.mk' @' > prog/detect/i2cdetect.rd
make: *** No rule to make target sysfs/libsysfs.h', needed by lib/sysfs.ad'. Stop.

its there:

$ ll /usr/local/include/sysfs/
total 20
(quoted diff) +0 -2
-rw-r--r--  1 root root 7401 Jan 28 12:35 dlist.h
-rw-r--r--  1 root root 8586 Jan 28 12:35 libsysfs.h
Quoted 8 lines
Quoted 2 lines

still looking.. any idea ?

Make sure you run "make clean" before running "make user" again. Our build system is not very robust (to say the least) and gets easily confused.

BINGO! ( in case that doesnt translate, its"I win!" ) thanks