Hi,

On Fri, Dec 21, 2007 at 02:15:12PM +0100, Johan Hoeke wrote:
> Johan Hoeke wrote:
> > Trent Lloyd wrote:
> >> Hi Johan,
> >>
> >> On 20/12/2007, at 8:51 PM, Johan Hoeke wrote:
> >>
> >>> Trent Lloyd wrote:
> >>>> Hi Johan,
> >>>>> Haven't gotten the hbaping to work on x86_64, but I'll save that for
> >>>>> another day.
> >>>> Check out the modified make file from the Gentoo folks (if you check the
> >>>> ebuild file and follow a mirror you can find the raw files) - it seems
> >>>> to have fixed up alot of issues and includes -fPIC and such so it should
> >>>> work on 64-bit in theory.
> >>>>
> >> Grab this file:
> >> http://de-mirror.org/distro/gentoo/distfiles/hbaapi-2.2.Makefile.gz
> >>
> >> Uncompress it and replace the 'Makefile' file in the standard hbaapi 2.2
> >> distribution, and then try make and see how you go.
> >>
> >> Regards,
> 
> Alas, Trent,
> 
> I compared the Makefile from Gentoo from the link above to the one I
> used, the were identical.
> 
> I got mine from the
> http://www.linux-ha.org/ha.cf/HbapingDirective page which contains a link to
> http://www.linux-ha.org/_cache/ha.cf_HbapingDirective__Makefile
> 
> I get a segfault running hbaapitest after replacing the Makefile and
> recompiling:
> 
> [EMAIL PROTECTED] hbaapi_src_2.2]# make clean && make all
> rm -f *.so
> rm -f hbaapitest
> rm *.o
> gcc -c hbaapitest.c
> gcc -fPIC -g -c -Wall HBAAPILIB.c
> HBAAPILIB.c: In function `local_remove_callback':
> HBAAPILIB.c:398: warning: left-hand operand of comma expression has no
> effect
> HBAAPILIB.c: In function `HBA_LoadLibrary':
> HBAAPILIB.c:676: warning: implicit declaration of function `strcpy'
> HBAAPILIB.c:691: warning: implicit declaration of function `strtok'
> HBAAPILIB.c:691: warning: assignment makes pointer from integer without
> a cast
> HBAAPILIB.c:692: warning: implicit declaration of function `strlen'
> HBAAPILIB.c:698: warning: assignment makes pointer from integer without
> a cast
> HBAAPILIB.c:706: warning: assignment makes pointer from integer without
> a cast
> HBAAPILIB.c:722: warning: implicit declaration of function `strcmp'
> HBAAPILIB.c:734: warning: implicit declaration of function `strdup'
> HBAAPILIB.c: In function `HBA_GetNumberOfAdapters':
> HBAAPILIB.c:1052: warning: int format, different type arg (arg 3)
> HBAAPILIB.c: In function `HBA_GetWrapperLibraryAttributes':
> HBAAPILIB.c:1230: warning: implicit declaration of function `memset'
> HBAAPILIB.c: In function `HBA_RegisterForAdapterAddEvents':
> HBAAPILIB.c:1363: warning: int format, different type arg (arg 3)
> HBAAPILIB.c:1403: warning: int format, different type arg (arg 3)
> HBAAPILIB.c: In function `HBA_RegisterForAdapterEvents':
> HBAAPILIB.c:1539: warning: int format, different type arg (arg 3)
> HBAAPILIB.c: In function `HBA_RegisterForAdapterPortEvents':
> HBAAPILIB.c:1631: warning: int format, different type arg (arg 3)
> HBAAPILIB.c: In function `HBA_RegisterForAdapterPortStatEvents':
> HBAAPILIB.c:1724: warning: int format, different type arg (arg 3)
> HBAAPILIB.c: In function `HBA_RegisterForTargetEvents':
> HBAAPILIB.c:1821: warning: int format, different type arg (arg 3)
> HBAAPILIB.c: In function `HBA_RegisterForLinkEvents':
> HBAAPILIB.c:1916: warning: int format, different type arg (arg 3)
> HBAAPILIB.c: At top level:
> HBAAPILIB.c:458: warning: 'wwn_str1' defined but not used
> HBAAPILIB.c:459: warning: 'wwn_str2' defined but not used
> HBAAPILIB.c:460: warning: 'wwn_str3' defined but not used
> HBAAPILIB.c:465: warning: 'WWN2str' defined but not used
> gcc -shared -Wl,-soname,libHBAAPI.so -o libHBAAPI.so version.o
> HBAAPILIB.o -rdynamic -ldl
> gcc hbaapitest.o -ldl libHBAAPI.so -o hbaapitest
> 
> [EMAIL PROTECTED] hbaapi_src_2.2]# ./hbaapitest
> HBA API Library version is 2
> Segmentation fault
> 
> [EMAIL PROTECTED] hbaapi_src_2.2]# ldd hbaapitest
>         libdl.so.2 => /lib64/libdl.so.2 (0x00000030e0a00000)
>         libHBAAPI.so => /usr/lib64/libHBAAPI.so (0x0000002a95576000)
>         libc.so.6 => /lib64/tls/libc.so.6 (0x00000030e0700000)
>         /lib64/ld-linux-x86-64.so.2 (0x00000030e0500000)
> 
> [EMAIL PROTECTED] hbaapi_src_2.2]# cat /etc/hba.conf
> qla2xxx   /usr/lib64/libqlsdm-x86_64.so
> 
> Dec 21 13:56:14 mandelbrot kernel: hbaapitest[3900]: segfault at
> ffffffffbffb0c60 rip 00000030e0770a30 rsp 0000007fbffb0b28 error 4
> 
> [EMAIL PROTECTED] hbaapi_src_2.2]# ldd /usr/lib64/libqlsdm-x86_64.so
>         libpthread.so.0 => /lib64/tls/libpthread.so.0 (0x0000002a956b5000)
>         libc.so.6 => /lib64/tls/libc.so.6 (0x0000002a957cb000)
>         /lib64/ld-linux-x86-64.so.2 (0x000000552aaaa000)
> 
> Anybody have hbaapitest and/or hbaping working on intel x86_64?

I think that I did, but it was at least a year ago. Unfortunately
don't have access to those computers anymore. You could provide a
backtrace from those coredumps. The compiler warnings are
probably a clue. Is there anybody maintaining those sources?

Thanks,

Dejan

> Can you please share the details on getting there?
> 
> I'm running:
> RHEL AS 4.6,
> 2.6.9-67.ELsmp
> 
> 
> tia,
> 
> Johan
> 
> 
> -- 
> Johan Hoeke <[EMAIL PROTECTED]> ??? UNIX system administration
> 
> Universiteit van Tilburg ??? LIS ??? Postbus 90153, 5000 LE
> Bezoekadres : Warandelaan 2 ??? 013 466 3374 ??? http://www.uvt.nl
> 



> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to