Date: Tue, 09 Jun 2009 12:11:02 +0200 From: Alexander Leidinger <Alexander@Leidinger.net> To: Robert Huff <roberthuff@rcn.com> Cc: ports@freebsd.org, Peter Jeremy <peterjeremy@optushome.com.au> Subject: Re: porting: Linux to Freebsd Message-ID: <20090609121102.14382to1yy5k2so4@webmail.leidinger.net> In-Reply-To: <18989.30314.432802.548214@jerusalem.litteratus.org> 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
Quoting Robert Huff <roberthuff@rcn.com> (from Mon, 8 Jun 2009 16:36:58 -0400): > 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. :-) Not knowing C/++ when you want to port a C/C++ program makes it very hard for you to reach your goal... > 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>" You didn't provide enough info. There should have been a line or two more which referenced files in the src of what you want to compile. In those places you have to replace the '#include <malloc.h>' with '#include <stdlib.h>'. Bye, Alexander. Bye, Alexander. -- 1.79 x 10^12 furlongs per fortnight -- it's not just a good idea, it's the law! http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090609121102.14382to1yy5k2so4>