Details
-
Bug
-
Resolution: Fixed
-
P3
-
None
-
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.
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
- relates to
-
JDK-7038599 (build) check for unexported symbols in mapfile
- Closed