> So to reiterate, what is the 'official' way to build an 32-bit
> .rpm on a 64-bit host?
I finished the cross 32-bit/64-bit build on openSUSE, with following list of
issues:
- '-32bit' postfixed packages had to be installed first. Now documented in
INSTALL.
- gpm-devel isn't recognized on openSUSE 11.2, it uses the name 'gpm' [TOFIX]
- '--without x11' had to be used, otherwise it fails with error in dynlib
generation phase.
I'm not sure if it's missing package or something missing from our .mk files.
[TOFIX?]
As far as I can tell, a libX11.so lib _was_ installed in 32-bit lib dir.
- curl had to be manually deleted from harbour.spec, since I found no better
way to suppress it and it causes problems because libcurl developers decided
(around 7.19.x)
to use to platform dependent header files, which fail in cross-platform
situations.
[ pretty bad direction, so it's good to look around for a better replacement.
]
This was the error, for reference:
/usr/include/curl/curlrules.h:144: error: size of array ‘__curl_rule_01__’
is negative
/usr/include/curl/curlrules.h:154: error: size of array ‘__curl_rule_02__’
is negative
[TOFIX: Find a way to suppress it for such cross-builds]
- -m32 option had to be manually added to harbour.spec CFLAFGS/LDFLAGS/DFLAGS
build options to force 32-bit build.
[TOFIX]
- the generated .rpm had the postfix 'sus112.x86_64' because mpkg_rpm.sh
doesn't
recognize this cross-build situation.
[TOFIX]
I'd appreciate if Linux experts could help addressing these.
Brgds,
Viktor
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour