[Libcgi-general] src/string.c:587: incompatible type for argument 2 of `__builtin_va_copy'
Brought to you by:
rafaelsteil
From: Vasiliy N. <va...@ya...> - 2005-04-06 14:50:16
|
Hello, My gcc: root@(none):/home/vasya/install/libcgi-1.0/src# gcc -v Reading specs from /usr/lib/gcc-lib/sh4-linux/3.0.3/specs Configured with: ../configure --host=sh4-linux --build=i686-pc-linux-gnu --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/share --mandir=/usr/share/man --infodir=/usr/share/info --target=sh4-linux --enable-shared --enable-languages=c,c++ --enable-threads --disable-c99 --with-system-zlib --with-cpu=sh4 Thread model: posix gcc version 3.0.3 (STMicroelectronics/Linux Base 3.0.3-3) when I compile, it puts error: cc -c -o src/string.o src/string.c src/string.c: In function `make_string': src/string.c:587: incompatible type for argument 2 of `__builtin_va_copy' make: *** [src/string.o] Error 1 I changed line 587 from: 587 va_copy(bkp, str); to: 587 va_copy(bkp, ptr); And it compiled it without errors. |