Menu

#140 openjade - 1.3.3 won't build on FreeBSD with Perl-5.16

open
nobody
5
2018-09-09
2012-07-05
Gerard
No

The build stops with this error message:

/usr/local/bin/perl -w ./../msggen.pl -l jstyleModule DssslAppMessages.msg
Undefined subroutine &main::Getopts called at ./../msggen.pl line 22.
gmake[2]: *** [DssslAppMessages.h] Error 2
gmake[2]: Leaving directory `/usr/ports/textproc/openjade/work/openjade-1.3.3-pre1/style'
gmake[1]: *** [style] Error 2
gmake[1]: Leaving directory `/usr/ports/textproc/openjade/work/openjade-1.3.3-pre1'
gmake: *** [all] Error 2
*** Error code 1

The entire build log is available here: http://pastebin.com/4hxS2ZQL

Discussion

  • Gerard

    Gerard - 2012-07-05

    Complete build log

     
  • Maxim Cournoyer

    Maxim Cournoyer - 2018-09-09

    Here's how I patched the msgen.pl in GNU Guix to work around this bug:

         (add-after 'unpack 'replace-deprecated-getopt
           (lambda _
             (substitute* "msggen.pl"
               (("use POSIX;") "use POSIX;\nuse Getopt::Std;")
               (("do 'getopts.pl';") "")
               (("&Getopts") "getopts"))
             #t))
    
     

Log in to post a comment.