Re: porting: Linux to Freebsd

2010-10-03 Thread Charlie Kester
On Fri 01 Oct 2010 at 23:42:30 PDT Chetan Shukla wrote: Hi, Could someone please outline the steps needed in porting a general application from Linux to FreeBSD. As others have already pointed out, there are no shortcuts to the righthand side of the learning curve. For most apps, the usual "co

Re: porting: Linux to Freebsd

2010-10-02 Thread Eitan Adler
On Sat, Oct 2, 2010 at 2:42 AM, Chetan Shukla wrote: > Hi, > Could someone please outline the steps needed in porting a general > application from > Linux to FreeBSD. > > > Thanks & Regards, > Chetan You may want to have a look at http://wiki.freebsd.org/AvoidingLinuxisms If you ask a more speci

Re: porting: Linux to Freebsd

2010-10-02 Thread Dominic Fandrey
On 02/10/2010 08:42, Chetan Shukla wrote: > Hi, > Could someone please outline the steps needed in porting a general > application from > Linux to FreeBSD. If the thing is not tightly coupled to the kernel, the general compile guide to the software you try to compile will suffice most of the time

Re: porting: Linux to Freebsd

2010-10-02 Thread Julian H. Stacey
> On 02/10/2010 07:42:30, Chetan Shukla wrote: > > > Could someone please outline the steps needed in porting a general appl= > ication from > > Linux to FreeBSD. > > Step 1) Spend time (probably several years) achieving a reasonable level > of expertise in the languages and concepts involved. .

Re: porting: Linux to Freebsd

2010-10-02 Thread Torfinn Ingolfsen
Or you could simply start at step 3, then for every problem you have in step 4, Google it. For the problems you cannot fix that way, ask (smart) questions on the appropriate FreeBSD mailing lists, until the application compiles. Then continue to step 5. Note: the learning curve will be steep, take

Re: porting: Linux to Freebsd

2010-10-02 Thread Matthew Seaman
On 02/10/2010 07:42:30, Chetan Shukla wrote: > Could someone please outline the steps needed in porting a general > application from > Linux to FreeBSD. Step 1) Spend time (probably several years) achieving a reasonable level of expertise in the languages and concepts involved. Step 2) During t

porting: Linux to Freebsd

2010-10-02 Thread Chetan Shukla
Hi, Could someone please outline the steps needed in porting a general application from Linux to FreeBSD. Thanks & Regards, Chetan "DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed.

Re: porting: Linux to Freebsd

2009-06-22 Thread Matthias Andree
Am 08.06.2009, 21:15 Uhr, schrieb Peter Jeremy : On 2009-Jun-08 11:33:27 -0400, Robert Huff wrote: Alexander Leidinger writes: > Right: I re-ran under bash, and got the same problems. > Looking at configure.ac, I see: > > AC_PATH_PROG(YACC,byacc,no) > if test "x$YACC" == "xno" Th

Re: porting: Linux to Freebsd

2009-06-09 Thread Robert Huff
Alexander Leidinger writes: > >Quick checking suggests libttf is a Linux-ism, replaced by > > libfreetype. Is this correct, and if so can I just (temporarily) > > make the change in the list of libraries? > > Why not just try it? > > Note, there is/was freetype1 and freetype2...

Re: porting: Linux to Freebsd

2009-06-09 Thread Alexander Leidinger
Quoting Robert Huff (from Tue, 9 Jun 2009 08:34:46 -0400): Alexander Leidinger writes: >> 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

Re: porting: Linux to Freebsd

2009-06-09 Thread Boris Kochergin
Robert Huff wrote: Alexander Leidinger writes: >> 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++ progra

Re: porting: Linux to Freebsd

2009-06-09 Thread Robert Huff
Alexander Leidinger writes: > >> 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

Re: porting: Linux to Freebsd

