Hello,
i've a problem by buildung the PKI from Subversion source. When building the PK12util
i've got the following error:
[root@ca4sit-2 util]# ./build_linux
Buildfile: config/release.xml
[echo] Importing shared properties ...
[echo] Completed importing shared properties.
main:
[echo] Generating 'pki-util' RPMS and SRPMS ...
[echo] Established the '/usr/src/release/pki/base/util' top-level
directory.
[echo] Creating the 'pki-util' source distribution ...
[exec] Buildfile: build.xml
[exec] distribute_source:
[exec] [echo] Creating 'pki-util' source distributions ...
[exec] [mkdir] Created dir: /usr/src/release/pki/base/util/dist/source
[exec] [echo] Creating 'pki-util' source zip files ...
[exec] [zip] Building zip:
/usr/src/release/pki/base/util/dist/source/pki-util-1.0.0.zip
[exec] [echo] Completed creating 'pki-util' source zip files.
[exec] [echo] Creating 'pki-util' source tar files ...
[exec] [tar] Building tar:
/usr/src/release/pki/base/util/dist/source/pki-util-1.0.0.tar
[exec] [echo] Completed creating 'pki-util' source tar files.
[exec] [echo] Creating 'pki-util' source gzip files ...
[exec] [gzip] Building:
/usr/src/release/pki/base/util/dist/source/pki-util-1.0.0.tar.gz
[exec] [delete] Deleting:
/usr/src/release/pki/base/util/dist/source/pki-util-1.0.0.tar
[exec] [echo] Completed creating 'pki-util' source gzip files.
[exec] [echo] Completed creating 'pki-util' source distributions.
[exec] BUILD SUCCESSFUL
[exec] Total time: 1 second
[echo] Completed creating the 'pki-util' source distribution.
[echo] Creating 'pki-util' RPM directories ...
[mkdir] Created dir: /usr/src/release/pki/base/util/dist/rpmpkg
[mkdir] Created dir: /usr/src/release/pki/base/util/dist/rpmpkg/SOURCES
[mkdir] Created dir: /usr/src/release/pki/base/util/dist/rpmpkg/RPMS
[mkdir] Created dir: /usr/src/release/pki/base/util/dist/rpmpkg/SRPMS
[mkdir] Created dir: /usr/src/release/pki/base/util/dist/rpmpkg/SPECS
[mkdir] Created dir: /usr/src/release/pki/base/util/dist/rpmpkg/BUILD
[echo] Completed creating 'pki-util' RPM directories.
[echo] Building 'pki-util' RPMS and SRPMS ...
[exec] Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.20981
[exec] + umask 022
[exec] + cd /usr/src/release/pki/base/util/./dist/rpmpkg/BUILD
[exec] + cd /usr/src/release/pki/base/util/dist/rpmpkg/BUILD
[exec] + rm -rf pki-util-1.0.0
[exec] + /bin/gzip -dc
/usr/src/release/pki/base/util/dist/source/pki-util-1.0.0.tar.gz
[exec] + tar -xf -
[exec] + STATUS=0
[exec] + '[' 0 -ne 0 ']'
[exec] + cd pki-util-1.0.0
[exec] ++ /usr/bin/id -u
[exec] + '[' 0 = 0 ']'
[exec] + /bin/chown -Rhf root .
[exec] ++ /usr/bin/id -u
[exec] + '[' 0 = 0 ']'
[exec] + /bin/chgrp -Rhf root .
[exec] + /bin/chmod -Rf a+rX,u+w,g-w,o-w .
[exec] + exit 0
[exec] Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.90748
[exec] + umask 022
[exec] + cd /usr/src/release/pki/base/util/./dist/rpmpkg/BUILD
[exec] + cd pki-util-1.0.0
[exec] + ant -Dspecfile=pki-util.spec
[exec] Buildfile: build.xml
[exec] clean:
[exec] [echo] Removing 'pki-util' component directories ...
[exec] [echo] Completed removing 'pki-util' component directories.
[exec] clean_javadocs:
[exec] [echo] Removing 'pki-util' javadocs directory ...
[exec] [echo] Completed removing 'pki-util' javadocs directory.
[exec] compile_java:
[exec] [echo] Compiling 'pki-util' java code from 'src' into
'build/classes' ...
[exec] [mkdir] Created dir:
/usr/src/release/pki/base/util/dist/rpmpkg/BUILD/pki-util-1.0.0/build/classes
[exec] [javac] Compiling 179 source files to
/usr/src/release/pki/base/util/dist/rpmpkg/BUILD/pki-util-1.0.0/build/classes
[exec] [javac]
/usr/src/release/pki/base/util/dist/rpmpkg/BUILD/pki-util-1.0.0/src/netscape/security/extensions/AuthInfoAccessExtension.java:239:
cannot access com.netscape.osutil.OSUtil
[exec] [javac] bad class file:
/usr/lib/java/osutil.jar(com/netscape/osutil/OSUtil.class)
[exec] [javac] class file has wrong version 50.0, should be 49.0
[exec] [javac] Please remove or make sure it appears in the correct subdirectory
of the classpath.
[exec] [javac]
System.out.println(com.netscape.osutil.OSUtil.BtoA(os.toByteArray()));
[exec] [javac] ^
[exec] [javac] Note: * uses or overrides a deprecated API.
[exec] [javac] Note: Recompile with -Xlint:deprecation for details.
[exec] [javac] Note: Some input files use unchecked or unsafe operations.
[exec] [javac] Note: Recompile with -Xlint:unchecked for details.
[exec] [javac] 1 error
[exec] BUILD FAILED
[exec] /usr/src/release/pki/base/util/dist/rpmpkg/BUILD/pki-util-1.0.0/build.xml:66:
Compile failed; see the compiler error output for details.
[exec] Total time: 1 second
[exec] error: Bad exit status from /var/tmp/rpm-tmp.90748 (%build)
[exec] RPM build errors:
[exec] Bad exit status from /var/tmp/rpm-tmp.90748 (%build)
[exec] Result: 1
[echo] Completed building 'pki-util' RPMS and SRPMS.
[echo] Removing various 'pki-util' RPM directories and files ...
[delete] Deleting directory /usr/src/release/pki/base/util/dist/rpmpkg/BUILD
[echo] Completed removing various 'pki-util' RPM directories and files.
[echo] Completed generating 'pki-util' RPMS and SRPMS.
Reagards
Klaus Heyden
Show replies by date