[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Re: [BUG REPORT] WML 1.7.4, SunOS dibble 5.7 Generic sun4u sparc SUNW,Ultra-5_10



On Thu, 2 Dec 1999 lohner@debian.org wrote:

> BUG REPORT
> 
> Package: WML 1.7.4
> Operating System: SunOS dibble 5.7 Generic sun4u sparc SUNW,Ultra-5_10
> 
> 
> Problem Description:
> | in wml_common, the CC and LD variables are not inherited, causing it to use 'cc' instead of 'gcc' 
> | and therefore failing to build since 'cc' is not installed on the systems here.
> | The Makefiles just need to be modified to inherit this froma higher level to resolve the problem.

This means that Perl is misconfigured. Type
     perl -V
and you will see that cc is defined as your compiler.

A patch is attached, re-run configure and add
   --with-perl-opts="CC=gcc LD=gcc"


-- 
Denis Barbier
WML Maintainer
--- wml-1.7.4/configure	1999/09/30 17:18:46	1.14
+++ wml-1.7.4/configure	1999/12/04 11:45:52
@@ -37,6 +37,8 @@
 ac_help="$ac_help
   --with-perl=PATH        force the usage of a specific Perl 5 interpreter"
 ac_help="$ac_help
+  --with-perl-opts=STRING options to pass to Makefiles when compiling Perl modules"
+ac_help="$ac_help
   --with-openworld        try to use system-wide copies of Perl modules"
 
 # Initialize some variables set by options.
@@ -933,6 +1009,17 @@
     { echo "configure: error: required program ``perl'' not found" 1>&2; exit 1; }
 fi
 path_perl=$PATH_PERL
+# Check whether --with-perl_opts or --without-perl_opts was given.
+if test "${with_perl_opts+set}" = set; then
+  withval="$with_perl_opts"
+  
+PERL_OPTS=$with_perl_opts
+
+else
+  PERL_OPTS=
+
+fi
+
 
 # Check whether --with-openworld or --without-openworld was given.
 if test "${with_openworld+set}" = set; then
@@ -1377,6 +1466,7 @@
 s%@PATH_PERL@%$PATH_PERL%g
 s%@perlprog@%$perlprog%g
 s%@perlvers@%$perlvers%g
+s%@PERL_OPTS@%$PERL_OPTS%g
 s%@have_getoptlong@%$have_getoptlong%g
 s%@have_bitvector@%$have_bitvector%g
 s%@have_filepathconvert@%$have_filepathconvert%g
--- wml-1.7.4/config/configure.in	1999/09/30 17:18:52	1.14
+++ wml-1.7.4/config/configure.in	1999/12/04 11:45:48
@@ -74,6 +74,13 @@
     AC_ERROR([required program ``perl'' not found])
 fi
 path_perl=$PATH_PERL
+AC_ARG_WITH(perl_opts,dnl
+[  --with-perl-opts=STRING options to pass to Makefiles when compiling Perl modules],[
+PERL_OPTS=$with_perl_opts
+],[dnl
+PERL_OPTS=
+])dnl
+AC_SUBST(PERL_OPTS)
 
 dnl ##  perl modules
 AC_ARG_WITH(openworld,dnl
--- wml_common/Makefile.in	1999/10/03 20:17:00	1.7
+++ wml_common/Makefile.in	1999/12/04 11:28:52
@@ -23,6 +23,7 @@
                   INSTALLMAN1DIR= \
                   INST_MAN3DIR= \
                   INSTALLMAN3DIR=
+PERL_OPTS       = @PERL_OPTS@
 
 prefix          = @prefix@
 exec_prefix     = $(prefix)
@@ -70,7 +71,7 @@
 	            touch $$dir/.configured; \
 	        else :; \
 	        fi; \
-	        (cd $$dir && $(MAKE) pure_all) \
+	        (cd $$dir && $(MAKE) $(PERL_OPTS) pure_all) \
 	        || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
 	        echo "<=== wml_common/$$dir"; \
 	    else :; \