LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-17-2010, 06:40 AM   #1
sonbaty1
LQ Newbie
 
Registered: Nov 2010
Posts: 2

Rep: Reputation: 0
slackware 13.1 build package net-snmp with lmSensors support


Hi,

I downloaded from http://ftp.nluug.nl/os/Linux/distr/s...ce/n/net-snmp/ source and I build new package and works ok no errors. If I change net-snmp.SlackBuild and add CFLAGS --with-mib-modules=ucd-snmp/lmSensors --with-ldflags=-lsensors while I need lmsensors support in net-snmp. But the package compiling ends with error:
-c ucd-snmp/lmSensors.c -fPIC -DPIC -o ucd-snmp/.libs/lmSensors.o
ucd-snmp/lmSensors.c: In function '_sensor_load':
ucd-snmp/lmSensors.c:943: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
ucd-snmp/lmSensors.c:943: error: 'data' undeclared (first use in this function)
ucd-snmp/lmSensors.c:943: error: (Each undeclared identifier is reported only once
ucd-snmp/lmSensors.c:943: error: for each function it appears in.)
ucd-snmp/lmSensors.c:964: warning: passing argument 1 of 'sensors_get_detected_chips' from incompatible pointer type
/usr/include/sensors/sensors.h:128: note: expected 'const struct sensors_chip_name *' but argument is of type 'int *'
ucd-snmp/lmSensors.c:964: error: too few arguments to function 'sensors_get_detected_chips'
ucd-snmp/lmSensors.c:973: error: 'SENSORS_NO_MAPPING' undeclared (first use in this function)
ucd-snmp/lmSensors.c:974: error: incompatible type for argument 1 of 'sensors_get_label'
/usr/include/sensors/sensors.h:104: note: expected 'const struct sensors_chip_name *' but argument is of type 'sensors_chip_name'
ucd-snmp/lmSensors.c:974: error: too many arguments to function 'sensors_get_label'
make[2]: *** [ucd-snmp/lmSensors.lo] Error 1
make[2]: Leaving directory `/tmp/net-snmp-5.5/agent/mibgroup'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/tmp/net-snmp-5.5/agent'
make: *** [subdirs] Error 1

how can i fix this error?

thanks
 
Old 11-18-2010, 05:09 AM   #2
easuter
Member
 
Registered: Dec 2005
Location: Portugal
Distribution: Slackware64 13.0, Slackware64 13.1
Posts: 538

Rep: Reputation: 62
Take a look at this thread on the net-snmp mailing list:
http://www.mail-archive.com/net-snmp.../msg22781.html

It is possible that net-snmp is incompatible with the version of lm-sensors that you have installed, so it may be better if you find out at the net-snmp site which is the recommended version of lm-sensors for the sources you want to build.
 
Old 11-22-2010, 08:35 AM   #3
sonbaty1
LQ Newbie
 
Registered: Nov 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Talking

Thanks
Works
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot find net-snmp support mathimca05 Linux - Newbie 5 08-18-2013 04:23 PM
Net-SNMP Fails to Build (RH ES 4.0) jhmathis Linux - Enterprise 1 10-26-2007 04:00 AM
error: cannot find net-snmp support Cyber Maid Linux - Software 3 03-05-2006 01:38 PM
No net-snmp support compile error bubbers214 Linux - Software 1 05-21-2005 03:20 AM
net-snmp agentX support? blackzone Linux - Networking 0 11-09-2004 11:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration