From root@iris3.net  Mon Jul  7 05:23:32 2003
Return-Path: <root@iris3.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id 596C737B401; Mon,  7 Jul 2003 05:23:32 -0700 (PDT)
Received: from mail.iris3.net (host38.co.fr.clara.net [212.43.196.38])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id 5683D43FBF; Mon,  7 Jul 2003 05:23:31 -0700 (PDT)
	(envelope-from root@iris3.net)
Received: by mail.iris3.net (Postfix, from userid 0)
	id EA06C2EC027; Mon,  7 Jul 2003 14:24:41 +0000 (GMT)
Message-Id: <20030707142441.EA06C2EC027@mail.iris3.net>
Date: Mon,  7 Jul 2003 14:24:41 +0000 (GMT)
From: Hubert Tournier <hubert@tournier.org>
Reply-To: Hubert Tournier <hubert@tournier.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: glewis@freebsd.org
Subject: Compilation of java/jdk13 fails (with solution)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         54180
>Category:       ports
>Synopsis:       Compilation of java/jdk13 fails (with solution)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    glewis
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 07 05:30:10 PDT 2003
>Closed-Date:    Fri Jul 11 14:01:55 PDT 2003
>Last-Modified:  Fri Jul 11 14:01:55 PDT 2003
>Originator:     Hubert Tournier <hubert@frbsd.org>
>Release:        FreeBSD 5.1-RELEASE i386
>Organization:
Maison
>Environment:
System: FreeBSD herisson.free.fr 5.1-RELEASE FreeBSD 5.1-RELEASE #0: Fri Jun 27
13:59:08 CEST 2003 root@herisson.free.fr:/usr/obj/usr/src/sys/HERISSON i386

Port version :
ports/java/jdk13/Makefile,v 1.55 2003/06/15 05:55:36 glewis

qt-3.1.2 installed

>Description:

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.

>How-To-Repeat:

cd /usr/ports/java/jdk13 ; make

>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 ?
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->glewis 
Responsible-Changed-By: erwin 
Responsible-Changed-When: Mon Jul 7 05:32:31 PDT 2003 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=54180 
State-Changed-From-To: open->closed 
State-Changed-By: glewis 
State-Changed-When: Fri Jul 11 14:01:27 PDT 2003 
State-Changed-Why:  
I've committed a patch which should fix this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=54180 
>Unformatted:
