we have come across a problem in 8.3.x (8.3.5 and 8.3.7 was tested)
while building PostgreSQL for 32-bit on 64-bit RHEL5 and Fedora 9.
The following defines were used before running configure:
export LD="ld -melf_i386"
The above are needed because when SUBSYS.o files are created,
the $(LD) ... lines don't contain $(LDFLAGS) anywhere, so overriding
$(LD) on the command line has to be done instead.
However, there's one additional problem that can be solved by the
attached one liner. The problem is that during building the core,
something (test/regress) requires contrib/spi/refint.so to be built.
The error follows:
make -C ../../../contrib/spi refint.so autoinc.so
make: Entering directory
gcc -m32 -Wall -Wmissing-prototypes -Wpointer-arith -Winline
-Wendif-labels -fno-strict-aliasing -fwrapv -fpic -DREFINT_VERBOSE -I.
-D_GNU_SOURCE -c -o refint.o refint.c
gcc -shared -o refint.so refint.o
/usr/bin/ld: i386 architecture of input file `refint.o' is incompatible
with i386:x86-64 output
I tried building contrib manually, but it turned out that the same
error happens whenever contrib/*/Makefile contains MODULES
instead of MODULE_big.
I modified Makefile.port in the attached patch, and now
all the contrib files also build correctly.
Bible has answers for everything. Proof:
"But let your communication be, Yea, yea; Nay, nay: for whatsoever is more
than these cometh of evil." (Matthew 5:37) - basics of digital technology.
"May your kingdom come" - superficial description of plate tectonics
Cybertec Schönig & Schönig GmbH
pgsql-hackers by date
|Next:||From: Paul Matthews||Date: 2009-08-27 09:46:29|
|Subject: Patches for static check on geo_ops.c|
|Previous:||From: Tino Wildenhain||Date: 2009-08-27 08:23:20|
|Subject: Re: MySQL Compatibility WAS: 8.5 release timetable, again|