porting: Linux to Freebsd
Lowell Gilbert
freebsd-ports-local at be-well.ilk.org
Mon Jun 8 22:00:07 UTC 2009
Robert Huff <roberthuff at rcn.com> writes:
> Peter Jeremy writes:
>
>
>> >> > for ac_remove_CFLAG in "-O1" "-O2" "-O3" ; do
>> >> > CFLAGS=${CFLAGS//${ac_remove_CFLAG}/}
>> >> > CPPFLAGS=${CPPFLAGS//${ac_remove_CFLAG}/}
>> >> > CXXFLAGS=${CXXFLAGS//${ac_remove_CFLAG}/}
>> >> > done
>> >>
>> >> Quick try:
>> >> CFLAGS=`echo $CFLAGS | sed -e 's:-O[123]::g'`
>> >
>> > No change here either.
>>
>> Obvious question but if you edited configure.ac, you did remember to
>> rerun autoconf afterwards didn't you?
>
> Uh ... no. (When I said "complete novice", wasn't kidding. :-)
> Ran autoconf(-2.62).
> That seems to have fixed the "configure" stage.
> I'm into compilation, and:
>
> /usr/include/malloc.h:3:2: error: #error "<malloc.h> has been replaced by <stdlib.h>"
Whichever file is being compiled has a line that should be changed from
#include <malloc.h>
to
#include <stdlib.h>
More information about the freebsd-ports
mailing list