Bug 666

Summary: JOGL Build Issue
Product: [JogAmp] Jogl Reporter: Rob Hatcherson <rob.hatcherson>
Component: coreAssignee: Sven Gothel <sgothel>
Status: RESOLVED FIXED    
Severity: major CC: sgothel
Priority: ---    
Version: 2   
Hardware: All   
OS: all   
Type: --- SCM Refs:
955a444939ba67c6077b6937e191719aa184dafe
Workaround: ---

Description Rob Hatcherson 2013-01-08 20:55:43 CET
Sven, I wasn't sure whether or not this was worth a bug filing (probably not?) but when I sync'd your master just now JOGL wouldn't build.  The last commit from "git log" says 6fd9c3d84e1758ae27cd10a89237a558460ca1fb.  There are some garbage characters at the end of line 438 in GLBase.java.  The chars are the kind of you get e.g. when copy-and-pasting out of PDF files.  When I deleted these chars the whole thing went ahead and built.  If you like I can push the fix up and open a pull request, but it hardly seemed worth it other then for me to practice with git.

The error reported from the build was:

java.generate.copy2temp:
  [gluegen] Exception in thread "main" java.lang.RuntimeException: Exception occurred while generating glue code.
  [gluegen] 	at com.jogamp.gluegen.GlueGen.run(GlueGen.java:304)
  [gluegen] 	at com.jogamp.gluegen.GlueGen.main(GlueGen.java:363)
  [gluegen] Caused by: java.lang.RuntimeException: GLBase.java:438:69: expecting '*', found '?'
  [gluegen] 	at com.jogamp.gluegen.JavaConfiguration.readExtendedInterfaceSymbols(JavaConfiguration.java:1137)
  [gluegen] 	at com.jogamp.gluegen.JavaConfiguration.dispatch(JavaConfiguration.java:926)
  [gluegen] 	at com.jogamp.gluegen.procaddress.ProcAddressConfiguration.dispatch(ProcAddressConfiguration.java:93)
  [gluegen] 	at com.jogamp.gluegen.opengl.GLConfiguration.dispatch(GLConfiguration.java:109)
  [gluegen] 	at com.jogamp.gluegen.JavaConfiguration.read(JavaConfiguration.java:216)
  [gluegen] 	at com.jogamp.gluegen.JavaConfiguration.read(JavaConfiguration.java:177)
  [gluegen] 	at com.jogamp.gluegen.JavaEmitter.readConfigurationFile(JavaEmitter.java:101)
  [gluegen] 	at com.jogamp.gluegen.GlueGen.run(GlueGen.java:174)
  [gluegen] 	... 1 more
  [gluegen] Caused by: GLBase.java:438:69: expecting '*', found '?'
  [gluegen] 	at com.jogamp.gluegen.jgram.JavaLexer.nextToken(JavaLexer.java:379)
  [gluegen] 	at antlr.TokenBuffer.fill(TokenBuffer.java:69)
  [gluegen] 	at antlr.TokenBuffer.LA(TokenBuffer.java:80)
  [gluegen] 	at antlr.LLkParser.LA(LLkParser.java:52)
  [gluegen] 	at com.jogamp.gluegen.jgram.JavaParser.classBlock(JavaParser.java:1030)
  [gluegen] 	at com.jogamp.gluegen.jgram.JavaParser.interfaceDefinition(JavaParser.java:463)
  [gluegen] 	at com.jogamp.gluegen.jgram.JavaParser.typeDefinition(JavaParser.java:258)
  [gluegen] 	at com.jogamp.gluegen.jgram.JavaParser.compilationUnit(JavaParser.java:144)
  [gluegen] 	at com.jogamp.gluegen.JavaConfiguration.readExtendedInterfaceSymbols(JavaConfiguration.java:1135)
  [gluegen] 	... 8 more
Comment 1 Sven Gothel 2013-01-12 09:15:15 CET
Introduced w/ commit e7064ece049705e013d80985eae698ce0ee3c4e3, fixed.

Thanks Rob.

BTW: You got _the_ evil bug number .. one in a million :)
Comment 2 Rob Hatcherson 2013-01-15 17:13:48 CET
:-O  !!!!!!!!!!!!!