dbTalk Databases Forums  

[BUGS] a problem, maybe not a bug

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] a problem, maybe not a bug in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
acvolcano
 
Posts: n/a

Default [BUGS] a problem, maybe not a bug - 11-08-2005 , 06:59 AM






hi,
I use the postgresql package for my embeded platform. while
cross-compile the package, It occurs an error and I can't dispose it.
Maybe your can give me some advise.
My configure file (as follows):

############
#!/bin/bash

rm config.cache config.status -f

CC=arm-linux-gcc \
CXX=arm-linux-g++ \
../configure --prefix=/usr/local/armlinux/arm-linux \
--build=i386-linux \
--host=arm-unknown-linux \
--without-readline

after configure, I use "make" command to compile the package, and
everything is ok. So
I use "make install" to install the package. An error occurs(as follows).

Entering directory `/home/acvolcano/mx21/mgis/postgresql-8.0.4/src/port'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/home/acvolcano/mx21/mgis/postgresql-8.0.4/src/port'
../zic -d /usr/local/armlinux/arm-linux/share/postgresql/timezone
../data/africa ./data/antarctica ./data/asia ./data/australasia
../data/europe ./data/northamerica ./data/southamerica ./data/pacificnew
../data/etcetera ./data/factory ./data/backward ./data/systemv
../data/solar87 ./data/solar88 ./data/solar89
../zic: ./zic: cannot execute binary file
make[2]: *** [install] Error 126
make[2]: Leaving directory
`/home/acvolcano/mx21/mgis/postgresql-8.0.4/src/timezone'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/acvolcano/mx21/mgis/postgresql-8.0.4/src'
make: *** [install] Error 2

Obviously, the error is usage of the binary file zic, which only can
execute in arm processor.
How can I correct the configure file? I just know a little about the
autoconf.

--
E-TEK CO.,LTD. Shenzhen
Tel: +086-0755-86167669


---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] a problem, maybe not a bug - 11-08-2005 , 08:48 AM






acvolcano <acvolcano (AT) gmail (DOT) com> writes:
Quote:
I use the postgresql package for my embeded platform. while
cross-compile the package, It occurs an error and I can't dispose it.
Sorry, we don't currently support cross-compilation, precisely because
the "zic" program has to be run during installation. There has been
some discussion about how to fix that, but getting it right in every
case seems unreasonably difficult :-(. You shouldn't have too much
trouble hacking it to work for your particular case though --- just
recompile zic using the host machine's compiler, or postpone running
the command until you're on the target.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.