Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Apr 2005 10:23:14 -0400
From:      "John W. Eaton" <jwe@bevo.che.wisc.edu>
To:        Joan Picanyol i Puig <lists-octave@biaix.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: issues compiling octave-2.1.69 on FreeBSD 5.4
Message-ID:  <17001.2258.64534.72369@devzero.bogus.domain>
In-Reply-To: <20050422130841.GB40624@grummit.biaix.org>
References:  <20050420175047.GB29990@grummit.biaix.org> <42674D94.7070108@gmail.com> <20050421155406.GB86490@grummit.biaix.org> <16999.53351.603626.223836@devzero.bogus.domain> <20050421191441.GB9754@grummit.biaix.org> <16999.65302.366221.91861@devzero.bogus.domain> <20050422130841.GB40624@grummit.biaix.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 22-Apr-2005, Joan Picanyol i Puig <lists-octave@biaix.org> wrote:

| > Also, can you determine precisely which fnmatch.h file is being
| > included?
| 
| I don't know how to.

If you are using GCC and add -save-temps to CXXFLAGS, then you will
get .ii files for each .cc file that is compiled.  Those files
contain the output from the preprocessor, which should include the
full file names of all the files included.

| > Does it include lines like
| > 
| >   #ifdef	__cplusplus
| >   extern "C" {
| >   #endif
| > 
| >   #ifdef	__cplusplus
| >   }
| >   #endif
| > 
| > around the contents of the file?
| 
| None of them do.
| 
| > If not, does changing the line
| > 
| >   #include <fnmatch.h>
| > 
| > in liboctave/glob-match.h to be
| > 
| >   extern "C" {
| >   #include <fnmatch.h>
| >   }
| 
| My liboctave/glob-match.h does not #include <fnmatch.h> (this is after
| applying your patch to configure.in and running autogen.sh).

Oops, I meant liboctave/glob-match.cc.  It also includes glob.h, so
maybe the lines will need to be changed from

   #include <fnmatch.h>
   #include <glob.h>

to

   extern "C" {
   #include <fnmatch.h>
   #include <glob.h>
   }

jwe



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