Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 155590 - /usr/bin/ant: eval: line 171: unexpected EOF while looking for matching `"'
Summary: /usr/bin/ant: eval: line 171: unexpected EOF while looking for matching `"'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
: 152291 153817 155573 165126 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-11-18 07:36 UTC by Nicolai Guido Klausen
Modified: 2007-04-28 16:04 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,8.22 KB, text/plain)
2006-11-18 07:36 UTC, Nicolai Guido Klausen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolai Guido Klausen 2006-11-18 07:36:21 UTC
/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
Comment 1 Nicolai Guido Klausen 2006-11-18 07:36:39 UTC
Created attachment 102277 [details]
emerge --info
Comment 3 Josh Nichols (RETIRED) gentoo-dev 2006-11-19 10:31:24 UTC
This error seems really familar to me, but I can't place what causes it.

Could you try remerging ant-core?
Comment 4 Nicolai Guido Klausen 2006-11-19 13:17:54 UTC
All ready don that, I allso tryed to install an older version... none of that helped
Comment 5 Petteri Räty (RETIRED) gentoo-dev 2006-11-22 22:43:54 UTC
(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
Comment 6 Nicolai Guido Klausen 2006-11-24 09:04:56 UTC
$ 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
Comment 7 Petteri Räty (RETIRED) gentoo-dev 2006-11-24 14:46:50 UTC
(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
Comment 8 Petteri Räty (RETIRED) gentoo-dev 2006-11-24 14:48:11 UTC
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
Comment 9 Josh Nichols (RETIRED) gentoo-dev 2006-11-24 17:15:00 UTC
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.
Comment 10 Nicolai Guido Klausen 2006-11-26 10:04:33 UTC
$ 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
Comment 11 Josh Nichols (RETIRED) gentoo-dev 2006-11-26 10:45:01 UTC
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.
Comment 12 Nicolai Guido Klausen 2006-11-26 11:57:33 UTC
$ java-config --classpath sun-jaf-bin
/usr/share/sun-jaf-bin/lib/activation.jar

reemerged sun-jaf-bin, same error
Comment 13 Petteri Räty (RETIRED) gentoo-dev 2006-11-26 12:02:16 UTC
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.
Comment 14 Nicolai Guido Klausen 2006-11-26 12:08:41 UTC
 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
Comment 15 Petteri Räty (RETIRED) gentoo-dev 2006-11-26 12:47:08 UTC
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.
Comment 16 Petteri Räty (RETIRED) gentoo-dev 2006-11-26 14:09:29 UTC
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.
Comment 17 Petteri Räty (RETIRED) gentoo-dev 2006-12-07 01:38:10 UTC
*** Bug 153817 has been marked as a duplicate of this bug. ***
Comment 18 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-12-13 18:03:47 UTC
*** Bug 155573 has been marked as a duplicate of this bug. ***
Comment 19 Petteri Räty (RETIRED) gentoo-dev 2007-02-03 17:22:11 UTC
*** Bug 165126 has been marked as a duplicate of this bug. ***
Comment 20 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-04-27 22:57:54 UTC
*** Bug 152291 has been marked as a duplicate of this bug. ***