Thread (3 messages) 3 messages, 3 authors, 2000-07-14

Re: What causes this error on LinuxPPC?

flat view

From: Franz Sirl <hidden>
Date: 2000-07-14 11:30:34

At 06:24 14.07.00, ian geiser wrote:
Greetings

    I am trying to compile a program using gcc version 2.95.3 19991030
(prerelease/franzo/20000622)

    for some reason i get this error.  I do not get this error on my
stock Linux Mandrake 7.1

    box though.  Any ideas?

gencode.o: In function `prcode':
gencode.o(.text+0x8bf0): undefined reference to `__va_arg_type_violation'
gencode.o(.text+0x8bf0): relocation truncated to fit: R_PPC_REL24
__va_arg_type_violation
collect2: ld returned 1 exit status
The source in gencode.c is buggy, change this illegal C line:

       char c = va_arg(ap,char);

to the correct one

       char c = (char) va_arg(ap,int);

and you should be fine.

Franz.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help