32 bit openipmi utilities on 64 bit RHEL
"Srikrishan Malik(gmail)" <[email protected]> Wed, 8 Dec 2010 11:06:42 +0530
| Newsgroups | gmane.linux.redhat.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============5403945625201903465== Content-Type: multipart/alternative; boundary=001485f423d8927ce30496df81c4 --001485f423d8927ce30496df81c4 Content-Type: text/plain; charset=ISO-8859-1 Hello I have written a utility using OpenIPMI library on RHEL 5.5 x86_64. I build 64 bit binary and it worked without issues. When I compiled the same code to have 32 bit binary(all dependencies resolved) and executed it, following error was thrown Code = samples given in this doc http://openipmi.sourceforge.net/IPMI.pdf # ./a.out smi 0 gdbm fatal: read error <<--sometimes this is lseek error instead of read. following is the trace after putting a breakpoint in lseek. #0 0x0085add0 in lseek () from /lib/libpthread.so.0 #1 0xf7df61fc in gdbm_open () from /usr/lib/libgdbm.so.2 #2 0xf7e4e35e in ?? () from /usr/lib/libOpenIPMIposix.so.0 #3 0xf7e4e476 in ?? () from /usr/lib/libOpenIPMIposix.so.0 #4 0xf7e987a3 in ?? () from /usr/lib/libOpenIPMI.so.0 #5 0xf7ea4f29 in opq_new_op_prio () from /usr/lib/libOpenIPMI.so.0 #6 0xf7ea4fe2 in opq_new_op () from /usr/lib/libOpenIPMI.so.0 #7 0xf7e99f1e in ?? () from /usr/lib/libOpenIPMI.so.0 #8 0xf7e94f13 in ?? () from /usr/lib/libOpenIPMI.so.0 #9 0xf7e885a8 in ipmi_domain_pointer_cb () from /usr/lib/libOpenIPMI.so.0 #10 0xf7e9333f in ipmi_mc_pointer_cb () from /usr/lib/libOpenIPMI.so.0 #11 0xf7e97300 in ipmi_sdr_fetch () from /usr/lib/libOpenIPMI.so.0 #12 0xf7e8f1a5 in ?? () from /usr/lib/libOpenIPMI.so.0 #13 0xf7e94e23 in ?? () from /usr/lib/libOpenIPMI.so.0 #14 0xf7e88936 in ?? () from /usr/lib/libOpenIPMI.so.0 #15 0xf7e8f710 in ?? () from /usr/lib/libOpenIPMI.so.0 #16 0xf7e84ed5 in ipmi_handle_rsp_item_copymsg () from /usr/lib/libOpenIPMI.so.0 #17 0xf7ef3905 in ?? () from /usr/lib/libOpenIPMI.so.0 #18 0xf7e4df0d in ?? () from /usr/lib/libOpenIPMIposix.so.0 #19 0xf7e4fef4 in ?? () from /usr/lib/libOpenIPMIposix.so.0 #20 0xf7e50494 in sel_select_loop () from /usr/lib/libOpenIPMIposix.so.0 #21 0xf7e4dfaa in ?? () from /usr/lib/libOpenIPMIposix.so.0 #22 0x08049643 in main (argc=3, argv=0xfff59194) at sample.c:378 (gdb) Then I tried to find 32 bit openipmish(default is 64 bit on 64 bit RHEL), didn't have 32 bit images for RHEL5 so I used binaries and libraries of the same version from centOS repos(didn't install the RPMs, only extracted the files from rpms in /tmp and changed LD_LIBRARY_PATH to point to the new libraries). For this configuration I got the same error. # ./usr/bin/openipmish > domain open test smi 0 Event Object Type: Domain Name: test Operation: Add > gdbm fatal: lseek error # Has anybody else faced this issue in the past? Is it a good configuration(writing/running 32 bit IPMI programs on x64 platforms)? Any solutions? Thanks Sri --001485f423d8927ce30496df81c4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello <br><br>I have written a utility using OpenIPMI library on RHEL 5.5 x= 86_64. I build 64 bit binary and it worked without issues.<br><br>When I co= mpiled the same code to have 32 bit binary(all dependencies resolved) and e= xecuted it, following error was thrown<br> Code =3D samples given in this doc <a href=3D"http://openipmi.sourceforge.n= et/IPMI.pdf" target=3D"_blank">http://openipmi.sourceforge.net/IPMI.pdf</a>= <br><br># ./a.out smi 0<br>gdbm fatal: read error=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 <<--sometimes this is lseek error instead of read.<br> <br>following is the trace after putting a breakpoint in lseek.<br><br>#0= =A0 0x0085add0 in lseek () from /lib/libpthread.so.0<br>#1=A0 0xf7df61fc in= gdbm_open () from /usr/lib/libgdbm.so.2<br> #2=A0 0xf7e4e35e in ?? () from /usr/lib/libOpenIPMIposix.so.0<br>#3=A0 0xf7= e4e476 in ?? () from /usr/lib/libOpenIPMIposix.so.0<br>#4=A0 0xf7e987a3 in = ?? () from /usr/lib/libOpenIPMI.so.0<br>#5=A0 0xf7ea4f29 in opq_new_op_prio= () from /usr/lib/libOpenIPMI.so.0<br> #6=A0 0xf7ea4fe2 in opq_new_op () from /usr/lib/libOpenIPMI.so.0<br>#7=A0 0= xf7e99f1e in ?? () from /usr/lib/libOpenIPMI.so.0<br>#8=A0 0xf7e94f13 in ??= () from /usr/lib/libOpenIPMI.so.0<br>#9=A0 0xf7e885a8 in ipmi_domain_point= er_cb () from /usr/lib/libOpenIPMI.so.0<br> #10 0xf7e9333f in ipmi_mc_pointer_cb () from /usr/lib/libOpenIPMI.so.0<br>#= 11 0xf7e97300 in ipmi_sdr_fetch () from /usr/lib/libOpenIPMI.so.0<br>#12 0x= f7e8f1a5 in ?? () from /usr/lib/libOpenIPMI.so.0<br>#13 0xf7e94e23 in ?? ()= from /usr/lib/libOpenIPMI.so.0<br> #14 0xf7e88936 in ?? () from /usr/lib/libOpenIPMI.so.0<br>#15 0xf7e8f710 in= ?? () from /usr/lib/libOpenIPMI.so.0<br>#16 0xf7e84ed5 in ipmi_handle_rsp_= item_copymsg () from /usr/lib/libOpenIPMI.so.0<br>#17 0xf7ef3905 in ?? () f= rom /usr/lib/libOpenIPMI.so.0<br> #18 0xf7e4df0d in ?? () from /usr/lib/libOpenIPMIposix.so.0<br>#19 0xf7e4fe= f4 in ?? () from /usr/lib/libOpenIPMIposix.so.0<br>#20 0xf7e50494 in sel_se= lect_loop () from /usr/lib/libOpenIPMIposix.so.0<br>#21 0xf7e4dfaa in ?? ()= from /usr/lib/libOpenIPMIposix.so.0<br> #22 0x08049643 in main (argc=3D3, argv=3D0xfff59194) at sample.c:378<br>(gd= b) <br><br clear=3D"all"><br>Then I tried to find 32 bit openipmish(default= is 64 bit on 64 bit RHEL), didn't have 32 bit images for RHEL5 so I us= ed binaries and libraries of the same version from centOS repos(didn't = install the RPMs, only extracted the files from rpms in /tmp and changed LD= _LIBRARY_PATH to point to the new libraries).<br> For this configuration I got the same error.<br># ./usr/bin/openipmish <br>= > domain open test smi 0<br>Event<br>=A0 Object Type: Domain<br>=A0 Name= : test<br>=A0 Operation: Add<br>> gdbm fatal: lseek error<br># <br><br>H= as anybody else faced this issue in the past?<br> Is it a good configuration(writing/running 32 bit IPMI programs on x64 plat= forms)?<br>Any solutions?<br><br>Thanks <br>Sri<br> --001485f423d8927ce30496df81c4-- --===============5403945625201903465== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Redhat-devel-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/redhat-devel-list --===============5403945625201903465==--