Bugs item #3322440, was opened at 2011-06-20 02:53
Message generated for change (Comment added) made by olly
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=101645&aid=3322440&group_id=1645
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: installation
Group: None
>Status: Closed
>Resolution: Invalid
Priority: 5
Private: No
Submitted By: Volker Jahns (jahnsv)
Assigned to: Nobody/Anonymous (nobody)
Summary: compile fails on FreeBSD 7.4
Initial Comment:
./configure && gmake fails on FreeBSD 7.4
...
gcc -DHAVE_CONFIG_H -I../Source/Include -I../Source/CParse -I../Source/Include -I../Source/DOH -I../Source/CParse -I../Source/Preprocessor -I../Source/Swig -I../Source/Modules -g -O2 -Wall -W -ansi -pedantic -MT Swig/misc.o -MD -MP -MF $depbase.Tpo -c -o Swig/misc.o Swig/misc.c &&\
mv -f $depbase.Tpo $depbase.Po
Swig/misc.c:1119:18: error: pcre.h: No such file or directory
Swig/misc.c: In function 'Swig_string_regex':
Swig/misc.c:1191: error: 'pcre' undeclared (first use in this function)
Swig/misc.c:1191: error: (Each undeclared identifier is reported only once
Swig/misc.c:1191: error: for each function it appears in.)
Swig/misc.c:1191: error: 'compiled_pat' undeclared (first use in this function)
Swig/misc.c:1192: warning: ISO C90 forbids mixed declarations and code
Swig/misc.c:1200: warning: implicit declaration of function 'pcre_compile'
Swig/misc.c:1207: warning: implicit declaration of function 'pcre_exec'
Swig/misc.c:1211: error: 'PCRE_ERROR_NOMATCH' undeclared (first use in this function)
Swig/misc.c:1220: warning: implicit declaration of function 'pcre_free'
Swig/misc.c: In function 'Swig_pcre_version':
Swig/misc.c:1225: warning: implicit declaration of function 'pcre_version'
gmake[2]: *** [Swig/misc.o] Error 1
gmake[2]: Leaving directory `/var/tmp/swig-2.0.4/Source'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/var/tmp/swig-2.0.4/Source'
gmake: *** [source] Error 2
...
as a workaround define the PCRE_FLAGS and PCRE_LIBS environment variables
export PCRE_CFLAGS=-I/usr/local/include
export PCRE_LIBS="-L/usr/local/libs -lpcre"
----------------------------------------------------------------------
>Comment By: Olly Betts (olly)
Date: 2011-07-14 17:44
Message:
Thanks for your report, but this isn't actually a bug - you will need to
tell configure where PCRE is installed if it isn't in the default search
paths. See:
./configure --help|grep -i PCRE
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=101645&aid=3322440&group_id=1645
|