=?iso-8859-1?Q?Lars_J=F8rgensen?= <5400213m001@stofanet.dk> writes:
> I'm working with a postgreSQL database, which I must install on a powerpc. =
> The OS of the powerpc does not contain a compiler, so I need to cross =
> compile it on a ordinary linux and then copy it to the powerpc.
Cross-compiles are seldom fun :-(
> gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline =
> -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing zic.o =
> ialloc.o scheck.o localtime.o -L../../src/port =
> -Wl,-rpath,/usr/local/powerpc/pgsql/lib-lpgport -lcrypt -lresolv -lnsl =
> -ldl -lm -o zic
> /usr/bin/ld: zic.o: Relocations in generic ELF (EM: 20)
> zic.o: could not read symbols: File in wrong format
gcc and /usr/bin/ld seem not to be on the same wavelength about what
they are doing. Are you sure your crosscompile setup works at all?
I'd suggest working on a "hello world"-type program until you've got
the bugs out of that.
regards, tom lane