View Issue Details

IDProjectCategoryView StatusLast Update
0000231Other Unix Portpublic2020-08-24 03:11
Reporterwlhartzell Assigned Topsmedley  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
Summary0000231: Perl 5 is unhappy with Mozilla build (or vice versa)
DescriptionI installed Perl 5.10.0 on the machine which builds Mozilla trunk. I had to copy over from Perl 5.8.0 both sh.exe and testperl.cmd. After I made testperl happy with perl 5.10.0, which meant I had to copy the two dll from \bin to \lib\5.10.0 so that testperl would work from a directory other than \bin. In other words, I had e:\perl5\lib\5.10.0 and e:\perl5\lib\5.10.0\os2 in beginlibpath and e:\perl5\bin in path. I then tried to run mozilla build cmd with 'make -f client.mk build'. Perl5 failed Mozilla build configure tests:
AC_PATH_PROGS(PERL, $PERL perl5 perl )
if test -z "$PERL" || test "$PERL" = ":"; then
    AC_MSG_ERROR([perl not found in \$PATH])
fi

if test -z "$TINDERBOX_SKIP_PERL_VERSION_CHECK"; then
AC_MSG_CHECKING([for minimum required perl version >= $PERL_VERSION])
_perl_version=`PERL_VERSION=$PERL_VERSION $PERL -e 'print "$]"; if ($] >= $ENV{PERL_VERSION}) { exit(0); } else { exit(1); }' 2>&5`
_perl_res=$?
AC_MSG_RESULT([$_perl_version])

if test "$_perl_res" != 0; then
    AC_MSG_ERROR([Perl $PERL_VERSION or higher is required.])
fi
fi

AC_MSG_CHECKING([for full perl installation])
_perl_archlib=`$PERL -e 'use Config; if ( -d $Config{archlib} ) { exit(0); } else { exit(1); }' 2>&5`
_perl_res=$?
if test "$_perl_res" != 0; then
    AC_MSG_RESULT([no])
    AC_MSG_ERROR([Cannot find Config.pm or \$Config{archlib}. A full perl installation is required.])
else
    AC_MSG_RESULT([yes])
fi
In the part where it tests for full version. I could not get it to work. The previous version worked upon passing testperl.cmd. Any chance you could figure out what is wrong.
(Aside: It is a Mozilla build test bug that it fails to find perl5 directory within $path in the first test, it does the same with 5.8.0.)
TagsNo tags attached.

Activities

psmedley

2008-01-10 06:56

administrator   ~0000815

can you post the output from mozilla configure?

Buck

2008-01-22 21:21

reporter   ~0000820

I got past this by adding /path5 to klibc pathrewriter and removing /perl.
I am currently building now. I ran into a problem where it looked like it was going to fail but turned out to be python25 that is the problem, going back to python244 it has built past that point now with perl 510.

Buck

2008-01-23 01:38

reporter   ~0000821

I writing this in Seamonkey built using perl 510.
The wpi put /perl in the klibc pathrewriter and it should put /perl5 as the default location is /perl5.
I will open an issue on python25 but I don't know how to simplify the case as I don't fully understand what it is doing.

Buck

2008-01-23 03:35

reporter   ~0000822

Tried to open a report for the Python issue but it says I have to select a 'Category' and the only thing under category is 'select'.
Python25 causes a build failure in Mozilla. It took me a bit of time to track it down as it looked like a Perl failure (made a mistake and put both Perl 510 and Python 25 on at the same time).
 
      $(PYTHON) $(MOZILLA_DIR)/config/Preprocessor.py $(XULPPFLAGS) $(DEFINES) $(ACDEFINES) \
        $(JAR_MANIFEST) | \
      $(PERL) -I$(MOZILLA_DIR)/config $(MOZILLA_DIR)/config/make-jars.pl \
        -d $(MAKE_JARS_TARGET)/chrome -j $(FINAL_TARGET)/chrome \
        $(MAKE_JARS_FLAGS) -- "$(XULPPFLAGS) $(DEFINES) $(ACDEFINES)"; \


The following in make-jars.pl:
if (/^([\w\d.\-\_\\\/]+).jar\:\s*$/)
should evaluate true but doesn't.
Changing to Python244 and the build is successful.
Unfortunately I don't know what other information to get at this point.

psmedley

2008-01-23 05:07

administrator   ~0000823

Note that I didn't generate the Perl 5.10.0 warpin package....... I'll have to try determine why the Python stuff breaks things....

psmedley

2013-10-11 11:18

administrator   ~0002565

I have built mozilla here with my current python/perl drops and it works, closing this ticket

Issue History

Date Modified Username Field Change
2008-01-06 08:44 wlhartzell New Issue
2008-01-10 06:56 psmedley Note Added: 0000815
2008-01-22 21:21 Buck Note Added: 0000820
2008-01-23 01:38 Buck Note Added: 0000821
2008-01-23 03:35 Buck Note Added: 0000822
2008-01-23 05:07 psmedley Note Added: 0000823
2013-10-11 11:18 psmedley Note Added: 0002565
2013-10-11 11:18 psmedley Status new => resolved
2013-10-11 11:18 psmedley Resolution open => no change required
2013-10-11 11:18 psmedley Assigned To => psmedley
2020-08-24 03:11 psmedley Status resolved => closed