Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 35365

Summary: emege ant fails (dev-java/ant-1.5.4-r1)
Product: Gentoo Linux Reporter: Yogesh <ysharma>
Component: New packagesAssignee: Adrian Almenar <aalmenar>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Yogesh 2003-12-08 11:01:57 UTC
emerge  -n ant
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-java/ant-1.5.4-r1 to /
>>> md5 src_uri ;-) apache-ant-1.5.4-src.tar.bz2
>>> Unpacking source...
>>> Unpacking apache-ant-1.5.4-src.tar.bz2 to /var/tmp/portage/ant-1.5.4-r1/work
 * Applying build.sh-exit-fix.patch.gz...                                        
                                       [ ok ]
 * Applying rpmbuild.patch.gz...                                                 
                                       [ ok ]
>>> Source unpacked.
... Bootstrapping Ant Distribution
... Compiling Ant Classes
./bootstrap.sh: line 118: 10689 Killed                  "${JAVAC}" 
$BOOTJAVAC_OPTS -d ${CLASSDIR} ${TOOLS}/bzip2/*.java ${TOOLS}/tar/*.java 
${TOOLS}/zip/*.java ${TOOLS}/ant/util/regexp/RegexpMatcher.java ${TOOLS}
/ant/util/regexp/RegexpMatcherFactory.java ${TOOLS}/ant/util/*.java ${TOOLS}
/ant/types/*.java ${TOOLS}/ant/*.java ${TOOLS}/ant/taskdefs/*.java ${TOOLS}
/ant/taskdefs/compilers/*.java ${TOOLS}/ant/taskdefs/condition/*.java
... Failed compiling Ant classes !
Bootstrap FAILED

!!! ERROR: dev-java/ant-1.5.4-r1 failed.
!!! Function src_compile, Line 80, Exitcode 1
!!! (no error message)


Reproducible: Always
Steps to Reproduce:
1.emerge ant



I have updated system as of today 12/08/2003 10:00 AM PST

I am not sure why install of exim requires ant ?
Comment 1 Adrian Almenar 2003-12-08 16:29:10 UTC
Are you using GRSecurity ?
Comment 2 Yogesh 2003-12-08 20:42:29 UTC
Yes, with HIGH Security option.
Comment 3 Adrian Almenar 2003-12-13 08:49:21 UTC
Then the problem is GRsecurity killing your Java VM.

You can try this (Options taken from blackdown-jdk ebuild, remeber to change <your Java VM here>):

for paxkills in "jar" "javac" "java"
do
  chpax -pemsv /opt/<your Java VM here>/bin/$paxkills
done

chpax -pemsv /opt/<your Java VM here>/jre/bin/java_vm

"you should have seen lots of chpax output above now"
"make sure the grsec ACL contains those entries also"
"because enabling it will override the chpax setting"
"on the physical files - help for PaX and grsecurity"
"can be given by #gentoo-hardened + pappy@gentoo.org"
Comment 4 Adrian Almenar 2003-12-15 18:17:14 UTC
Resolved as INVALID since its not really a java problem, it a GRSecurity misconfigured.