Issue in compilation of source code

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue in compilation of source code

Himanshu Bhadani
Hello everyone,

I'm trying to compile the cloned source code from hg but compilation getting failed with error listed below;

config.status: creating oct-conf-post.h-tmp
config.status: executing oct-conf-post.h commands
  GEN      liboctave/external/mk-f77-def.sh
config.status: creating liboctave/external/mk-f77-def.sh-tmp
config.status: executing liboctave/external/mk-f77-def.sh commands
  CXX      liboctave/util/liboctave_util_libutil_la-lo-regexp.lo
liboctave/util/lo-regexp.cc: In member function ‘void octave::regexp::free()’:
liboctave/util/lo-regexp.cc:66:30: error: ‘pcre’ does not name a type
       pcre_free (static_cast<pcre *> (data));
                              ^~~~
liboctave/util/lo-regexp.cc:66:35: error: expected ‘>’ before ‘*’ token
       pcre_free (static_cast<pcre *> (data));
                                   ^
liboctave/util/lo-regexp.cc:66:35: error: expected ‘(’ before ‘*’ token
liboctave/util/lo-regexp.cc:66:36: error: expected primary-expression before ‘>’ token
       pcre_free (static_cast<pcre *> (data));
                                    ^
liboctave/util/lo-regexp.cc: In member function ‘void octave::regexp::compile_internal()’:
liboctave/util/lo-regexp.cc:233:43: error: ‘PCRE_CASELESS’ was not declared in this scope
       = (  (options.case_insensitive () ? PCRE_CASELESS : 0)
                                           ^~~~~~~~~~~~~
liboctave/util/lo-regexp.cc:234:47: error: ‘PCRE_DOTALL’ was not declared in this scope
          | (options.dotexceptnewline () ? 0 : PCRE_DOTALL)
                                               ^~~~~~~~~~~
liboctave/util/lo-regexp.cc:235:38: error: ‘PCRE_MULTILINE’ was not declared in this scope
          | (options.lineanchors () ? PCRE_MULTILINE : 0)
                                      ^~~~~~~~~~~~~~
liboctave/util/lo-regexp.cc:236:38: error: ‘PCRE_EXTENDED’ was not declared in this scope
          | (options.freespacing () ? PCRE_EXTENDED : 0));
                                      ^~~~~~~~~~~~~
liboctave/util/lo-regexp.cc:238:12: error: ‘pcre_compile’ was not declared in this scope
     data = pcre_compile (buf_str.c_str (), pcre_options,
            ^~~~~~~~~~~~
liboctave/util/lo-regexp.cc:238:12: note: suggested alternative: ‘compile’
     data = pcre_compile (buf_str.c_str (), pcre_options,
            ^~~~~~~~~~~~
            compile
liboctave/util/lo-regexp.cc: In member function ‘octave::regexp::match_data octave::regexp::match(const string&)’:
liboctave/util/lo-regexp.cc:259:5: error: ‘pcre’ was not declared in this scope
     pcre *re = static_cast<pcre *> (data);
     ^~~~
liboctave/util/lo-regexp.cc:259:11: error: ‘re’ was not declared in this scope
     pcre *re = static_cast<pcre *> (data);
           ^~
liboctave/util/lo-regexp.cc:259:11: note: suggested alternative: ‘rem’
     pcre *re = static_cast<pcre *> (data);
           ^~
           rem
liboctave/util/lo-regexp.cc:259:28: error: ‘pcre’ does not name a type
     pcre *re = static_cast<pcre *> (data);
                            ^~~~
liboctave/util/lo-regexp.cc:259:33: error: expected ‘>’ before ‘*’ token
     pcre *re = static_cast<pcre *> (data);
                                 ^
liboctave/util/lo-regexp.cc:259:33: error: expected ‘(’ before ‘*’ token
liboctave/util/lo-regexp.cc:259:34: error: expected primary-expression before ‘>’ token
     pcre *re = static_cast<pcre *> (data);
                                  ^
liboctave/util/lo-regexp.cc:259:42: error: expected ‘)’ before ‘;’ token
     pcre *re = static_cast<pcre *> (data);
                                          ^
liboctave/util/lo-regexp.cc:261:33: error: ‘PCRE_INFO_CAPTURECOUNT’ was not declared in this scope
     pcre_fullinfo (re, nullptr, PCRE_INFO_CAPTURECOUNT,  &subpatterns);
                                 ^~~~~~~~~~~~~~~~~~~~~~
liboctave/util/lo-regexp.cc:261:5: error: ‘pcre_fullinfo’ was not declared in this scope
     pcre_fullinfo (re, nullptr, PCRE_INFO_CAPTURECOUNT,  &subpatterns);
     ^~~~~~~~~~~~~
liboctave/util/lo-regexp.cc:262:33: error: ‘PCRE_INFO_NAMECOUNT’ was not declared in this scope
     pcre_fullinfo (re, nullptr, PCRE_INFO_NAMECOUNT, &namecount);
                                 ^~~~~~~~~~~~~~~~~~~
liboctave/util/lo-regexp.cc:263:33: error: ‘PCRE_INFO_NAMEENTRYSIZE’ was not declared in this scope
     pcre_fullinfo (re, nullptr, PCRE_INFO_NAMEENTRYSIZE, &nameentrysize);
                                 ^~~~~~~~~~~~~~~~~~~~~~~
liboctave/util/lo-regexp.cc:264:33: error: ‘PCRE_INFO_NAMETABLE’ was not declared in this scope
     pcre_fullinfo (re, nullptr, PCRE_INFO_NAMETABLE, &nametable);
                                 ^~~~~~~~~~~~~~~~~~~
liboctave/util/lo-regexp.cc:283:41: error: ‘PCRE_NOTBOL’ was not declared in this scope
                                  (idx ? PCRE_NOTBOL : 0),
                                         ^~~~~~~~~~~
liboctave/util/lo-regexp.cc:281:23: error: ‘pcre_exec’ was not declared in this scope
         int matches = pcre_exec (re, nullptr, buffer.c_str (),
                       ^~~~~~~~~
liboctave/util/lo-regexp.cc:286:24: error: ‘PCRE_ERROR_MATCHLIMIT’ was not declared in this scope
         if (matches == PCRE_ERROR_MATCHLIMIT)
                        ^~~~~~~~~~~~~~~~~~~~~
liboctave/util/lo-regexp.cc:286:24: note: suggested alternative: ‘PCRE_MATCHLIMIT_MAX’
         if (matches == PCRE_ERROR_MATCHLIMIT)
                        ^~~~~~~~~~~~~~~~~~~~~
                        PCRE_MATCHLIMIT_MAX
liboctave/util/lo-regexp.cc:294:13: error: ‘pcre_extra’ was not declared in this scope
             pcre_extra pe;
             ^~~~~~~~~~
liboctave/util/lo-regexp.cc:296:26: error: ‘PCRE_CONFIG_MATCH_LIMIT’ was not declared in this scope
             pcre_config (PCRE_CONFIG_MATCH_LIMIT,
                          ^~~~~~~~~~~~~~~~~~~~~~~
liboctave/util/lo-regexp.cc:297:48: error: ‘pe’ was not declared in this scope
                          static_cast<void *> (&pe.match_limit));
                                                ^~
liboctave/util/lo-regexp.cc:296:13: error: ‘pcre_config’ was not declared in this scope
             pcre_config (PCRE_CONFIG_MATCH_LIMIT,
             ^~~~~~~~~~~
liboctave/util/lo-regexp.cc:299:24: error: ‘PCRE_EXTRA_MATCH_LIMIT’ was not declared in this scope
             pe.flags = PCRE_EXTRA_MATCH_LIMIT;
                        ^~~~~~~~~~~~~~~~~~~~~~
liboctave/util/lo-regexp.cc:299:24: note: suggested alternative: ‘PCRE_MATCHLIMIT_MAX’
             pe.flags = PCRE_EXTRA_MATCH_LIMIT;
                        ^~~~~~~~~~~~~~~~~~~~~~
                        PCRE_MATCHLIMIT_MAX
liboctave/util/lo-regexp.cc:315:39: error: ‘PCRE_ERROR_NOMATCH’ was not declared in this scope
         if (matches < 0 && matches != PCRE_ERROR_NOMATCH)
                                       ^~~~~~~~~~~~~~~~~~
liboctave/util/lo-regexp.cc:320:24: error: ‘PCRE_ERROR_NOMATCH’ was not declared in this scope
         if (matches == PCRE_ERROR_NOMATCH)
                        ^~~~~~~~~~~~~~~~~~
liboctave/util/lo-regexp.cc:353:26: error: ‘pcre_get_substring_list’ was not declared in this scope
             int status = pcre_get_substring_list (buffer.c_str (), ovector,
                          ^~~~~~~~~~~~~~~~~~~~~~~
liboctave/util/lo-regexp.cc:356:27: error: ‘PCRE_ERROR_NOMEMORY’ was not declared in this scope
             if (status == PCRE_ERROR_NOMEMORY)
                           ^~~~~~~~~~~~~~~~~~~
liboctave/util/lo-regexp.cc:403:13: error: ‘pcre_free_substring_list’ was not declared in this scope
             pcre_free_substring_list (listptr);
             ^~~~~~~~~~~~~~~~~~~~~~~~
Makefile:23679: recipe for target 'liboctave/util/liboctave_util_libutil_la-lo-regexp.lo' failed
make[2]: *** [liboctave/util/liboctave_util_libutil_la-lo-regexp.lo] Error 1
make[2]: Leaving directory '/home/himanshu/github/octave'
Makefile:26412: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/himanshu/github/octave'
Makefile:10130: recipe for target 'all' failed
make: *** [all] Error 2


i installed all packages with name *pcre* but issue is as it is.
i tried to search thing related to pcre but didn't get any relevent solution.

Himanshu


-----------------------------------------
Join us March 12-15 at CERN near Geneva
Switzerland for OctConf 2018.  More info:
https://wiki.octave.org/OctConf_2018
-----------------------------------------
Reply | Threaded
Open this post in threaded view
|

Re: Issue in compilation of source code

siko1056
Do you still face this problem?  In this case, which Linux distribution do
you use, and did you really install the development library `libpcre3-dev`
in case of Debian?

HTH,
Kai



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-Maintainers-f1638794.html


-----------------------------------------
Join us March 12-15 at CERN near Geneva
Switzerland for OctConf 2018.  More info:
https://wiki.octave.org/OctConf_2018
-----------------------------------------