Skip to contentSkip to conversation

2.7.0 Error in make

DISCUSSION DB Troll 3 participants 5 messages May 19, 2005

lore
Share & tools
lore

DB Troll

author
#0 lore raw

When trying to do make I get the following error,

Quoted 3 lines

bison -p sensors_yy -d lib/conf-parse.y -o lib/conf-parse.c
make: bison: Command not found
make: *** [lib/conf-parse.c] Error 127

Any ideas.
TIA
David
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 252 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20030120/7a9fc9f3/attachment.bin

#1 lore raw
Quoted 12 lines · DB Troll
Quoted 1 line

Jean,
Ignore last msg I found flex and installed but still come up with an error

Quoted 7 lines

lib/libsensors.so: undefined reference to sensors_yylex' lib/libsensors.so: undefined reference to sensors_yyin' lib/libsensors.so: undefined reference to sensors_lex_error' lib/libsensors.so: undefined reference to sensors_yylineno'
collect2: ld returned 1 exit status
make: *** [prog/sensors/sensors] Error 1 linux:/home/dbtrol/lm_sensors-2.7.0 #David

Quoted 2 lines

David

After you've installed flex and bison (or equivalent), you probably need to "make clean" before you "make" again.

Regards,

Signature · 2 lines
Mark M. Hoffman
[email protected]
#2 lore raw
In reply to DB Troll
Quoted 4 lines
Quoted 4 lines

bison -p sensors_yy -d lib/conf-parse.y -o lib/conf-parse.c
make: bison: Command not found
make: *** [lib/conf-parse.c] Error 127

You need to install bison. It is packaged for most (if not all) distributions. On some distributions, you have to look for yacc instead. Just find a package that provides bison, as a binary or as a symbolic link to yacc, and you're done.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
author
#3 lore raw
In reply to DB Troll
Quoted 6 lines · Jean Delvare
Quoted 5 lines
Quoted 5 lines

bison -p sensors_yy -d lib/conf-parse.y -o lib/conf-parse.c
make: bison: Command not found
make: *** [lib/conf-parse.c] Error 127

Quoted 7 lines

You need to install bison. It is packaged for most (if not all) distributions. On some distributions, you have to look for yacc instead. Just find a package that provides bison, as a binary or as a symbolic link to yacc, and you're done.

Jean,
Ignore last msg I found flex and installed but still come up with an error

Quoted 7 lines

lib/libsensors.so: undefined reference to sensors_yylex' lib/libsensors.so: undefined reference to sensors_yyin' lib/libsensors.so: undefined reference to sensors_lex_error' lib/libsensors.so: undefined reference to sensors_yylineno'
collect2: ld returned 1 exit status
make: *** [prog/sensors/sensors] Error 1 linux:/home/dbtrol/lm_sensors-2.7.0 #David

David

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 252 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20030120/bb795e5f/attachment.bin

author
#4 lore raw
In reply to DB Troll
Quoted 22 lines · Mark M. Hoffman
Quoted 14 lines · DB Troll

Jean,
Ignore last msg I found flex and installed but still come up with an error

Quoted 9 lines

lib/libsensors.so: undefined reference to sensors_yylex' lib/libsensors.so: undefined reference to sensors_yyin' lib/libsensors.so: undefined reference to sensors_lex_error' lib/libsensors.so: undefined reference to sensors_yylineno'
collect2: ld returned 1 exit status
make: *** [prog/sensors/sensors] Error 1 linux:/home/dbtrol/lm_sensors-2.7.0 #David

Quoted 4 lines

David

Quoted 7 lines

After you've installed flex and bison (or equivalent), you probably need to "make clean" before you "make" again.

Regards,

Mark and Jean,
Thank you very much for the info. I now have sensors up and running. Still a few problems with a couple of wrong voltages and no voltages showing in gkrellm, also do not seem to get it to auto start on boot. Thanks
David

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 252 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20030120/473546df/attachment.bin