Skip to contentSkip to conversation

ticket #1291

DISCUSSION Jean Delvare 2 participants 7 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw
Quoted 18 lines

Now I get:
gcc -I. -Ikernel/include -I/usr/local/include -Wall -O2 -c
prog/sensors/main.c -o prog/sensors/main.ro gcc -I. -Ikernel/include
-I/usr/local/include -Wall -O2 -c prog/sensors/chips.c -o
prog/sensors/chips.ro gcc -o prog/sensors/sensors prog/sensors/main.ro prog/sensors/chips.ro -Llib -lsensors gcc -I. -Ikernel/include
-I/usr/local/include -Wall -O2 -c prog/dump/isadump.c -o
prog/dump/isadump.ro prog/dump/isadump.c: In function `main':
prog/dump/isadump.c:174: Warnung: implicit declaration of function outb' prog/dump/isadump.c:183: Warnung: implicit declaration of function inb' gcc -o prog/dump/isadump prog/dump/isadump.ro prog/dump/isadump.ro(.text+0x284): In function `main':
: undefined reference to outb' prog/dump/isadump.ro(.text+0x290): In function main':
: undefined reference to inb' prog/dump/isadump.ro(.text+0x308): In function main':
: undefined reference to `outb'

Quoted 8 lines

prog/dump/isadump.ro(.text+0x318): In function `main':
: undefined reference to outb' prog/dump/isadump.ro(.text+0x32c): In function main':
: undefined reference to outb' prog/dump/isadump.ro(.text+0x33c): In function main':
: undefined reference to `outb'
collect2: ld returned 1 exit status
make: *** [prog/dump/isadump] Fehler 1

So we are back to the original problem (ticket #1291).

Maybe you need an additional header and library to get inb and outb on PPC. Could you please run the following commands and report outputs?

grep '^inb ' -r /usr/include/*
grep '^outb ' -r /usr/include/*

Gives /usr/include/sys/io.h for me, I would have expected /usr/include/asm/io.h for you, but maybe it's elsewhere.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#1 lore raw
Quoted 29 lines · On Thu, 31 Jul 2003 11:09:54 +0200 Jean Delvare <[email protected]> wrote:
Quoted 18 lines

Now I get:
gcc -I. -Ikernel/include -I/usr/local/include -Wall -O2 -c
prog/sensors/main.c -o prog/sensors/main.ro gcc -I. -Ikernel/include
-I/usr/local/include -Wall -O2 -c prog/sensors/chips.c -o
prog/sensors/chips.ro gcc -o prog/sensors/sensors prog/sensors/main.ro prog/sensors/chips.ro -Llib -lsensors gcc -I. -Ikernel/include
-I/usr/local/include -Wall -O2 -c prog/dump/isadump.c -o
prog/dump/isadump.ro prog/dump/isadump.c: In function `main':
prog/dump/isadump.c:174: Warnung: implicit declaration of function outb' prog/dump/isadump.c:183: Warnung: implicit declaration of function inb' gcc -o prog/dump/isadump prog/dump/isadump.ro prog/dump/isadump.ro(.text+0x284): In function `main':
: undefined reference to outb' prog/dump/isadump.ro(.text+0x290): In function main':
: undefined reference to inb' prog/dump/isadump.ro(.text+0x308): In function main':
: undefined reference to `outb'

Quoted 8 lines

prog/dump/isadump.ro(.text+0x318): In function `main':
: undefined reference to outb' prog/dump/isadump.ro(.text+0x32c): In function main':
: undefined reference to outb' prog/dump/isadump.ro(.text+0x33c): In function main':
: undefined reference to `outb'
collect2: ld returned 1 exit status
make: *** [prog/dump/isadump] Fehler 1

