/usr/bin/ant: eval: line 171: unexpected EOF while looking for matching `"' /usr/bin/ant: eval: line 172: syntax error: unexpected end of file I can't finde any missing `"' in /usr/bin/ant I have dev-java/ant-1.6.5 and dev-java/ant-core-1.6.5-r14 This error casuse some of ebuilds to fail on my system, amongthem are: dev-java/commons-digester-1.7-r2 dev-util/eclipse-sdk-3.2.1-r1 dev-java/sun-jaf-1.1
Created attachment 102277 [details] emerge --info
I seem to not be the only gentoo user width the problem: http://mailgate.supereva.com/linux/linux.gentoo.user.es/msg05554.html I don't understand Spanish. but google have translation (badly layouted) at: http://translate.google.com/translate?hl=en&sl=es&u=http://mailgate.supereva.com/linux/linux.gentoo.user.es/msg05554.html&sa=X&oi=translate&resnum=1&ct=result&prev=/search%3Fq%3D/usr/bin/ant:%2Beval:%2Bline%2B171:%2Bunexpected%2BEOF%2Bwhile%2Blooking%2Bfor%2Bmatching%2B%2560%2522%2527%26num%3D100%26hl%3Den%26hs%3DMF7%26lr%3D%26newwindow%3D1%26safe%3Doff%26client%3Dfirefox-a%26rls%3Dorg.mozilla:da-DK:official
This error seems really familar to me, but I can't place what causes it. Could you try remerging ant-core?
All ready don that, I allso tryed to install an older version... none of that helped
(In reply to comment #4) > All ready don that, I allso tryed to install an older version... none of that > helped > Please post the output of ant --execdebug
$ ant --execdebug exec "/opt/sun-jdk-1.5.0.08/bin/java" -classpath "/usr/share/ant-core/lib/ant-launcher.jar:/usr/share/commons-logging/lib/commons-logging.jar:/usr/share/xerces-2/lib/xercesImpl.jar:/usr/share/jdepend/lib/jdepend.jar:"/usr/share/sun-jaf-bin/lib/activation.jar:/usr/share/sun-jaf-bin/lib/activation.jar:/usr/share/xalan/lib/xalan.jar:/usr/share/sun-javamail-bin/lib/smtp.jar:/usr/share/jython/lib/jython.jar:/usr/share/antlr/lib/antlr.jar:/usr/share/xerces-2/lib/xercesSamples.jar:/usr/share/xml-commons-external-1.3/lib/xml-apis.jar:/usr/share/junit/lib/junit.jar:/usr/share/rhino-1.5/lib/js.jar:/usr/share/xalan/lib/serializer.jar:/usr/share/commons-collections/lib/commons-collections.jar:/usr/share/jakarta-regexp-1.3/lib/jakarta-regexp.jar:/usr/share/bcel/lib/bcel.jar:/usr/share/sun-javamail-bin/lib/mail.jar:/usr/share/bsh/lib/bsh.jar:/usr/share/jakarta-oro-2.0/lib/jakarta-oro.jar:/usr/share/commons-logging/lib/commons-logging-api.jar:/usr/share/xerces-2/lib/xml-apis.jar:/usr/share/log4j/lib/log4j.jar:/usr/share/commons-net/lib/commons-net.jar:/usr/share/sun-javamail-bin/lib/pop3.jar:/usr/share/sun-javamail-bin/lib/imap.jar:/usr/share/sun-javamail-bin/lib/mailapi.jar:/usr/share/commons-beanutils-1.6/lib/commons-beanutils.jar:/usr/share/jsch/lib/jsch.jar:/opt/sun-jdk-1.5.0.08/lib/tools.jar" -Dant.home="/usr/share/ant-core" -Dant.library.dir="/usr/share/ant-core/lib" org.apache.tools.ant.launch.Launcher -cp "." /usr/bin/ant: eval: line 171: unexpected EOF while looking for matching `"' /usr/bin/ant: eval: line 172: syntax error: unexpected end of file
(In reply to comment #6) > $ ant --execdebug > exec "/opt/sun-jdk-1.5.0.08/bin/java" -classpath > "/usr/share/ant-core/lib/ant-launcher.jar:/usr/share/commons-logging/lib/commons-logging.jar:/usr/share/xerces-2/lib/xercesImpl.jar:/usr/share/jdepend/lib/jdepend.jar:"/usr/share/sun-jaf-bin/lib/activation.jar:/usr/share/sun-jaf-bin/lib/activation.jar:/usr/share/xalan/lib/xalan.jar:/usr/share/sun-javamail-bin/lib/smtp.jar:/usr/share/jython/lib/jython.jar:/usr/share/antlr/lib/antlr.jar:/usr/share/xerces-2/lib/xercesSamples.jar:/usr/share/xml-commons-external-1.3/lib/xml-apis.jar:/usr/share/junit/lib/junit.jar:/usr/share/rhino-1.5/lib/js.jar:/usr/share/xalan/lib/serializer.jar:/usr/share/commons-collections/lib/commons-collections.jar:/usr/share/jakarta-regexp-1.3/lib/jakarta-regexp.jar:/usr/share/bcel/lib/bcel.jar:/usr/share/sun-javamail-bin/lib/mail.jar:/usr/share/bsh/lib/bsh.jar:/usr/share/jakarta-oro-2.0/lib/jakarta-oro.jar:/usr/share/commons-logging/lib/commons-logging-api.jar:/usr/share/xerces-2/lib/xml-apis.jar:/usr/share/log4j/lib/log4j.jar:/usr/share/commons-net/lib/commons-net.jar:/usr/share/sun-javamail-bin/lib/pop3.jar:/usr/share/sun-javamail-bin/lib/imap.jar:/usr/share/sun-javamail-bin/lib/mailapi.jar:/usr/share/commons-beanutils-1.6/lib/commons-beanutils.jar:/usr/share/jsch/lib/jsch.jar:/opt/sun-jdk-1.5.0.08/lib/tools.jar" The reason for the problem is that you have one extra double quote inside LOCALCLASSPATH. Please post the output of java-config --classpath=log4j,xml-commons-external-1.3,xerces-2,xalan,junit,antlr,bcel,bsh,commons-beanutils-1.6,commons-collections,commons-logging,commons-net,jakarta-o
java-config --classpath=log4j,xml-commons-external-1.3,xerces-2,xalan,junit,antlr,bcel,bsh,commons-beanutils-1.6,commons-collections,commons-logging,commons-net,jakarta-o ro-2.0,jdepend,jsch,jakarta-regexp-1.3,rhino-1.5,jython,jta,sun-jaf-bin,sun-javamail-bin
Could you paste output of emerge --info? In particular, I'm interested in what versions of java-config you have installed. My current theory is that you're using the latest version of java-config, with older versions not properly handling quoting of package.env files, which would result in extra quotes when doing java-config --classpath.
$ java-config --classpath=log4j,xml-commons-external-1.3,xerces-2,xalan,junit,antlr,bcel,bsh,commons-beanutils-1.6,commons-collections,commons-logging,commons-net,jakarta-o /usr/share/commons-logging/lib/commons-logging.jar:/usr/share/xalan/lib/serializer.jar:/usr/share/commons-collections/lib/commons-collections.jar:/usr/share/xalan/lib/xalan.jar:/usr/share/junit/lib/junit.jar:/usr/share/xerces-2/lib/xercesImpl.jar:/usr/share/log4j/lib/log4j.jar:/usr/share/bcel/lib/bcel.jar:/usr/share/antlr/lib/antlr.jar:/usr/share/xerces-2/lib/xercesSamples.jar:/usr/share/bsh/lib/bsh.jar:/usr/share/xml-commons-external-1.3/lib/xml-apis.jar:/usr/share/commons-beanutils-1.6/lib/commons-beanutils.jar:/usr/share/xerces-2/lib/xml-apis.jar:/usr/share/commons-net/lib/commons-net.jar:/usr/share/commons-logging/lib/commons-logging-api.jar !!! ERROR: Package jakarta-o was not found! $ java-config --classpath=log4j,xml-commons-external-1.3,xerces-2,xalan,junit,antlr,bcel,bsh,commons-beanutils-1.6,commons-collections,commons-logging,commons-net,jakarta-oro-2.0,jdepend,jsch,jakarta-regexp-1.3,rhino-1.5,jython,jta,sun-jaf-bin,sun-javamail-bin /usr/share/commons-logging/lib/commons-logging.jar:/usr/share/xerces-2/lib/xercesImpl.jar:/usr/share/jdepend/lib/jdepend.jar:"/usr/share/sun-jaf-bin/lib/activation.jar:/usr/share/sun-jaf-bin/lib/activation.jar:/usr/share/xalan/lib/xalan.jar:/usr/share/sun-javamail-bin/lib/smtp.jar:/usr/share/jython/lib/jython.jar:/usr/share/antlr/lib/antlr.jar:/usr/share/xerces-2/lib/xercesSamples.jar:/usr/share/xml-commons-external-1.3/lib/xml-apis.jar:/usr/share/junit/lib/junit.jar:/usr/share/rhino-1.5/lib/js.jar:/usr/share/xalan/lib/serializer.jar:/usr/share/commons-collections/lib/commons-collections.jar:/usr/share/jakarta-regexp-1.3/lib/jakarta-regexp.jar:/usr/share/bcel/lib/bcel.jar:/usr/share/sun-javamail-bin/lib/mail.jar:/usr/share/bsh/lib/bsh.jar:/usr/share/jakarta-oro-2.0/lib/jakarta-oro.jar:/usr/share/commons-logging/lib/commons-logging-api.jar:/usr/share/xerces-2/lib/xml-apis.jar:/usr/share/log4j/lib/log4j.jar:/usr/share/commons-net/lib/commons-net.jar:/usr/share/sun-javamail-bin/lib/pop3.jar:/usr/share/sun-javamail-bin/lib/imap.jar:/usr/share/sun-javamail-bin/lib/mailapi.jar:/usr/share/commons-beanutils-1.6/lib/commons-beanutils.jar:/usr/share/jsch/lib/jsch.jar !!! ERROR: Package jta was not found! $ java-config -V Java Configuration Utility Version 2.0.30 emerge --info is in the attachment
It looks like something is up with sun-jaf-bin, notice the extra " in there. Could you try just 'java-config --classpath sun-jaf-bin' and verify that it has a quote in there? If that's the case, try remerging sun-jaf-bin.
$ java-config --classpath sun-jaf-bin /usr/share/sun-jaf-bin/lib/activation.jar reemerged sun-jaf-bin, same error
The weird thing here is the following: /usr/share/xerces-2/lib/xercesImpl.jar:/usr/share/jdepend/lib/jdepend.jar:"/usr/share/sun-jaf-bin/lib/activation.jar:/usr/share/sun-jaf-bin/lib/activation.jar:/usr/share/xalan/lib/xalan.jar This is between xerces and xalan which are right after each other in the java-config --classpath call Please post the output of java-config -p xerces-2 and java-config -p xalan Could you also come to #gentoo-java@freenode in IRC to more easily debug this.
java-config -p xerces-2 /usr/share/xerces-2/lib/xercesSamples.jar:/usr/share/xerces-2/lib/xercesImpl.jar:/usr/share/xerces-2/lib/xml-apis.jar java-config -p xalan /usr/share/xalan/lib/xalan.jar:/usr/share/xalan/lib/serializer.jar
This is a problem with sun-javamail-bin-1.3.1. Let's mark 1.4 stable to get rid of this: pena libvorbis # java-config -p sun-javamail-bin /usr/share/sun-javamail-bin/lib/smtp.jar:/usr/share/sun-javamail-bin/lib/pop3.jar:/usr/share/sun-javamail-bin/lib/mail.jar:/usr/share/sun-javamail-bin/lib/mailapi.jar:/usr/share/sun-javamail-bin/lib/imap.jar:"/usr/share/sun-jaf-bin/lib/activation.jar I will be looking what causes package.env to have this entry. We should probably look at solving bug 143246 for getting this stable.
Ok. problem solved. With the help of Nicolai Guido Klausen we were able to nail down the problem to dev-java/sun-javamail-bin-1.3.1. Using DEP_APPEND in the eclass was not properly handled inside java-pgk.eclass producing package.env files that had quotes inside them. java-config-1 ignores these quotes but java-config-2 puts the quotes inside the output and breaking ant in that way. I opened bug #156351 for improving java-config-2 to output an error message if it encounters malformatted package.env files. Please upgrade sun-javamai-bin to 1.3.1-r1 or just re-emerge as they are indentical ebuilds.
*** Bug 153817 has been marked as a duplicate of this bug. ***
*** Bug 155573 has been marked as a duplicate of this bug. ***
*** Bug 165126 has been marked as a duplicate of this bug. ***
*** Bug 152291 has been marked as a duplicate of this bug. ***