[Bug 196] New: Corba: ioser.c not passed $(MOZILLA_CFLAGS) but includes jni.h

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Tue Sep 23 16:37:01 PDT 2008


http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=196

           Summary: Corba: ioser.c not passed $(MOZILLA_CFLAGS) but includes
                    jni.h
           Product: IcedTea
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: IcedTea
        AssignedTo: unassigned at icedtea.classpath.org
        ReportedBy: dj at linuxfromscratch.org


Interesting that I've made this build happen to completion a couple of times
now.  I've reviewed host system changes several times and am unable to figure
out why I was able to build it properly against changeset 1040 with the patch
for changeset 1045.  I am now unable to do even that.  Seems likely there was a
change on the host system, however, I am unable to find any thing out of the
ordinary.  I am now downloading FC9 for a comparison, but it'll take some time.
 I am only bugging this to rule out any breakage in the autotools or patches. 
Can somebody please look at a recent successful build tree (preferably 1045)
and confirm that corba does include the MOZILLA flags?  Or is this a host
system problem in that jni.h is in /usr/include on supported platforms?  If
that is the case, then would a patch be welcome for other targets, if it is not
just something silly that I am overlooking?  I am also not against a healthy
beating with the cluebat.

FYI:

[dj at name25 icedtea6-d2579e023b0e]# find /usr/include/ -name jni.h
/usr/include/firefox-2.0.0.11/java/jni.h
/usr/include/firefox-2.0.0.11/jni.h
/usr/include/thunderbird-2.0.0.9/java/jni.h
/usr/include/thunderbird-2.0.0.9/jni.h

[dj at name25 icedtea6-d2579e023b0e]# grep "^MOZILLA" Makefile
MOZILLA_CFLAGS = -I/usr/include/firefox-2.0.0.11/java
-I/usr/include/firefox-2.0.0.11/plugin -I/usr/include/nspr
-I/usr/include/firefox-2.0.0.11 -I/usr/include/firefox-2.0.0.11/xpcom
-I/usr/include/firefox-2.0.0.11/string  
MOZILLA_LIBS = -L/usr/lib/firefox-2.0.0.11 -lxpcom -lplds4 -lplc4 -lnspr4
-lpthread -ldl  

Here is the build error:

/usr/bin/gcc  -O2    -fno-strict-aliasing -fPIC -W -Wall  -Wno-unused
-Wno-parentheses -fno-omit-frame-pointer -D_LITTLE_ENDIAN   -D_i586_ -Di586
-DARCH='"i586"' -DLINUX -DRELEASE='"1.6.0_0-internal"' -D_LARGEFILE64_SOURCE
-D_GNU_SOURCE -D_REENTRANT -I.
-I/home/dj/icedtea6-d2579e023b0e/openjdk-ecj/control/build/linux-i586/corba/tmp/sun/com.sun.corba.se.internal.io/ioser12/CClassHeaders
-I../../../../src/solaris/javavm/export -I../../../../src/share/javavm/export
-I../../../../src/share/javavm/include -I../../../../src/solaris/javavm/include
-ICClassHeaders -I/home/dj/icedtea6-d2579e023b0e/bootstrap/jdk1.6.0/include
-I/home/dj/icedtea6-d2579e023b0e/bootstrap/jdk1.6.0/include/linux
-I../../../../src/share/native/common -I../../../../src/solaris/native/common
-I../../../../src/share/native/com/sun/corba/se/internal/io
-I../../../../src/solaris/native/com/sun/corba/se/internal/io    -c -o
/home/dj/icedtea6-d2579e023b0e/openjdk-ecj/control/build/linux-i586/corba/tmp/sun/com.sun.corba.se.internal.io/ioser12/obj/ioser.o
 ../../../../src/share/native/com/sun/corba/se/internal/io/ioser.c
../../../../src/share/native/com/sun/corba/se/internal/io/ioser.c:26:17: error:
jni.h: No such file or directory
In file included from
../../../../src/share/native/com/sun/corba/se/internal/io/ioser.c:28:
/home/dj/icedtea6-d2579e023b0e/openjdk-ecj/control/build/linux-i586/corba/tmp/sun/com.sun.corba.se.internal.io/ioser12/CClassHeaders/com_sun_corba_se_internal_io_IIOPInputStream.h:3:17:
error: jni.h: No such file or directory
In file included from
../../../../src/share/native/com/sun/corba/se/internal/io/ioser.c:28:
/home/dj/icedtea6-d2579e023b0e/openjdk-ecj/control/build/linux-i586/corba/tmp/sun/com.sun.corba.se.internal.io/ioser12/CClassHeaders/com_sun_corba_se_internal_io_IIOPInputStream.h:13:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'jobject'

<SNIP>

make[6]: ***
[/home/dj/icedtea6-d2579e023b0e/openjdk-ecj/control/build/linux-i586/corba/tmp/sun/com.sun.corba.se.internal.io/ioser12/obj/ioser.o]
Error 1
make[6]: Leaving directory
`/home/dj/icedtea6-d2579e023b0e/openjdk-ecj/corba/make/sun/corba/core'
make[5]: *** [library_parallel_compile] Error 2
make[5]: Leaving directory
`/home/dj/icedtea6-d2579e023b0e/openjdk-ecj/corba/make/sun/corba/core'
make[4]: *** [build] Error 1
make[4]: Leaving directory
`/home/dj/icedtea6-d2579e023b0e/openjdk-ecj/corba/make/sun/corba'
make[3]: *** [build] Error 1
make[3]: Leaving directory
`/home/dj/icedtea6-d2579e023b0e/openjdk-ecj/corba/make/sun'
make[2]: *** [build] Error 1
make[2]: Leaving directory
`/home/dj/icedtea6-d2579e023b0e/openjdk-ecj/corba/make'
make[1]: *** [corba-build] Error 2
make[1]: Leaving directory
`/home/dj/icedtea6-d2579e023b0e/openjdk-ecj/control/make'
make: *** [stamps/icedtea-ecj.stamp] Error 2

If I do something stupid like:

OTHER_CFLAGS=`grep "^MOZILLA_CFLAGS" Makefile | sed 's at MOZILLA_CFLAGS = @@'`
make

The build now fails at a much later point (which I don't have handy ATM).


-- 
Configure bugmail: http://icedtea.classpath.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the distro-pkg-dev mailing list