Fixed this ...

The issue was that libsmartctl had mangled symbols. I doubt that this is
source patchable as I had to make quite a few changes to smartmontools to be
c style and not c++ because net-snmp is all c.

- Muni


On 6/17/07, Jimbo Cham <[EMAIL PROTECTED]> wrote:

I have tried various location changes for lsmartctl and it JUST wont link.

Need some fresh direction

- Muni


 On 6/16/07, Dave Shield <[EMAIL PROTECTED]> wrote:
>
> On 16/06/07, Jimbo Cham <[EMAIL PROTECTED]> wrote:
> > Before I mess with teh configure.in file I have to get it to compile
> and
> > link. I modified the makefile and all compiles but I just cant get the
> thing
> > to link. This is the snippet ..
> > gcc -g .... snmpd.o -lsmartctl -lstdc++
> > ./.libs/libnetsnmpagent.so ./.libs/libnetsnmpmibs.so ...
>
>
> > ./.libs/libnetsnmpmibs.so: undefined reference to `deviceopen'
> > ./.libs/libnetsnmpmibs.so: undefined reference to `guess_device_type'
> > collect2: ld returned 1 exit status
>
> Just a guess, but you could try listing the smartctl and stdc++
> libraries
> *after* the netsnmp libraries, in the compilation.
>   If you add them to the Makefile in the same way as (say) the selinux
> library is specified, then this might help the linking process.
>
> Dave
>


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to