[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Error recompiling latest 4.1.1 test release on ppc



On Wed, Mar 12, 2003 at 08:27:20PM +0100, Matthias Saou wrote:
> Jeff Johnson <jbj@redhat.com> wrote :
> 
> > Try getting the elfutils-0.76 package from Raw Hide to compile. That's
> > what is (reluctantly) internal to rpm sources, and where you are failing.
> > rpm-4.1.1 will (or should) detect and link against external elfutils if
> > present.
> 
> Grabbed the 0.76-2 source rpm... removed the gcc 3.2 build dependency as I
> "only" have 2.96 (from the changelogs, I understood that it was a needed
> requirement moslty for x86_64 anyway), but get the following:
> 
> [...]
> if gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -I. -I../../libelf -I.. -I../../libelf
> -I../../lib -I..   -Wall -Werror -g -O2 -MT gelf_rawchunk.o -MD -MP -MF
> ".deps/gelf_rawchunk.Tpo" \
>   -c -o gelf_rawchunk.o `test -f '../../libelf/gelf_rawchunk.c' || echo
> '../../libelf/'`../../libelf/gelf_rawchunk.c; \
> then mv ".deps/gelf_rawchunk.Tpo" ".deps/gelf_rawchunk.Po"; \
> else rm -f ".deps/gelf_rawchunk.Tpo"; exit 1; \
> fi
> ../../libelf/gelf_rawchunk.c: In function `gelf_rawchunk':
> ../../libelf/gelf_rawchunk.c:54: parse error before `char'

Ah yes, C99 madness. I've back-ported to good old C, you can find changes
necessary by doing
	cvs -d :pserver:anonymous@cvs.rpm.org:/cvs/devel login
	(no password, just carriage return)
	cvs -d :pserver:anonymous@cvs.rpm.org:/cvs/devel get elfutils
	cd elfutils
	cvs diff -r elfutils-0_76
Ignore all the Makefile.am crap, just use the *.[ch] file diffs.

You will *still* be better off factoring elfutils code out of rpm for Yellow
Dog. I carry elfutils only because rpm needs the API and I have no other means
to access the API on Red Hat 8.0 or Red Hat 7x.

> > BTW, I have no idea how solid elfutils on ppc is atm. It's "working"
> > here, but that ain't quite "solid".
> 
> Well, "working" would be a good start for me :-)

Try "make check" in elfutils, there are test cases.

73 de Jeff

-- 
Jeff Johnson	ARS N3NPQ
jbj@redhat.com (jbj@jbj.org)
Chapel Hill, NC





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []