[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Freeipmi-devel] Re: [Freeipmi-users] ipmi_open_inband
From: |
Dmitry Frolov |
Subject: |
[Freeipmi-devel] Re: [Freeipmi-users] ipmi_open_inband |
Date: |
Thu, 14 Dec 2006 16:20:48 +0600 |
User-agent: |
Mutt/1.5.11 |
* Sharad Chandra <address@hidden> [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
using?
I successfully test-compile with libfreeipmi:
address@hidden ttyp1:~/tmp$pkg_info | grep freeipmi
freeipmi-0.3.0_1 Library and tools to support IPMI-capable hardware
address@hidden ttyp1:~/tmp$cat fitest.c
#include <freeipmi/udm/ipmi-udm.h>
int
main(void)
{
ipmi_open_inband(0, 0, 0, 0, 0, 0);
return (0);
}
address@hidden ttyp1:~/tmp$cc -I/usr/local/include -L/usr/local/lib -lfreeipmi
-o fitest fitest.c
address@hidden ttyp1:~/tmp$ls -l fitest
-rwxr-xr-x 1 frol frol 4777 14 дек 16:13 fitest*
wbr&w, dmitry.
--
Dmitry Frolov <address@hidden>
RISS-Telecom Network, Novosibirsk, Russia
address@hidden, +7 383 2278800, DVF-RIPE
- [Freeipmi-devel] Re: [Freeipmi-users] ipmi_open_inband,
Dmitry Frolov <=