build openJDK bsd-port for Tiger (Mac OS X 10.4)

Patrick Haruksteiner patrick.haruksteiner at dynatrace.com
Wed Feb 11 12:00:06 UTC 2009


 

Hello,

 

I managed to build the current bsd-port of openJDK on Mac OS X 10.5.6 /
Leopard, but it does not work for 10.4.

 

I added flags to build against 10.4 - the build finishes, but when
testing on 10.4 I get this error:

 

Error: dl failure on line 720

Error: failed
/Users/labuser/Desktop/j2re-image/lib/i386/server/libjvm.dylib, because
dlopen(/Users/labuser/Desktop/j2re-image/lib/i386/server/libjvm.dylib,
10): Symbol not found: _chmod$UNIX2003

  Referenced from:
/Users/labuser/Desktop/j2re-image/lib/i386/server/libjvm.dylib

  Expected in: /usr/lib/libSystem.B.dylib

 

JVM terminated with exit code 6

 

 

I added "-mmacosx-version-min=10.4 -isysroot
/Developer/SDKs/MacOSX10.4u.sdk" to "bsd-port/jdk/make/common/Defs.gmk"
line 680 to 685:

 

#

# Tool flags

#

ASFLAGS         = $(ASFLAGS_$(VARIANT)) $(ASFLAGS_COMMON)
$(OTHER_ASFLAGS) -mmacosx-version-min=10.4 -isysroot
/Developer/SDKs/MacOSX10.4u.sdk

CFLAGS          = $(CFLAGS_$(VARIANT)/BYFILE)   $(CFLAGS_COMMON)
$(OTHER_CFLAGS) -mmacosx-version-min=10.4 -isysroot
/Developer/SDKs/MacOSX10.4u.sdk

CXXFLAGS        = $(CXXFLAGS_$(VARIANT)/BYFILE) $(CXXFLAGS_COMMON)
$(OTHER_CXXFLAGS) -mmacosx-version-min=10.4 -isysroot
/Developer/SDKs/MacOSX10.4u.sdk

CPPFLAGS        = $(CPPFLAGS_$(VARIANT)) $(CPPFLAGS_COMMON)
$(OTHER_CPPFLAGS) -mmacosx-version-min=10.4 -isysroot
/Developer/SDKs/MacOSX10.4u.sdk \

                                 $(DEFINES) $(OPTIONS:%=-D%)

LDFLAGS         = $(LDFLAGS_$(VARIANT)) $(LDFLAGS_COMMON)
$(OTHER_LDFLAGS) -mmacosx-version-min=10.4 -isysroot
/Developer/SDKs/MacOSX10.4u.sdk

 

 

am I missing something, or is it not possible to build the bsd-port
against 10.4?

 

Thanks for your help,


Patrick Haruksteiner

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/build-dev/attachments/20090211/18bd0350/attachment.htm>


More information about the build-dev mailing list