Building on Mac OS X 10.5.6

Kurt Miller kurt at intricatesoftware.com
Thu Jan 29 13:07:15 PST 2009


Hi Ron,

Ronald Garcia wrote:
> Hi all,
> 
> I just recently installed Mercurial, fcloned the BSD port of OpenJDK,  
> and built it, but I ended up doing a few unexpected things to get  
> compilation to complete.  I suspect I may be messing up some aspect of  
> the build process given prior reports of successful builds on the  
> mailing list.
> 
> Some info on my setup:
> - a recent (circa october 2008) Mac Powerbook running OS X 10.5.6,  
> with Xcode Developer Tools 3.1.2
> 
> 
> First, I modified my make command from that given at the URL:
> http://landonf.bikemonkey.org/2008/08/20
> 
> My build line is as follows:
> 
> make \
> ALT_BOOTDIR=/usr/local/soylatte16-i386-1.0.3 \
> ALT_BINARY_PLUGS_PATH=/usr/local/lib/jdk-7-icedtea-plugs \
> ALT_FREETYPE_HEADERS_PATH=/usr/X11R6/include \
> ALT_FREETYPE_LIB_PATH=/usr/X11R6/lib \
> ALT_CUPS_HEADERS_PATH=/usr/include \
> ANT_HOME=/usr/share/ant \
> NO_DOCS=true \
> HOTSPOT_BUILD_JOBS=1 \
> DEVTOOLS_PATH=/usr/bin \
> LANG=C
> 
> The particular changes I made:
>   - added "LANG=C" so as not to clash with Mercurial's documentation  
> suggesting to set LANG=utf8...
>   - added "DEVTOOLS_PATH=/usr/bin" because it wasn't set right by  
> default
>   - changed ALT_BINARY_PLUGS_PATH to reflect where I installed it
>   - changed ALT_BOOTDIR to point to the correct filename for soylatte
> 
> As you can see, I used soylatte to bootstrap the build.  I was  
> surprised that building died until I explicitly set
> DEVTOOLS.
> 
> Once I did the above, I found that libsplashscreen would not build.   
> To get libsplashscreen.dylib to build, I ended up modifying the file:
> bsd-port/jdk/make/sun/splashscreen/Makefile
> 
> The command for building it was not including -liconv or the  
> directory.  My changes to the Makefile were essentially as follows.
> 
> ===================================<Snip! 
>  >===================================
> ifneq ($(PLATFORM), windows)
>    CFLAGS += -DWITH_X11
>    ifeq ($(PLATFORM), bsd)
>      CFLAGS += -DPNG_NO_MMX_CODE
>      ifeq ($(OS_VENDOR), Apple)
> # Begin addition!
>        ICONV_PATH = /usr
>        CPPFLAGS += -I$(ICONV_PATH)/include
>        OTHER_LDLIBS += -L$(ICONV_PATH)/lib -liconv
> # End addition!
> ===================================<snip! 
>  >===================================
> 
> 
> My question is this:  Am I missing something in the build process such  
> that DEVTOOLS_PATH isn't getting set on its own and that is causing  
> ICONV to not get included on the build path?

I recently corrected several path defaults, including the ones you
are hitting now. Please retry after updating your tree (hg fpull,
hg fupdate). You should no longer need to set ALT_CUPS_HEADERS_PATH
and DEVTOOLS_PATH on OS X.

> I apologize if this has been addressed before, but I haven't seen any  
> relevant information while scouring the archives.

Regards,
-Kurt



More information about the bsd-port-dev mailing list