* Sharad Chandra <[EMAIL PROTECTED]> [14.12.2006 15:35]:

> Hi,
>       I am trying to create and write sdr cache. For that purpose i am 
> opening ipmi 
> inband, by using function "ipmi_open_inband" provided in 
> freeipmi/udm/ipmi-udm.h. but when i compile using -lfreeipmi it tells
> /var/tmp//cchg3LRe.o(.text+0x11a): In function `init_agent_cache()':
> : undefined reference to `ipmi_open_inband(ipmi_driver_type, int, unsigned 
> short, unsigned char, char*, unsigned int)'
> I was looking for library to use that function..  this is linking problem..
> What to do to resolve it? I am using freeipmi-0.3.0_1 version and trying on 
> IBM machine   eserver xSeries 346 -[884011U]

This is on FreeBSD I suppose? Can You please provide compile command You

I successfully test-compile with libfreeipmi:

[EMAIL PROTECTED] ttyp1:~/tmp$pkg_info | grep freeipmi
freeipmi-0.3.0_1    Library and tools to support IPMI-capable hardware
[EMAIL PROTECTED] ttyp1:~/tmp$cat fitest.c 
#include <freeipmi/udm/ipmi-udm.h>

        ipmi_open_inband(0, 0, 0, 0, 0, 0);      
        return (0);
[EMAIL PROTECTED] ttyp1:~/tmp$cc -I/usr/local/include -L/usr/local/lib 
-lfreeipmi -o fitest fitest.c 
[EMAIL PROTECTED] ttyp1:~/tmp$ls -l fitest
-rwxr-xr-x  1 frol  frol  4777 14 дек 16:13 fitest*

    wbr&w, dmitry.
Dmitry Frolov <[EMAIL PROTECTED]>
RISS-Telecom Network, Novosibirsk, Russia
[EMAIL PROTECTED], +7 383 2278800, DVF-RIPE

Freeipmi-devel mailing list

Reply via email to