Tuesday, November 04, 2008

Some issuse for HBAAPI 2.2

I can't compile the HBAAPI 2.2 from it's source file. Below is file list.

hbaapi.h hbaapitest.c hbasample.c makefile.nt vendorhbaapi.h HBAAPILIB.c hbasample.h makefile.unix version.c hba.conf readme.txt version.o hba.reg

some issuses:
1.Make -f makefile.unix
just show can't compile error1.
I found a makefile which download from a gentoo group, I name it makefile.linux, it's seem work.
At least it compile succesfully.
This is different part.
libHBAAPI.so: HBAAPILIB.c hbaapi.h vendorhbaapi.h ${VERS} ${CC} -fPIC -g -c -Wall HBAAPILIB.c ${CC} -shared -Wl,-soname,libHBAAPI.so -o libHBAAPI.so version.o HBAAPILIB.o -rdynamic -ldl

2. I execute the haaapitest.
It show segmant fault error. I de bug the through the code, I found it get a invalid address after it use function strtok() . Google from web, it seem a error which include a wrong header file.
use strings.h . strtok() use a share memory to split the string, in the new libray it has been moved to string.h , so if you just use the strings.h it will casue the segmant fault error.

Use string.h replace the strings.h, this binary could be run succesfully.

Labels:


Comments: Post a Comment

Subscribe to Post Comments [Atom]





<< Home

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]

Scrape It
Free Hit Counters
Scrape It