Bug 34 - wrong include path for packages at compile time
: wrong include path for packages at compile time
Status: RESOLVED FIXED
Product: SWI-Prolog
Classification: Unclassified
Component: core
: unspecified
: PC Linux
: Highest normal
Assigned To: Jan Wielemaker
:
:
:
  Show dependency treegraph
 
Reported: 2012-04-16 08:06 CEST by Joachim Neubert
Modified: 2013-05-21 15:08 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joachim Neubert 2012-04-16 08:06:49 CEST
When executing ./build, I get an error, because neither the system include path
nor the path for SWI-Prolog.h nor the package path are referenced correctly:

for p in clib cpp table sgml RDF semweb http chr clpqr nlp ssl tipc pldoc
plunit zlib R protobufs PDT utf8proc; do \
            if [ -r $p/Makefile ]; then gmake -C $p || exit 1; fi; \
        done
gmake[2]: Entering directory `/usr/local/src/git/pl/packages/clib'
gcc44 -O2 -Wall -fno-strict-aliasing -pthread -fPIC
-I/usr/local/src/git/pl/src/../packages/../.././../include
-I/usr/local/src/git/pl/src/../packages/../../../src/../packages/clib
-I/usr/local/src/git/pl/src/../packages/../../../src/../packages/clib/maildrop/rfc2045
-I/usr/local/src/git/pl/src/../packages/../../../src/../packages/clib/maildrop/rfc822
-DHAVE_CONFIG_H -D__SWI_PROLOG__   -c -o error.o error.c
In file included from error.c:27:
clib.h:28:24: error: SWI-Prolog.h: No such file or directory
Comment 1 Jan Wielemaker 2012-04-16 09:10:33 CEST
Hmm.  I'm afraid that remote debugging is getting really hard here.  I
suspect a bug in autoconf.  The base-paths are setup in
packages/Makefile.defs.in
and packages/Dialect.defs.in, which are instantiated from the main configure
run in src.  There can't be much wrong with the definitions as far as I can
see.

My autoconf version is 2.67

    Success --- Jan
Comment 2 Jan Wielemaker 2013-05-21 15:08:54 CEST
After some further analysis, with help of Willem Melder we concluded that

  - autoconf 2.59 is too old and causing these path issues.
  - autoconf 2.67 and 2.69 are confirmed to work.

The way to install is to get a more recent version of the autotools
installed in your PATH.