in reply to Re^2: Regex problem building perl on IBM AIX
in thread Regex problem building perl on IBM AIX

Appreciate any suggestions/comments.

Show what you're doing exactly, from step one (copy/paste your shell session)

  • Comment on Re^3: Regex problem building perl on IBM AIX

Replies are listed 'Best First'.
Re^4: Regex problem building perl on IBM AIX
by Anonymous Monk on Jul 29, 2011 at 11:47 UTC
    Thanks for the reply. I am trying to build perl 5.14.1 from source on an AIX system. I used Configure with mostly default options but selected yes for multi-thread support. The configure goes fine. However, when I run make, after some time it gives this error (complete info given below). I think it's the miniperl which is having problem with the given regular expression.
    # make `sh cflags "optimize='-O'" perly.o` perly.c CCCMD = cc -q32 -DPERL_CORE -c -D_ALL_SOURCE -D_ANSI_C_SOUR +CE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN -DNE +ED_PTHREAD_INIT -I/usr/local/include -q32 -D_LARGE_FILES -qlonglong +-O cc -q32 -o miniperl -brtl -bdynamic -L/usr/local/lib -b32 -bma +xdata:0x80000000 gv.o toke.o perly.o pad.o regcomp.o dump.o util.o + mg.o reentr.o mro.o keywords.o hv.o av.o run.o pp_hot.o sv.o pp.o sc +ope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o +universal.o globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o + pp_pack.o pp_sort.o miniperlmain.o opmini.o perlmini.o -lbind -ln +sl -ldl -lld -lm -lcrypt -lpthreads -lc ./miniperl -w -Ilib -MExporter -e '<?>' || make minitest ./miniperl -Ilib autodoc.pl ./miniperl -Ilib -Idist/Cwd -Idist/Cwd/lib pod/perlmodlib.PL + -q Sequence (?<... not terminated in regex; marked by <-- HERE in m/(?< < +-- HERE =\^)// at dist/Cwd/Cwd.pm line 697. Compilation failed in require at lib/FindBin.pm line 98. BEGIN failed--compilation aborted at lib/FindBin.pm line 98. Compilation failed in require at pod/perlmodlib.PL line 8. BEGIN failed--compilation aborted at pod/perlmodlib.PL line 8. make: 1254-004 The error code from the last command is 255. Stop. #

      Apparently miniperl doesn't support (?<=pattern)

      You can change the regex to

      =~ m#\^/#

      You should report this bug upstream

        Thanks for the reply. It seems what you suggested works, but this regular expression is used at tons of places. I am reluctant to make those many changes. Could there be any possible alternatives?