Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8006808

mapfile use check in jdk/make/common/shared/Defs-solaris.gmk is throwing 'egrep: syntax error'

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • None
    • 8
    • infrastructure
    • None
    • b76
    • x86
    • solaris

    Description

      Evaluating the 'if [...]' line in the code snippet below seems to be throwing an error, on Solaris at least:

      cat -n jdk/make/common/shared/Defs-solaris.gmk


         217 # Macro to check it's input file for banned dependencies and verify the
         218 # binary built properly. Relies on process exit code.
         219 ifndef CROSS_COMPILE_ARCH
         220 define binary_file_verification # binary_file
         221 ( \
         222 $(ECHO) "Checking for mapfile use in: $1" && \
         223 if [ "`$(ECHO) $(basename $(notdir $1)) | $(EGREP) '$(MAPFILE_EXCEPTIONS)'`" = "" \
         224 -a "`$(NM) -g -D $1 | $(EGREP) -v 'UNDEF' | $(EGREP) 'SUNWprivate'`" = "" ] ; then \
         225 $(ECHO) "$(MAPFILE_WARNING): File was not built with a mapfile: $1"; \
         226 fi && \
         227 $(ECHO) "Library loads for: $1" && \
         228 $(LDD) $1 && \
         229 $(ECHO) "RUNPATH for: $1" && \
         230 ( $(DUMP) -L -v $1 | $(EGREP) 'NEEDED|RUNPATH|RPATH' ) \
         231 )


      Examples I noticed in the build log:


      Checking for mapfile use in: ../../../build/solaris-amd64/lib/amd64/server/libjvm.so
      egrep: syntax error

      [...]

      Checking for mapfile use in: ../../build/solaris-amd64/bin/amd64/keytool
      egrep: syntax error

      [...]



      Refer to the attached build log for more.

      Attachments

        Issue Links

          Activity

            People

              tbell Tim Bell
              tbell Tim Bell
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: