This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

troubles compiling for powerpc, function is not a prototype


H all,

	I'm trying to build libc from a i386 platform
to compile for powerpc-apple-darwin .

	unfortunatelly, compilation fails at syslog.o,
and I found no explanation for this.

	I'm including the errors at the end of my message,
any help would be great :)


make[2]: Entering directory `/macosx/src/libc/misc'
gcc syslog.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes 
-Wwrite-strings -g   -fexceptions   -I../include -I. 
-I/macosx/src/libc-build/misc -I.. -I../libio  -I/macosx/src/libc-build 
-I../sysdeps/i386/elf -I../sysdeps/unix/sysv/linux/i386/i686 
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux 
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386/i686 
-I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv 
-I../sysdeps/unix/i386/i686 -I../sysdeps/unix/i386 -I../sysdeps/unix 
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 
-I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 
-I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I 
/lib/modules/2.4.20-8/build/include  -include ../include/libc-symbols.h       
-o /macosx/src/libc-build/misc/syslog.o -MD -MP -MF 
/macosx/src/libc-build/misc/syslog.o.dt
syslog.c: In function `openlog':
syslog.c:381: warning: function declaration isn't a prototype
syslog.c:392: warning: function declaration isn't a prototype
syslog.c: In function `closelog':
syslog.c:408: warning: function declaration isn't a prototype
syslog.c:417: error: syntax error at end of input
syslog.c:76: warning: `openlog_internal' declared `static' but never 
defined
syslog.c:77: warning: `closelog_internal' declared `static' but never 
defined
syslog.c:78: warning: `sigpipe_handler' declared `static' but never 
defined
make[2]: *** [/macosx/src/libc-build/misc/syslog.o] Error 1



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]