=?iso-8859-1?Q?Lars_J=F8rgensen?= <5400213m001(at)stofanet(dot)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
In response to
pgsql-ports by date
|Next:||From: Tom Lane||Date: 2006-07-03 03:39:13|
|Subject: Re: PostgreSQL and Kerberos 5 on Solaris |
|Previous:||From: James Gates||Date: 2006-06-30 15:55:17|
|Subject: PostgreSQL and Kerberos 5 on Solaris|