So we are back to the original problem (ticket #1291).

Quoted 4 lines

Maybe you need an additional header and library to get inb and outb on PPC. Could you please run the following commands and report outputs?

grep '^inb ' -r /usr/include/*

this gives me:
grep '^inb ' -r /usr/include/*
grep: Warnung: /usr/include/gnome-xml/libxml: Rekursive Verzeichnisschleife.

grep: /usr/include/ioport.h: Zu viele Ebenen aus symbolischen Links

Quoted 1 line

grep '^outb ' -r /usr/include/*

this gives me:
grep '^outb ' -r /usr/include/*
grep: Warnung: /usr/include/gnome-xml/libxml: Rekursive Verzeichnisschleife.

grep: /usr/include/ioport.h: Zu viele Ebenen aus symbolischen Links

any hints?

Thanks,
Zeno

Signature · 8 lines
Mit freundlichen Gruessen / Best regards

Zeno Davatz
Strategie und Akquisition

+41 1 350 85 86

www.ywesee.com > intellectual capital connected > www.generika.cc
#2 lore raw
In reply to Jean Delvare
Quoted 13 lines
Quoted 6 lines

Maybe you need an additional header and library to get inb and outb on PPC. Could you please run the following commands and report outputs?

grep '^inb ' -r /usr/include/*

this gives me:
grep '^inb ' -r /usr/include/*
grep: Warnung: /usr/include/gnome-xml/libxml: Rekursive Verzeichnisschleife.

grep: /usr/include/ioport.h: Zu viele Ebenen aus symbolischen Links

Quoted 7 lines
Quoted 1 line

grep '^outb ' -r /usr/include/*

this gives me:
grep '^outb ' -r /usr/include/*
grep: Warnung: /usr/include/gnome-xml/libxml: Rekursive Verzeichnisschleife.

grep: /usr/include/ioport.h: Zu viele Ebenen aus symbolischen Links

First, you really should fix the two warnings that show up. It's about bad symlinks if I understand german right.

Second, the grep commands did not find any inb or outb defs, let's try with a different regexp:

grep ' inb' -r /usr/include/*
grep ' outb' -r /usr/include/*

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#3 lore raw
In reply to Jean Delvare
Quoted 21 lines · On Thu, 31 Jul 2003 12:48:08 +0200 Jean Delvare <[email protected]> wrote:
Quoted 13 lines
Quoted 6 lines

Maybe you need an additional header and library to get inb and outb on PPC. Could you please run the following commands and report outputs?

grep '^inb ' -r /usr/include/*

this gives me:
grep '^inb ' -r /usr/include/*
grep: Warnung: /usr/include/gnome-xml/libxml: Rekursive Verzeichnisschleife.

grep: /usr/include/ioport.h: Zu viele Ebenen aus symbolischen Links

Quoted 7 lines
Quoted 1 line

grep '^outb ' -r /usr/include/*

this gives me:
grep '^outb ' -r /usr/include/*
grep: Warnung: /usr/include/gnome-xml/libxml: Rekursive Verzeichnisschleife.

grep: /usr/include/ioport.h: Zu viele Ebenen aus symbolischen Links

Quoted 7 lines

First, you really should fix the two warnings that show up. It's about bad symlinks if I understand german right.

Second, the grep commands did not find any inb or outb defs, let's try with a different regexp:

grep ' inb' -r /usr/include/*

gives me:
grep '^outb ' -r /usr/include/*
grep: Warnung: /usr/include/gnome-xml/libxml: Rekursive Verzeichnisschleife.

grep: /usr/include/ioport.h: Zu viele Ebenen aus symbolischen Links

zeno@zrr:/usr/src/modules/lm_sensors-2.8.0/prog/dump$ grep ' inb' -r /usr/include/*
/usr/include/asm/io.h:#define inb(port)         in_8((u8 *)((port)+_IO_BASE))
/usr/include/asm/io.h:#define inb(port)         in_8((u8 *)((port)+_IO_BASE))
/usr/include/asm/io.h:#define inb_p(port)               inb((port))
/usr/include/asm/keyboard.h:#define kbd_read_input() inb(KBD_DATA_REG)
/usr/include/asm/keyboard.h:#define kbd_read_status() inb(KBD_STATUS_REG)
grep: Warnung: /usr/include/gnome-xml/libxml: Rekursive Verzeichnisschleife.

/usr/include/gtkmm-2.0/glibmm/convert.h: * @param inbuf Bytes to convert.
/usr/include/gtkmm-2.0/glibmm/convert.h: * @param inbytes_left In/out parameter, bytes remaining to convert in @a inbuf.
/usr/include/gtkmm-2.0/glibmm/convert.h: size_t iconv(char** inbuf, gsize* inbytes_left, char** outbuf, gsize* outbytes_left);
grep: /usr/include/ioport.h: Zu viele Ebenen aus symbolischen Links
/usr/include/linux/atmbr2684.h: * Is there FCS inbound on this VC? This currently isn't supported.
/usr/include/linux/gameport.h: return inb(gameport->io);
/usr/include/linux/ipsec.h:#define IPSEC_LEVEL_USE 1 /* use outbound, don't require inbound */

/usr/include/linux/parport_pc.h:        unsigned char val = inb (DATA (p));
/usr/include/linux/parport_pc.h:        unsigned char ecr = inb (ECONTROL (p));
/usr/include/linux/parport_pc.h:        unsigned char dcr = inb (CONTROL (p));
/usr/include/linux/parport_pc.h:        unsigned char dsr = inb (STATUS (p));
/usr/include/linux/parport_pc.h:                dcr = i ? priv->ctr : inb (CONTROL (p));
/usr/include/linux/parport_pc.h:        return inb(STATUS(p));
/usr/include/linux/ppp_defs.h:    __u32 vjs_uncompressedin; /* inbound uncompressed packets */
/usr/include/linux/ppp_defs.h:    __u32 vjs_compressedin;   /* inbound compressed packets */
/usr/include/linux/ppp_defs.h:    __u32 vjs_errorin;    /* inbound unknown type packets */
/usr/include/linux/ppp_defs.h:    __u32 vjs_tossed;     /* inbound packets tossed because of error */
/usr/include/linux/sdla_ppp.h:  unsigned char   inbd_auth_peerID[1] PACKED; /* 4D: variable length inbound authenticated peer ID */
/usr/include/net/slcompress.h:  int sls_uncompressedin; /* inbound uncompressed packets */
/usr/include/net/slcompress.h:  int sls_compressedin;   /* inbound compressed packets */
/usr/include/net/slcompress.h:  int sls_errorin;        /* inbound unknown type packets */
/usr/include/net/slcompress.h:  int sls_tossed;         /* inbound packets tossed because of error */
/usr/include/opencdk.h:                        const void * inbuf, size_t insize,
/usr/include/X11/Xauth.h:     krb5_data         /* inbuf */,
/usr/include/X11/extensions/lbximage.h: unsigned char *         /* inbuf */,
/usr/include/X11/extensions/lbximage.h: unsigned char *         /* inbuf */,
/usr/include/X11/extensions/lbximage.h: char *                  /* inbuf */,
/usr/include/X11/extensions/lbximage.h: char *                  /* inbuf */,
/usr/include/X11/extensions/lbximage.h:char *                   /* inbuf */,
/usr/include/X11/extensions/lbximage.h:unsigned char *          /* inbuf */,
/usr/include/X11/extensions/lbximage.h:char *                   /* inbuf */,
/usr/include/X11/extensions/lbximage.h:unsigned char *          /* inbuf */,
Quoted 1 line

grep ' outb' -r /usr/include/*

gives me:
grep '^outb ' -r /usr/include/*
grep: Warnung: /usr/include/gnome-xml/libxml: Rekursive Verzeichnisschleife.

grep: /usr/include/ioport.h: Zu viele Ebenen aus symbolischen Links

zeno@zrr:/usr/src/modules/lm_sensors-2.8.0/prog/dump$ sudo grep '^outb ' -r /usr/include/*
Password:
grep: Warnung: /usr/include/gnome-xml/libxml: Rekursive Verzeichnisschleife.

grep: /usr/include/ioport.h: Zu viele Ebenen aus symbolischen Links

zeno@zrr:/usr/src/modules/lm_sensors-2.8.0/prog/dump$ grep '^inb ' -r /usr/include/*
grep: Warnung: /usr/include/gnome-xml/libxml: Rekursive Verzeichnisschleife.

grep: /usr/include/ioport.h: Zu viele Ebenen aus symbolischen Links

zeno@zrr:/usr/src/modules/lm_sensors-2.8.0/prog/dump$ grep '^outb ' -r /usr/include/*
grep: Warnung: /usr/include/gnome-xml/libxml: Rekursive Verzeichnisschleife.

grep: /usr/include/ioport.h: Zu viele Ebenen aus symbolischen Links

zeno@zrr:/usr/src/modules/lm_sensors-2.8.0/prog/dump$ grep ' inb' -r /usr/include/*
/usr/include/asm/io.h:#define inb(port)         in_8((u8 *)((port)+_IO_BASE))
/usr/include/asm/io.h:#define inb(port)         in_8((u8 *)((port)+_IO_BASE))
/usr/include/asm/io.h:#define inb_p(port)               inb((port))
/usr/include/asm/keyboard.h:#define kbd_read_input() inb(KBD_DATA_REG)
/usr/include/asm/keyboard.h:#define kbd_read_status() inb(KBD_STATUS_REG)
grep: Warnung: /usr/include/gnome-xml/libxml: Rekursive Verzeichnisschleife.

/usr/include/gtkmm-2.0/glibmm/convert.h: * @param inbuf Bytes to convert.
/usr/include/gtkmm-2.0/glibmm/convert.h: * @param inbytes_left In/out parameter, bytes remaining to convert in @a inbuf.
/usr/include/gtkmm-2.0/glibmm/convert.h: size_t iconv(char** inbuf, gsize* inbytes_left, char** outbuf, gsize* outbytes_left);
grep: /usr/include/ioport.h: Zu viele Ebenen aus symbolischen Links
/usr/include/linux/atmbr2684.h: * Is there FCS inbound on this VC? This currently isn't supported.
/usr/include/linux/gameport.h: return inb(gameport->io);
/usr/include/linux/ipsec.h:#define IPSEC_LEVEL_USE 1 /* use outbound, don't require inbound */

/usr/include/linux/parport_pc.h:        unsigned char val = inb (DATA (p));
/usr/include/linux/parport_pc.h:        unsigned char ecr = inb (ECONTROL (p));
/usr/include/linux/parport_pc.h:        unsigned char dcr = inb (CONTROL (p));
/usr/include/linux/parport_pc.h:        unsigned char dsr = inb (STATUS (p));
/usr/include/linux/parport_pc.h:                dcr = i ? priv->ctr : inb (CONTROL (p));
/usr/include/linux/parport_pc.h:        return inb(STATUS(p));
/usr/include/linux/ppp_defs.h:    __u32 vjs_uncompressedin; /* inbound uncompressed packets */
/usr/include/linux/ppp_defs.h:    __u32 vjs_compressedin;   /* inbound compressed packets */
/usr/include/linux/ppp_defs.h:    __u32 vjs_errorin;    /* inbound unknown type packets */
/usr/include/linux/ppp_defs.h:    __u32 vjs_tossed;     /* inbound packets tossed because of error */

/usr/include/linux/sdla_ppp.h: unsigned char inbd_auth_peerID[1] PACKED; /* 4D: variable length inbound authenticated peer ID */
and a lot more...

How would I be able to fix those symlinks?

Thanks for Feedback.
Zeno

#4 lore raw
In reply to Jean Delvare
Quoted 10 lines · On Thu, 31 Jul 2003 14:27:31 +0200 Jean Delvare <[email protected]> wrote:
Quoted 4 lines
Quoted 2 lines

Typo here, I really meant: "ls -l /usr/include/ioport.h".

lrwxrwxrwx 1 root root 8 2003-06-16 08:23
/usr/include/ioport.h -> ioport.h

This is *bad*. Delete this:

rm -f /usr/include/ioport.h

Back to the mailing list then.

Ok. Done that, I am just doing make again now ang I get:
gcc -shared -Wl,-soname,libsensors.so.2 -o lib/libsensors.so.2.0.0 lib/data.lo lib/general.lo lib/error.lo lib/chips.lo lib/proc.lo lib/access.lo lib/init.lo lib/conf-parse.lo lib/conf-lex.lo -lc -lm rm -f lib/libsensors.so.2
ln -sfn libsensors.so.2.0.0 lib/libsensors.so.2
rm -f lib/libsensors.so
ln -sfn libsensors.so.2.0.0 lib/libsensors.so

gcc -I. -Ikernel/include -I/usr/local/include  -Wall -O2   -c prog/sensors/main.c -o prog/sensors/main.ro
gcc -I. -Ikernel/include -I/usr/local/include  -Wall -O2   -c prog/sensors/chips.c -o prog/sensors/chips.ro

gcc -o prog/sensors/sensors prog/sensors/main.ro prog/sensors/chips.ro -Llib -lsensors
gcc -I. -Ikernel/include -I/usr/local/include -Wall -O2 -c prog/dump/isadump.c -o prog/dump/isadump.ro
prog/dump/isadump.c: In function `main':
prog/dump/isadump.c:174: Warnung: implicit declaration of function outb' prog/dump/isadump.c:183: Warnung: implicit declaration of function inb' gcc -o prog/dump/isadump prog/dump/isadump.ro prog/dump/isadump.ro(.text+0x284): In function `main':
: undefined reference to `outb'
prog/dump/isadump.ro(.text+0x290): In function `main':
: undefined reference to `inb'
prog/dump/isadump.ro(.text+0x308): In function `main':
: undefined reference to `outb'
prog/dump/isadump.ro(.text+0x318): In function `main':
: undefined reference to `outb'
prog/dump/isadump.ro(.text+0x32c): In function `main':
: undefined reference to `outb'
prog/dump/isadump.ro(.text+0x33c): In function `main':
: undefined reference to `outb'
collect2: ld returned 1 exit status
make: *** [prog/dump/isadump] Fehler 1

Thanks for Feedback.
Zeno

#5 lore raw
In reply to Jean Delvare

Since I don't really understand what happens there, and you probably don't need isadump, let's simply skip it.

Edit the Makefile, look for that line:

SRCDIRS += lib prog/sensors prog/dump prog/detect ${PROG_EXTRA:%=prog/%} etc

and remove the prog/dump directory:

SRCDIRS += lib prog/sensors prog/detect ${PROG_EXTRA:%=prog/%} etc

If it works for you, at least, you'll be able to use lm_sensors.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#6 lore raw
In reply to Jean Delvare
Quoted 6 lines · On Thu, 31 Jul 2003 14:41:08 +0200 Jean Delvare <[email protected]> wrote:

Since I don't really understand what happens there, and you probably don't need isadump, let's simply skip it.

Edit the Makefile, look for that line:

Quoted 8 lines

SRCDIRS += lib prog/sensors prog/dump prog/detect ${PROG_EXTRA:%=prog/%} etc

and remove the prog/dump directory:

SRCDIRS += lib prog/sensors prog/detect ${PROG_EXTRA:%=prog/%} etc

If it works for you, at least, you'll be able to use lm_sensors.

Ok great. This one worked just fine.

-> Installation successful!

Thanks a lot for your time an help. Now lets see what I detect.

Zeno