[Bug 572512] Review Request: gluegen - Java/JNI glue code generator to call out to ANSI C

bugzilla at redhat.com bugzilla at redhat.com
Fri Apr 2 16:53:32 UTC 2010


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=572512

--- Comment #10 from Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> 2010-04-02 12:53:28 EDT ---
(In reply to comment #9)
> Hi, Mamoru,
> Is there any directory I should use with 777 permission. It is mandatory to
> build jogl correctly. (gluegen is just a dependency).

- I don't know how to build gluegen, however just copying whole
  tree of /usr/share/gluegen-source to somewhere else (most likely
  under %_builddir/jogl-XXXXX or so) when building jogl is the simplest idea.

> About this debuginfo problem, any hint? I have no idea.    
- (First of all, I am not familiar with java)
  When "ant -verbose" is used (i.e. at %build, use
--------------------------------------------------------------
ant -verbose \
 -Dantlr.jar=$(build-classpath antlr)
--------------------------------------------------------------
  http://koji.fedoraproject.org/koji/taskinfo?taskID=2091598
  build.log shows:
--------------------------------------------------------------
c.build:
     [echo] Output lib name = gluegen-rt
Override ignored for property "c.compiler.debug"
    [mkdir] Created dir: /builddir/build/BUILD/gluegen/build/obj
     [echo] Compiling src/native/unix/*.c
     [echo] user.dir=/builddir/build/BUILD/gluegen/make
       [cc] 1 total files to be compiled.
       [cc] gcc -c -fno-rtti -fPIC
-I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/include
-I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/include/linux
/builddir/build/BUILD/gluegen/src/native/unix/UnixDynamicLinkerImpl_JNI.c
       [cc] cc1: warning: command line option "-fno-rtti" is valid for
C++/ObjC++ but not for C
       [cc] Starting link
       [cc] gcc -shared -o libgluegen-rt.so UnixDynamicLinkerImpl_JNI.o
--------------------------------------------------------------
  Here actually Fedora specific compilation flags are ignored, which
  causes improper debuginfo creation.

  Looking at gluegen/make/build.xml:
--------------------------------------------------------------
   333        <echo message="Compiling ${c.compiler.src.files}" />
   334        <echo message="user.dir=${user.dir}" />
   335  
   336        <cc outtype="shared" 
   337            objdir="../build/obj" 
   338            outfile="../build/obj/${output.lib.name}"
   339            optimize="${c.compiler.optimise}" 
   340            debug="${c.compiler.debug}"
   341            multithreaded="true" 
   342            exceptions="false" 
   343            rtti="false">   
--------------------------------------------------------------
  I guess changing "optimize" "debug" option to honor Fedora specific
  compilation flags will make debuginfor rpm being correctly created.

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the package-review mailing list