Bug 54180 - Compilation of java/jdk13 fails (with solution)
Summary: Compilation of java/jdk13 fails (with solution)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Greg Lewis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-07 13:30 UTC by Hubert Tournier
Modified: 2003-07-11 22:01 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hubert Tournier 2003-07-07 13:30:10 UTC
Compilation of java/jdk13 fails with :

  In file included from ../../oji-plugin/src/motif/common/stubs.c:29:
  /usr/X11R6/include/npapi.h:1:2: #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:2: #error "This file is just a
  placeholder. Please see the documentation"
  /usr/X11R6/include/npapi.h:3:2: #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:2: #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:2: #error "This file is just a
  placeholder. Please see the documentation"
  /usr/X11R6/include/npupp.h:3:2: #error "to learn how to obtain the real
  file"

[...]

  gmake[1]: *** [../../tmp/bsd/i386/stubs.o] Error 1
  gmake[1]: Leaving directory
  `/home/ports/java/jdk13/work/j2sdk1.3.1/ext/plugin/build/solaris'
  gmake: *** [plugin-all] Error 1
  *** Error code 2

  Stop in /home/ports/java/jdk13.

Fix: 

cd /tmp
fetch ftp://ftp.netscape.com/pub/sdk/plugin/unix/unix-sdk-3.0b5.tar.Z
tar vxzf unix-sdk-3.0b5.tar.Z
cd PluginSDK30b5/include
cp * /usr/X11R6/include
cd /usr/ports/java/jdk13
rm -r work
make install

Another solution might be to use the (uncommitted) patch for the
Netscape Plugin SDK found at
http://free.babolo.ru/patch/ports.devel.plugin_sdk.patch

Another (less satisfying) solution is to compile the JDK using the
WITHOUT_PLUGIN option.

If the problem is really generated by the installation of qt (as I have
read in the news, but not verified), it might be interesting to check
for it in the Makefile ?
How-To-Repeat: 
cd /usr/ports/java/jdk13 ; make
Comment 1 Erwin Lansing freebsd_committer freebsd_triage 2003-07-07 13:32:31 UTC
Responsible Changed
From-To: freebsd-ports-bugs->glewis

Over to maintainer
Comment 2 Greg Lewis freebsd_committer freebsd_triage 2003-07-11 22:01:27 UTC
State Changed
From-To: open->closed

I've committed a patch which should fix this.