configure ok; make failure of octave-2.9.17

John W. Eaton jwe at bevo.che.wisc.edu
Mon Dec 3 13:52:19 CST 2007


On  2-Dec-2007, David Bateman wrote:

| Hans-Jürgen Greif wrote:
| > Dear David Batemam,
| > 
| > thank you  for your tip.  Today pcre was updated and  I have commented 
| > out the whole block in regexp.cc:
| > /*
| > c#if defined (HAVE_PCRE_PCRE_H)
| > c#include <pcre/pcre.h>
| > c#elif defined (HAVE_PCRE_H)
| > c#include <pcre.h>
| > c#elif defined (HAVE_REGEX)
| > c#if defined (__MINGW32__)
| > c#define __restrict
| > #endif
| > #include <regex.h>
| > #endif
| > */
| > and have set simply
| > 
| > #include <sys/types.h>
| > #include <regex.h>
| > 
| > and it works.
| > 
| > Best regards,
| >  gre
| 
| I presume that worked only because you didn't reconfigure Octave after
| commentting out that block and the pcre libraries was therefore not
| used.. The above will break pcre. In any case it therefore seems that
| this issue is indeed the missing sys/types.h include.. John, please
| consider the attached patch.

| 2007-12-02  David Bateman  <dbateman at free.fr>
| 
| 	* DLD-FUNCTIONS/regexp.cc: Also include sys/types.h for regexp.

I made this change, but also protected sys/types.h with #if defined
(HAVE_SYS_TYPES_H).

Thanks,

jwe



More information about the Bug-octave mailing list