Hi Folks,

Am still trying to get hbaping to work, this time on a x86_64 platform,
rhel4.6 running  kernel 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:56:44 EST
2007 x86_64.

On the 32bit platform, hbaapitest runs, albeit with an error on the end,
see previous posts. On the 64 bit platform it just segfaults right away.

Here's how I compiled it:

got the software:
wget
http://downloads.sourceforge.net/hbaapi/hbaapi_src_2.2.tgz?use_mirror=puzzle

and the Makefile:
wget http://www.linux-ha.org/_cache/ha.cf_HbapingDirective__Makefile

[EMAIL PROTECTED] hbaapi_src_2.2]# make clean 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

so far, so good...

but then:

[EMAIL PROTECTED] hbaapi_src_2.2]# ./hbaapitest
HBA API Library version is 2
Segmentation fault
[EMAIL PROTECTED] hbaapi_src_2.2]

from syslog:
Dec 17 00:03:01 mandelbrot kernel: hbaapitest[4858]: segfault at
ffffffffbffb0c80 rip 00000030e0770a30 rsp 0000007fbffb0b48 error 4

The /etc/hba.conf points towards the 64bit library:
[EMAIL PROTECTED] hbaapi_src_2.2]# cat /etc/hba.conf
qla2xxx   /usr/lib64/libqlsdm-x86_64.so
[EMAIL PROTECTED] hbaapi_src_2.2]#

Can anybody offer any insight as to what's wrong here?
Anything I need to do differently?

Thanks in advance for the help,
regards,

Johan

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
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