HSBC Payment Integration on Unix

Associate
Joined
11 Mar 2003
Posts
1,328
Location
North Shields
Hi

I'm hoping someone can help here, and it's more of a Linux->Unix thing than a programming thing.

I've been asked to implement HSBC payment integration for a client. HSBC supply (amongst others) Linux and Windows libraries, and I've been asked to see if we can implement this on our dedicated Unix host.

Basically the system comprises of a library 'libCcCpiTools.so' and 'TestHash.e'. The library has been copied to /usr/lib on our server, and when I try doing './TestHash.e' I get an error message saying "ELF Binary Type 0 not known", which I understand is because it's a Linux executable and not a Unix one. Now, from what I've been reading I can use 'brandelf' to alter the binary type (which may or may not work) but when I try it, it says 'command not found'.

I contacted the host tech support and they can convert our server to Linux compatibility mode, at the cost of £50 + VAT. Basically I would like to know if this will definitely solve the problem, before I authorize the conversion. It might seem like a silly question but I'm just trying to cover my back here.

The alternative is to download a Unix distro and get it running at home before going ahead, but given my complete lack of Unix and Linux this will probably take up too much time and will probably not work in the end anyway.

If anyone could help us out with this I'd love to hear from them :-)

Cheers
 
It is FreeBSD based, and doing pgk_info | grep linux doesn't display anything. After doing a readelf on the executable, I can see that the OS/ABI is UNIX - SYSTEM V, but I'm not quite sure what that means.
 
Una said:
Try brandelf -t Linux TestHash.e

As per my original post, using brandelf results in 'command not found'. I can use 'readelf', but that doesn't help the situation really.

I have the C source and headers for the program, and it's been suggested that I try recompiling it on Unix but looking at the headers it's been specifically guarded against compiling on anything other than Linux, Windows and SunOS.

Think we're just going to have to risk the £50 and go ahead with the conversion. Is Linux compatibility mode pretty reliable? What I mean is, is this program guaranteed to run with this linux compatibility on?
 
Back
Top Bottom