Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Jun 2009 17:33:25 -0400
From:      Lowell Gilbert <freebsd-ports-local@be-well.ilk.org>
To:        Robert Huff <roberthuff@rcn.com>
Cc:        ports@freebsd.org
Subject:   Re: porting: Linux to Freebsd
Message-ID:  <44y6s25s2i.fsf@be-well.ilk.org>
In-Reply-To: <18989.30314.432802.548214@jerusalem.litteratus.org> (Robert Huff's message of "Mon\, 8 Jun 2009 16\:36\:58 -0400")
References:  <18988.39724.572280.687111@jerusalem.litteratus.org> <20090608082930.GD9529@server.vk2pj.dyndns.org> <18988.65260.635443.439491@jerusalem.litteratus.org> <20090608143519.1866665ogux2b8g0@webmail.leidinger.net> <18989.6105.484074.889552@jerusalem.litteratus.org> <20090608164014.131052xgwiww9bks@webmail.leidinger.net> <18989.12103.858035.873279@jerusalem.litteratus.org> <20090608191539.GF9529@server.vk2pj.dyndns.org> <18989.30314.432802.548214@jerusalem.litteratus.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Robert Huff <roberthuff@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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44y6s25s2i.fsf>