--- supported-platforms.mdwn 2008/12/02 22:13:59 1.12 +++ supported-platforms.mdwn 2008/12/02 22:18:23 1.13 @@ -30,51 +30,51 @@ Try putting the followign into /usr/local/include/pcc/alloca.h: -#ifndef _ALLOCA_H -#define _ALLOCA_H + #ifndef _ALLOCA_H + #define _ALLOCA_H -#include <features.h> + #include <features.h> -#define __need_size_t -#include <stddef.h> + #define __need_size_t + #include <stddef.h> -__BEGIN_DECLS + __BEGIN_DECLS -/* Remove any previous definitions. */ -#undef alloca + /* Remove any previous definitions. */ + #undef alloca -/* Allocate a block that will be freed when the calling function exits. */ -extern void *alloca (size_t __size) __THROW; + /* Allocate a block that will be freed when the calling function exits. */ + extern void *alloca (size_t __size) __THROW; -#if defined(__GNUC__) || defined(__PCC__) -# define alloca(size) __builtin_alloca (size) -#endif /* GCC. */ + #if defined(__GNUC__) || defined(__PCC__) + # define alloca(size) __builtin_alloca (size) + #endif /* GCC. */ -__END_DECLS + __END_DECLS -#endif /* alloca.h */ + #endif /* alloca.h */ __Ubuntu Linux: Intrepid Ibex 8.10__ You must build and install the pcc-libs module which contains libpcc.a and stddef.h header files. -me@MY-BOX:~$ cvs -d :pserver:anonymous@pcc.ludd.ltu.se:/cvsroot co pcc-libs -me@MY-BOX:~$ cd pcc-libs -me@MY-BOX:~/pcc-libs$ ./configure -me@MY-BOX:~/pcc-libs$ make -me@MY-BOX:~/pcc-libs$ sudo make install + me@MY-BOX:~$ cvs -d :pserver:anonymous@pcc.ludd.ltu.se:/cvsroot co pcc-libs + me@MY-BOX:~$ cd pcc-libs + me@MY-BOX:~/pcc-libs$ ./configure + me@MY-BOX:~/pcc-libs$ make + me@MY-BOX:~/pcc-libs$ sudo make install Then build and install pcc -me@MY-BOX:~$ cvs -d :pserver:anonymous@pcc.ludd.ltu.se:/cvsroot co pcc -me@MY-BOX:~$ cd pcc -me@MY-BOX:~/pcc$ ./configure -me@MY-BOX:~/pcc$ gedit cc/cpp/Makefile cc/ccom/Makefile& + me@MY-BOX:~$ cvs -d :pserver:anonymous@pcc.ludd.ltu.se:/cvsroot co pcc + me@MY-BOX:~$ cd pcc + me@MY-BOX:~/pcc$ ./configure + me@MY-BOX:~/pcc$ gedit cc/cpp/Makefile cc/ccom/Makefile& delete the "-Werror" from the "CFLAGS =" line in both files and save -me@MY-BOX:~/pcc$ make -me@MY-BOX:~/pcc$ sudo make install + me@MY-BOX:~/pcc$ make + me@MY-BOX:~/pcc$ sudo make install __MidnightBSD-current (i386/sparc64)__
Powered by rcshistory.cgi 0.3