On 09/04/2013 01:11, Filipe Saraiva wrote:
> Hello guys, I am a problem during Scilab compilation in Mageia. It is
> pcre related.
>
> The bug report is https://bugs.mageia.org/show_bug.cgi?id=9052
>
> I sent the config.log to bug report.
>
> Excuse me for this question, but nobody in Mageia team help me with problem.
>
> If anyone have some idea about this, I will be grateful. =)
Could you try with the attached patch ?
Thanks,
Sylvestre
[1mdiff --git a/scilab/configure b/scilab/configure[m
[1mindex c10c608..005bcb9 100755[m
[1m--- a/scilab/configure[m
[1m+++ b/scilab/configure[m
[36m@@ -23953,62 +23953,10 @@[m [melse[m
fi[m
[m
[m
[31m-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lpcreposix" >&5[m
[31m-$as_echo_n "checking for regexec in -lpcreposix... " >&6; }[m
[31m-if ${ac_cv_lib_pcreposix_regexec+:} false; then :[m
[31m- $as_echo_n "(cached) " >&6[m
[31m-else[m
[31m- ac_check_lib_save_LIBS=$LIBS[m
[31m-LIBS="-lpcreposix $LIBS"[m
[31m-cat confdefs.h - <<_ACEOF >conftest.$ac_ext[m
[31m-/* end confdefs.h. */[m
[31m-[m
[31m-/* Override any GCC internal prototype to avoid an error.[m
[31m- Use char because int might match the return type of a GCC[m
[31m- builtin and then its argument prototype would still apply. */[m
[31m-#ifdef __cplusplus[m
[31m-extern "C"[m
[31m-#endif[m
[31m-char regexec ();[m
[31m-#ifdef F77_DUMMY_MAIN[m
[31m-[m
[31m-# ifdef __cplusplus[m
[31m- extern "C"[m
[31m-# endif[m
[31m- int F77_DUMMY_MAIN() { return 1; }[m
[31m-[m
[31m-#endif[m
[31m-int[m
[31m-main ()[m
[31m-{[m
[31m-return regexec ();[m
[31m- ;[m
[31m- return 0;[m
[31m-}[m
[31m-_ACEOF[m
[31m-if ac_fn_c_try_link "$LINENO"; then :[m
[31m- ac_cv_lib_pcreposix_regexec=yes[m
[31m-else[m
[31m- ac_cv_lib_pcreposix_regexec=no[m
[31m-fi[m
[31m-rm -f core conftest.err conftest.$ac_objext \[m
[31m- conftest$ac_exeext conftest.$ac_ext[m
[31m-LIBS=$ac_check_lib_save_LIBS[m
[31m-fi[m
[31m-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcreposix_regexec" >&5[m
[31m-$as_echo "$ac_cv_lib_pcreposix_regexec" >&6; }[m
[31m-if test "x$ac_cv_lib_pcreposix_regexec" = xyes; then :[m
[31m- cat >>confdefs.h <<_ACEOF[m
[31m-#define HAVE_LIBPCREPOSIX 1[m
[31m-_ACEOF[m
[31m-[m
[31m- LIBS="-lpcreposix $LIBS"[m
[31m-[m
[31m-else[m
[31m- as_fn_error $? "pcreposix : library missing. (Cannot find symbol regexec). Check if pcre is installed and if the version is correct" "$LINENO" 5[m
[31m-[m
[31m-fi[m
[31m-[m
[32m+[m[32m# AC_CHECK_LIB([pcreposix], [regexec],[m
[32m+[m[32m# [],[m
[32m+[m[32m# [AC_MSG_ERROR([pcreposix : library missing. (Cannot find symbol regexec). Check if pcre is installed and if the version is correct])][m
[32m+[m[32m# )[m
for ac_header in pcre.h[m
do :[m
ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"[m
[36m@@ -25240,7 +25188,7 @@[m [mCPPFLAGS="$CPPFLAGS -I$CHK_TCL_INCLUDE_PATH"[m
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if tcl is version $CHK_TCL_MAJOR.$CHK_TCL_MINOR or later" >&5[m
$as_echo_n "checking if tcl is version $CHK_TCL_MAJOR.$CHK_TCL_MINOR or later... " >&6; }[m
cat > conftest.$ac_ext <<EOF[m
[31m-#line 25243 "configure"[m
[32m+[m[32m#line 25191 "configure"[m
#include "confdefs.h"[m
[m
#include "$CHK_TCL_INCLUDE_PATH/$CHK_TCL_INC_NAME"[m
[36m@@ -25550,7 +25498,7 @@[m [mCPPFLAGS="$CPPFLAGS $TCL_INC_PATH -I$CHK_TK_INCLUDE_PATH $X_CFLAGS"[m
$as_echo_n "checking if tk is version $CHK_TK_MAJOR.$CHK_TK_MINOR or later... " >&6; }[m
[m
cat > conftest.$ac_ext <<EOF[m
[31m-#line 25553 "configure"[m
[32m+[m[32m#line 25501 "configure"[m
#include "confdefs.h"[m
[m
#include "$CHK_TK_INCLUDE_PATH/$CHK_TK_INC_NAME"[m
[36m@@ -26128,7 +26076,7 @@[m [m$as_echo_n "checking saxon... " >&6; }[m
export ac_java_classpath="$jar_resolved:$ac_java_classpath"[m
[m
cat << \EOF > conftest.java[m
[31m-// #line 26131 "configure"[m
[32m+[m[32m// #line 26079 "configure"[m
import java.util.regex.Pattern;[m
[m
import com.icl.saxon.Loader;[m
[36m@@ -26245,7 +26193,7 @@[m [m$as_echo_n "checking jlatexmath-fop... " >&6; }[m
export ac_java_classpath="$jar_resolved:$ac_java_classpath"[m
[m
cat << \EOF > conftest.java[m
[31m-// #line 26248 "configure"[m
[32m+[m[32m// #line 26196 "configure"[m
import java.util.regex.Pattern;[m
[m
import org.scilab.forge.jlatexmath.fop.JLaTeXMathObj;[m
[36m@@ -32673,7 +32621,7 @@[m [melse[m
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2[m
lt_status=$lt_dlunknown[m
cat > conftest.$ac_ext <<_LT_EOF[m
[31m-#line 32676 "configure"[m
[32m+[m[32m#line 32624 "configure"[m
#include "confdefs.h"[m
[m
#if HAVE_DLFCN_H[m
[36m@@ -32779,7 +32727,7 @@[m [melse[m
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2[m
lt_status=$lt_dlunknown[m
cat > conftest.$ac_ext <<_LT_EOF[m
[31m-#line 32782 "configure"[m
[32m+[m[32m#line 32730 "configure"[m
#include "confdefs.h"[m
[m
#if HAVE_DLFCN_H[m
[1mdiff --git a/scilab/m4/pcre.m4 b/scilab/m4/pcre.m4[m
[1mindex 9989cdd..7723dea 100644[m
[1m--- a/scilab/m4/pcre.m4[m
[1m+++ b/scilab/m4/pcre.m4[m
[36m@@ -72,10 +72,10 @@[m [mAC_CHECK_LIB([pcre], [pcre_compile],[m
[AC_MSG_ERROR([pcre : library missing. (Cannot find symbol pcre_compile). Check if pcre is installed and if the version is correct])][m
)[m
[m
[31m-AC_CHECK_LIB([pcreposix], [regexec],[m
[31m- [],[m
[31m- [AC_MSG_ERROR([pcreposix : library missing. (Cannot find symbol regexec). Check if pcre is installed and if the version is correct])][m
[31m- )[m
[32m+[m[32m# AC_CHECK_LIB([pcreposix], [regexec],[m
[32m+[m[32m# [],[m
[32m+[m[32m# [AC_MSG_ERROR([pcreposix : library missing. (Cannot find symbol regexec). Check if pcre is installed and if the version is correct])][m
[32m+[m[32m# )[m
AC_CHECK_HEADERS([pcre.h])[m
[m
LIBS="$saved_LIBS"[m
_______________________________________________
dev mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/dev