Bug 223440 - net-snmp agent has undefined symbols
net-snmp agent has undefined symbols
Status: CLOSED NOTABUG
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: net-snmp (Show other bugs)
5.0
x86_64 Linux
medium Severity medium
: ---
: ---
Assigned To: Radek Vokal
David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-01-19 07:46 EST by Silvio Ziegelwanger
Modified: 2007-11-30 17:07 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-01-19 08:10:30 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Silvio Ziegelwanger 2007-01-19 07:46:49 EST
procagent.c:

int main()
{
  return 0;
}

gcc-command:

gcc -c procagent.c

g++ -o procagent procagent.o   `net-snmp-config --libs` -lnetsnmpagent
-lnetsnmphelpers -lnetsnmpmibs -lsensors

result:

/usr/lib64/libnetsnmpagent.so: undefined reference to `perl_alloc'
/usr/lib64/libnetsnmpagent.so: undefined reference to `perl_destruct'
/usr/lib64/libnetsnmpagent.so: undefined reference to `boot_DynaLoader'
/usr/lib64/libnetsnmpagent.so: undefined reference to `perl_run'
/usr/lib64/libnetsnmpagent.so: undefined reference to `perl_free'
/usr/lib64/libnetsnmpagent.so: undefined reference to `perl_construct'
/usr/lib64/libnetsnmpagent.so: undefined reference to `Perl_newXS'
/usr/lib64/libnetsnmpagent.so: undefined reference to `Perl_eval_pv'
/usr/lib64/libnetsnmpagent.so: undefined reference to `perl_parse'
collect2: ld returned 1 exit status
Comment 1 Radek Vokal 2007-01-19 08:10:30 EST
perl is an external net-snmp module, you need to compile your code with
`net-snmp-config --external-agent-libs`

Note You need to log in before you can comment on or make changes to this bug.