Subject: graphics/gle on fbsd 5.2.1-rc
To: None <tech-pkg@netbsd.org>
From: Michal Pasternak <michal@pasternak.w.lub.pl>
List: tech-pkg
Date: 03/30/2004 20:25:48
That's gcc-3.3.3 + XFree86 from pkgsrc + fbsd 5.2


-I/usr/obj/pkgsrc/graphics/gle/work.j1/.buildlink/include/freetype2 -p
ipe -Wall -Wall -pedantic -Wstrict-prototypes -Wconversion -c ex_alpha.c
-fPIC
-DPIC -o .libs/ex_alpha.o
In file included from port.h:200,
                 from ex_alpha.c:16:

/usr/obj/pkgsrc/graphics/gle/work.j1/.x11-buildlink/include/GL/glu.h:273:
warning: function declaration isn't a prototype
In file included from ex_angle.c:21,
                 from ex_alpha.c:52:
		 /usr/include/malloc.h:3:2: #error "<malloc.h> has been
replaced by <stdlib.h>"
In file included from ex_cut_round.c:23,
                 from ex_alpha.c:53:
		 /usr/include/malloc.h:3:2: #error "<malloc.h> has been
replaced by <stdlib.h>"
In file included from ex_raw.c:20,
                 from ex_alpha.c:54:
		 /usr/include/malloc.h:3:2: #error "<malloc.h> has been
replaced by <stdlib.h>"
In file included from extrude.c:19,
                 from ex_alpha.c:55:
		 /usr/include/malloc.h:3:2: #error "<malloc.h> has been
replaced by <stdlib.h>"
In file included from round_cap.c:15,
                 from ex_alpha.c:56:
		 /usr/include/malloc.h:3:2: #error "<malloc.h> has been
replaced by <stdlib.h>"
In file included from segment.c:19,
                 from ex_alpha.c:57:
		 /usr/include/malloc.h:3:2: #error "<malloc.h> has been
replaced by <stdlib.h>"
*** Error code 1

Stop.
bmake: stopped in /usr/obj/pkgsrc/graphics/gle/work.j1/gle-3.1.0/src
*** Error code 1

Stop.
bmake: stopped in /usr/obj/pkgsrc/graphics/gle/work.j1/gle-3.1.0
*** Error code 1


What helps? Heh, buildlinking /usr/include/stdlib.h as
WRKSRC/.buildlink/include/malloc.h . Why patch, when there's buildlink? :)