I'm getting a little suspicious of the htole16 macro used in device.cpp,
Device::WriteECPChannel(). I wrote this test code and tried it on both of
my boxes, the AMD64 box and the powerpc. The output was the same on both
boxes:
--------------------------------------
#include <iostream>
#include "hpiod.h"
using namespace std;
int
main(int argc, char* argv[])
{
unsigned short value = 1;
cout << "Value: " << value << endl;
cout << "hotle16(value): " << htole16(value) << endl;
return 0;
}
-------------------------------------------------------------------
But, I'm not sure if I built my test executables correctly. I see the
#define WORDS_BIGENDIAN controls this macro but I don't understand exactly
how the configure stuff sets it up. Perhaps WORDS_BIGENDIAN is not getting
defined on the powerpc platform. In any case, this macro might deserve some
scrutiny.
Regards,
Russ Krayer
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
HPLIP-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hplip-devel