Hello Matthias,
I don't have a patch, because I don't know enough about backage building and the available make variables. But I think I found where a change is needed.
I tried to build capi4hylafax from source package on my fax server (dual Pentium pro) using apt-get source, apt-get build-dep, dpkg- buildpackage -rfakeroot -b.
I noticed some compiler warnings
../standard/osmem.h: In function `void* getPtr(tUByte*)':
../standard/osmem.h:98: warning: cast to pointer from integer of different size
../standard/osmem.h: In function `void setPtr(tUByte*, void*)':
../standard/osmem.h:218: warning: cast from pointer to integer of different size
I extracted the binaries c2faxsend and c2faxrecv from the package and copied them to /usr/bin. c2faxrecv crashed when receiving a fax.
It looks as if C_PLATFORM_64 was defined on my non-64-bit system.
To check this I commented out these lines in debian/rules:
ifeq ($(DEB_TARGET_ARCH), $(findstring $(DEB_TARGET_ARCH),amd64 ia64 ppc64))
CXXFLAGS += -DC_PLATFORM_64
endif
Now I don't get the warnings and c2faxrecv works as expected. (I did not check c2faxsend.)
The condition for -DC_PLATFORM_64 seems to be wrong.
As a further check I inserted a command for debugging at the dependency build: in debian/rules
build: build-stamp echo DEB_TARGET_ARCH = $(DEB_TARGET_ARCH)
When making the package it shows that DEB_TARGET_ARCH is empty.
Obviously an empty value $(DEB_TARGET_ARCH) must be handled specifically. (Or it's not the right variable to check.)
Bodo
-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]