2009-06-09 Thread Alexander Leidinger
Quoting Robert Huff (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

Re: porting: Linux to Freebsd

2009-06-08 Thread Boris Kochergin
Robert Huff wrote: Robert Huff writes: Done. Merrily compiling away. New problem. One of the files has: #ifdef LINUX #include #endif What is the FreeBSD magic tag corresponding to "LINUX"? "__FREEBSD__"? Robert Huff

Re: porting: Linux to Freebsd

2009-06-08 Thread Robert Huff
Robert Huff writes: > Done. Merrily compiling away. New problem. One of the files has: #ifdef LINUX #include #endif What is the FreeBSD magic tag corresponding to "LINUX"? "__FREEBSD__"? Robert Huff __

Re: porting: Linux to Freebsd

2009-06-08 Thread Robert Huff
Lowell Gilbert writes: > > /usr/include/malloc.h:3:2: error: #error " has been replaced by > " > > Whichever file is being compiled has a line that should be changed from > #include > to > #include Done. Merrily compiling away. _

Re: porting: Linux to Freebsd

2009-06-08 Thread Lowell Gilbert
Robert Huff 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 >> >>

Re: porting: Linux to Freebsd

2009-06-08 Thread Robert Huff
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: > >> CFLA

Re: porting: Linux to Freebsd

2009-06-08 Thread Peter Jeremy
On 2009-Jun-08 11:33:27 -0400, Robert Huff wrote: >Alexander Leidinger writes: >> > Right: I re-ran under bash, and got the same problems. >> > Looking at configure.ac, I see: >> > >> > AC_PATH_PROG(YACC,byacc,no) >> > if test "x$YACC" == "xno" >> >> This should be a "=", not a "==". >

Re: porting: Linux to Freebsd

2009-06-08 Thread Robert Huff
Alexander Leidinger writes: > >Right: I re-ran under bash, and got the same problems. > >Looking at configure.ac, I see: > > > > AC_PATH_PROG(YACC,byacc,no) > > if test "x$YACC" == "xno" > > This should be a "=", not a "==". Same result. > >Relevant bit is: > > > >

Re: porting: Linux to Freebsd

2009-06-08 Thread Alexander Leidinger
Quoting Robert Huff (from Mon, 8 Jun 2009 09:53:29 -0400): Alexander Leidinger writes: > First problem: Looks like bash-isms in configure. for (i = 0; i < 10; i++) hit_forehead_with_desk(); I had already figured out replacing "make" with "gmake"; this should have be

Re: porting: Linux to Freebsd

2009-06-08 Thread Robert Huff
Alexander Leidinger writes: > >First problem: > > Looks like bash-isms in configure. for (i = 0; i < 10; i++) hit_forehead_with_desk(); I had already figured out replacing "make" with "gmake"; this should have been obvious. > > >When following the instructions he

Re: porting: Linux to Freebsd

2009-06-08 Thread Alexander Leidinger
Quoting Robert Huff (from Mon, 8 Jun 2009 08:07:08 -0400): First problem: Looks like bash-isms in configure. When following the instructions here "http://ctp2.darkdust.net/anonsvn/branches/linux/doc/README.linux"; I get to step 2 ("configure") and get this: appending conf

Re: porting: Linux to Freebsd

2009-06-08 Thread Peter Jeremy
On 2009-Jun-08 01:01:32 -0400, Robert Huff wrote: > Is there anyone out there with experience porting from Linux to >FreeBSD and/or writing code for both who can spare a few cycles to >help a complete novice figure out what's different (and how to fix >it)? That's an extremely open-ended qu

Re: porting: Linux to Freebsd

2009-06-08 Thread Alexander Leidinger
Quoting Robert Huff (from Mon, 8 Jun 2009 01:01:32 -0400): Is there anyone out there with experience porting from Linux to FreeBSD and/or writing code for both who can spare a few cycles to help a complete novice figure out what's different (and how to fix it)? Have a look at http:

porting: Linux to Freebsd

2009-06-07 Thread Robert Huff
Is there anyone out there with experience porting from Linux to FreeBSD and/or writing code for both who can spare a few cycles to help a complete novice figure out what's different (and how to fix it)? Respectfully, Robert Huff