Date: 12/29/00
- Next message: Iain Donaldson: "[PHP] Problem compiling PHP 4.0.4 on FreeBSD 2.2.7 [ld: -lmcrypt :no ma tch]"
- Previous message: Hooligan: "[PHP] PHP problems."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Having some problems compiling the gd library on FreeBSD 2.2.7. I've
modified the makefile to include all the changes to where stuff should go
and ensured that there is a specific reference to the gd-1.8.3 directory in
both include and library paths prior to the system (/usr/local/include)
path.
No matter what combination I try, this is the result:
% make
gcc -I. -I/usr/home/iainad/src/gd-1.8.3 -I/usr/local/include -O -DHAVE_XPM
-DHAVE_JPEG -DHAVE_LIBTTF -c gd.c
In file included from gd.c:2:
/usr/local/include/malloc.h:65: warning: parameter names (without types) in
function declaration
/usr/local/include/malloc.h:66: warning: parameter names (without types) in
function declaration
/usr/local/include/malloc.h:67: parse error before `size_t'
/usr/local/include/malloc.h:68: warning: parameter names (without types) in
function declaration
/usr/local/include/malloc.h:69: warning: parameter names (without types) in
function declaration
/usr/local/include/malloc.h:70: warning: parameter names (without types) in
function declaration
/usr/local/include/malloc.h:71: warning: parameter names (without types) in
function declaration
/usr/local/include/malloc.h:72: parse error before `size_t'
/usr/local/include/malloc.h:81: parse error before `*'
/usr/local/include/malloc.h:82: parse error before `*'
/usr/local/include/malloc.h:87: parse error before `*'
*** Error code 1
Stop.
%
This seems to be an issue with various definitions in the standard malloc.h
file where the definitions of some of the malloc processes are, e.g.:
line 65: extern univptr_t malloc __proto((size_t));
This is the first include file in gd.c which implies there is some sort of
compiler flag missing. The first few lines of gd.c are:
#ifndef _OSD_POSIX /* _OSD_POSIX defines *alloc() in stdlib.h */
#include <malloc.h>
#endif /*_OSD_POSIX*/
Any help appreciated. I'm sure I'm missing something simple.
Thanks
..Iain
-- Iain Donaldson iain <email protected>
- Next message: Iain Donaldson: "[PHP] Problem compiling PHP 4.0.4 on FreeBSD 2.2.7 [ld: -lmcrypt :no ma tch]"
- Previous message: Hooligan: "[PHP] PHP problems."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

