JDK13 fails to build

E. J. Cerejo edinho64 at netscape.net
Thu May 22 21:52:30 PDT 2003



malcolm.kay at internode.on.net wrote:
> On Fri, 23 May 2003 12:36, E. J. Cerejo wrote:
> 
>>malcolm.kay at internode.on.net wrote:
>>
>>>On Fri, 23 May 2003 09:45, E. J. Cerejo wrote:
>>>
>>>>I forgot to mention that I'm running freebsd stable
>>>>
>>>>
>>>>
>>>>E. J. Cerejo wrote:
>>>>I'm trying to install JDK13 and it fails to build, here's what I get:
>>>>
>>>>/src/motif/badapter -I../../../../src/share/javavm/export
>>>>-I../../../../src/solaris/javavm/export -I/usr/X11R6/include
>>>>-I/usr/local/include -I../../oji-plugin/src/share -o
>>>>../../tmp/bsd/i386/stubs.o ../../oji-plugin/src/motif/common/stubs.c
>>>>In file included from ../../oji-plugin/src/motif/common/stubs.c:29:
>>>>/usr/X11R6/include/npapi.h:1: #error
>>>>"/home/espenr/tmp/qt-3.1-espenr-14496/qt/extensions/nsplugin/src/npapi.h
>>>>must be provided by Netscape"
>>>>/usr/X11R6/include/npapi.h:2: #error "This file is just a placeholder.
>>>>Please see the documentation"
>>>>/usr/X11R6/include/npapi.h:3: #error "to learn how to obtain the real
>>>>file" In file included from
>>>>../../oji-plugin/src/motif/common/stubs.c:30:
>>>>/usr/X11R6/include/npupp.h:1: #error
>>>>"/home/espenr/tmp/qt-3.1-espenr-14496/qt/extensions/nsplugin/src/npupp.h
>>>>must be provided by Netscape"
>>>>/usr/X11R6/include/npupp.h:2: #error "This file is just a placeholder.
>>>>Please see the documentation"
>>>>/usr/X11R6/include/npupp.h:3: #error "to learn how to obtain the real
>>>>file" gmake[1]: *** [../../tmp/bsd/i386/stubs.o] Error 1
>>>>gmake[1]: Leaving directory
>>>>`/usr/ports/java/jdk13/work/j2sdk1.3.1/ext/plugin/build/solaris'
>>>>gmake: *** [plugin-all] Error 1
>>>>*** Error code 2
>>>>
>>>>Stop in /usr/ports/java/jdk13.
>>>>
>>>>Is it because of qt3?
>>>
>>>Have you read the actual error messages?
>>>#error is a preprocessor command which reports and causes an
>>>error to be generated.
>>>In the first instance the encoded errors were:
>>>  
>>>/home/espenr/tmp/qt-3.1-espenr-14496/qt/extensions/nsplugin/src/npapi.h
>>>must be provided by Netscape
>>>   This file is just a placeholder.
>>>   Please see the documentation to learn how to obtain the real file
>>>
>>>The second is similar!
>>>
>>>Maybe there are make options to inhibit the generation
>>>of a netscape plugin. Take a look in the Makefile.
>>>
>>>Malcolm
>>>
>>>Malcolm
>>
>>I looked into the Makefile and I didn't see anything that had to do with
>>a netscape plugin!
> 
> 
> I may have a different port version but the Makefile is labelled:
> # New ports collection makefile for:    jdk13
> # Date created:             10 October 2000
> 
> and at line 26:
> 
> .if !defined(WITHOUT_PLUGIN)
> BUILD_DEPENDS+= msgfmt:${PORTSDIR}/devel/gettext
> LIB_DEPENDS=    glib12.3:$(PORTSDIR)/devel/glib12 \
>         gtk12.2:$(PORTSDIR)/x11-toolkits/gtk12 \
>         nspr4.1:$(PORTSDIR)/devel/nspr
> .endif
>  
>  and again at line 68:
> 
> .if !defined(WITHOUT_PLUGIN)
> MAKE_ENV += LIBG_HDRS="${LOCALBASE}/include/glib12" \
>         GTK_HDRS="${X11BASE}/include/gtk12" \
>         LIBIDL_HDRS=
> .endif
> 
> and 73:
> 
> .if !defined(WITHOUT_PLUGIN)
> ALL_TARGET= all plugin images
> .else
> ALL_TARGET= all images
> .endif
> 
> and 100:
>  
> .if defined(WITHOUT_PLUGIN) 
> PLIST_SUB+=    PLUGIN:="@comment "
> .else
> PLIST_SUB+=    PLUGIN:=""
> .endif
> 
> 201:
> 
> .if !defined(WITHOUT_PLUGIN)
>     @${ECHO_MSG}
>     @${ECHO_MSG} To use the Java plugin with Mozilla you must create a
>     @${ECHO_MSG} symbolic link from
>     @${ECHO_MSG}
>     @${ECHO_MSG}   ---long line---
>     @${ECHO_MSG}
>     @${ECHO_MSG} to your Mozilla plugins directory, which is usually found at
>     @${ECHO_MSG}
>     @${ECHO_MSG} ${X11BASE}/lib/mozilla/plugins
>     @${ECHO_MSG}
> .endif
> 
> I imagine you want:
> # make -DWITHOUT_PLUGIN
> and 
> # make -DWITHOUT_PLUGIN install

I forced uninstall qt31 and tried building jdk13 and it built and 
installed succefully after that I rebuilt qt3.  The thing is I need the 
plugin that is why I'm installing it in the first place.  I can't 
understand as to why it builds fine without qt3 and it won't build with 
qt3 installed.





More information about the freebsd-questions mailing list