Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#27066 closed defect (fixed)

commons-daemon @1.0.2 fails to build when java headers are missing

Reported by: calle.kabo@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc:
Port: commons-daemon

Description

$ sudo port -d install commons-daemon
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/java/commons-daemon
DEBUG: OS darwin/10.4.0 (Mac OS X 10.6) arch i386
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: adding the default universal variant
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Attempting ln -sf /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work /opt/local/var/macports/sources/rsync.macports.org/release/ports/java/commons-daemon/work
DEBUG: Starting logging for commons-daemon
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: apache-ant 1.8.1_0 exists in the ports tree
DEBUG: apache-ant 1.8.1_0  is the latest installed
DEBUG: apache-ant 1.8.1_0  is active
DEBUG: Merging existing variants '' into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/apache-ant
DEBUG: OS darwin/10.4.0 (Mac OS X 10.6) arch i386
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: universal_variant is false, so not adding the default universal variant
DEBUG: No need to upgrade! apache-ant 1.8.1_0 >= apache-ant 1.8.1_0
DEBUG: Found Dependency: path: /usr/bin filename: java regex: ^java$
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: junit 4.6_1 exists in the ports tree
DEBUG: junit 4.6_1  is the latest installed
DEBUG: junit 4.6_1  is active
DEBUG: Merging existing variants '' into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/java/junit
DEBUG: OS darwin/10.4.0 (Mac OS X 10.6) arch i386
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: universal_variant is false, so not adding the default universal variant
DEBUG: No need to upgrade! junit 4.6_1 >= junit 4.6_1
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: hamcrest-core 1.2_0 exists in the ports tree
DEBUG: hamcrest-core 1.2_0  is the latest installed
DEBUG: hamcrest-core 1.2_0  is active
DEBUG: Merging existing variants '' into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/java/hamcrest-core
DEBUG: OS darwin/10.4.0 (Mac OS X 10.6) arch i386
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: universal_variant is false, so not adding the default universal variant
DEBUG: No need to upgrade! hamcrest-core 1.2_0 >= hamcrest-core 1.2_0
--->  Computing dependencies for commons-daemon
DEBUG: Searching for dependency: apache-ant
DEBUG: Found Dependency: receipt exists for apache-ant
DEBUG: Searching for dependency: kaffe
DEBUG: Didn't find receipt, going to depspec regex for: kaffe
DEBUG: Found Dependency: path: /usr/bin filename: java regex: ^java$
DEBUG: Found Dependency: path: /usr/bin filename: java regex: ^java$
DEBUG: Searching for dependency: junit
DEBUG: Found Dependency: receipt exists for junit
DEBUG: Executing org.macports.main (commons-daemon)
--->  Fetching commons-daemon
DEBUG: fetch phase started at Fri Oct 29 22:40:44 CEST 2010
DEBUG: Executing org.macports.fetch (commons-daemon)
--->  commons-daemon-1.0.2-src.tar.gz doesn't seem to exist in /opt/local/var/macports/distfiles/commons-daemon
DEBUG: Pinging www.ibiblio.org...
DEBUG: Pinging www.gtlib.gatech.edu...
DEBUG: Pinging apache.mirror.rafal.ca...
DEBUG: Pinging apache.mirroring.de...
DEBUG: Pinging ftp.infoscience.co.jp...
DEBUG: Pinging apache.multidist.com...
DEBUG: Pinging mirror.internode.on.net...
DEBUG: Pinging www.mirrorservice.org...
DEBUG: Pinging mirror.aarnet.edu.au...
DEBUG: Pinging apache-mirror.dkuug.dk...
DEBUG: Pinging apache.is.co.za...
DEBUG: Pinging mirror.facebook.net...
DEBUG: Pinging www.apache.org...
DEBUG: Pinging archive.apache.org...
DEBUG: Pinging distfiles.macports.org...
DEBUG: Pinging aarnet.au.distfiles.macports.org...
DEBUG: Pinging lil.fr.distfiles.macports.org...
DEBUG: Pinging sea.us.distfiles.macports.org...
DEBUG: www.ibiblio.org ping time is 152.128
DEBUG: www.gtlib.gatech.edu ping time is 10000
DEBUG: apache.mirror.rafal.ca ping time is 151.545
DEBUG: apache.mirroring.de ping time is 32.076
DEBUG: ftp.infoscience.co.jp ping time is 298.672
DEBUG: apache.multidist.com ping time is 44.176
DEBUG: mirror.internode.on.net ping time is 390.324
DEBUG: www.mirrorservice.org ping time is 46.539
DEBUG: mirror.aarnet.edu.au ping time is 348.059
DEBUG: apache-mirror.dkuug.dk ping time is 10000
DEBUG: apache.is.co.za ping time is 287.884
DEBUG: mirror.facebook.net ping time is 209.214
DEBUG: www.apache.org ping time is 195.998
DEBUG: archive.apache.org ping time is 184.778
DEBUG: distfiles.macports.org ping time is 176.036
DEBUG: aarnet.au.distfiles.macports.org ping time is 348.192
DEBUG: lil.fr.distfiles.macports.org ping time is 39.219
DEBUG: sea.us.distfiles.macports.org ping time is 10000
--->  Attempting to fetch commons-daemon-1.0.2-src.tar.gz from http://apache.mirroring.de/commons/daemon/source/
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
DEBUG: Fetching failed:: The requested URL returned error: 404
--->  Attempting to fetch commons-daemon-1.0.2-src.tar.gz from http://lil.fr.distfiles.macports.org/commons-daemon
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  378k  100  378k    0     0   411k      0 --:--:-- --:--:-- --:--:--  460k
--->  Verifying checksum(s) for commons-daemon
DEBUG: checksum phase started at Fri Oct 29 22:40:48 CEST 2010
DEBUG: Executing org.macports.checksum (commons-daemon)
--->  Checksumming commons-daemon-1.0.2-src.tar.gz
DEBUG: Correct (md5) checksum for commons-daemon-1.0.2-src.tar.gz
DEBUG: Correct (sha1) checksum for commons-daemon-1.0.2-src.tar.gz
DEBUG: Correct (rmd160) checksum for commons-daemon-1.0.2-src.tar.gz
--->  Extracting commons-daemon
DEBUG: extract phase started at Fri Oct 29 22:40:48 CEST 2010
DEBUG: Executing org.macports.extract (commons-daemon)
--->  Extracting commons-daemon-1.0.2-src.tar.gz
DEBUG: setting option extract.args to '/opt/local/var/macports/distfiles/commons-daemon/commons-daemon-1.0.2-src.tar.gz'
DEBUG: Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.6'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/commons-daemon/commons-daemon-1.0.2-src.tar.gz' | /usr/bin/gnutar --no-same-owner -xf -'
DEBUG: patch phase started at Fri Oct 29 22:40:48 CEST 2010
DEBUG: Executing org.macports.patch (commons-daemon)
--->  Applying patches to commons-daemon
--->  Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/java/commons-daemon/files/patch-native-dso-dyld.c
DEBUG: Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.6'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/commons-daemon-1.0.2-src" && /usr/bin/patch -p0'
patching file src/native/unix/native/dso-dyld.c
--->  Configuring commons-daemon
DEBUG: Using compiler 'Mac OS X gcc 4.2'
DEBUG: configure phase started at Fri Oct 29 22:40:48 CEST 2010
DEBUG: Executing org.macports.configure (commons-daemon)
DEBUG: Environment: CPATH='/opt/local/include' CFLAGS='-O2 -arch x86_64' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-O2 -arch x86_64' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.6' CXX='/usr/bin/g++-4.2' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/.CC_PRINT_OPTIONS' F90FLAGS='-O2 -m64' LDFLAGS='-L/opt/local/lib -arch x86_64' OBJC='/usr/bin/gcc-4.2' FCFLAGS='-O2 -m64' INSTALL='/usr/bin/install -c' OBJCFLAGS='-O2 -arch x86_64' FFLAGS='-O2 -m64' CC_PRINT_OPTIONS='YES' CC='/usr/bin/gcc-4.2'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/commons-daemon-1.0.2-src/src/native/unix" && ./configure --prefix=/opt/local'
*** Current host ***
checking build system type... i386-apple-darwin10.4.0
checking host system type... i386-apple-darwin10.4.0
checking cached host system type... ok
*** C-Language compilation tools ***
checking for gcc... /usr/bin/gcc-4.2
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc-4.2 accepts -g... yes
checking for /usr/bin/gcc-4.2 option to accept ISO C89... none needed
checking for ranlib... ranlib
*** Host support ***
checking C flags dependant on host system type... ok
*** Java compilation tools ***
checking for sablevm... NONE
checking for kaffe... NONE
checking for javac... /System/Library/Frameworks/JavaVM.framework/Home/bin/javac
/System/Library/Frameworks/JavaVM.framework/Home/bin/javac
checking wether the Java compiler (/System/Library/Frameworks/JavaVM.framework/Home/bin/javac) works... yes
checking for jar... /System/Library/Frameworks/JavaVM.framework/Home/bin/jar
gcc flags added
*** Writing output files ***
configure: creating ./config.status
config.status: creating Makefile
config.status: creating Makedefs
config.status: creating native/Makefile
*** All done ***
Now you can issue "make"
--->  Building commons-daemon
DEBUG: build phase started at Fri Oct 29 22:40:50 CEST 2010
DEBUG: Executing proc-pre-org.macports.build-build-0
Buildfile: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/commons-daemon-1.0.2-src/build.xml

init:
     [echo] -------- daemon 1.0.2 --------

prepare:
    [mkdir] Created dir: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/commons-daemon-1.0.2-src/target
    [mkdir] Created dir: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/commons-daemon-1.0.2-src/target/classes
    [mkdir] Created dir: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/commons-daemon-1.0.2-src/target/conf
    [mkdir] Created dir: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/commons-daemon-1.0.2-src/target/tests

compile:
    [javac] /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/commons-daemon-1.0.2-src/build.xml:160: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 6 source files to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/commons-daemon-1.0.2-src/target/classes
    [javac] Note: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/commons-daemon-1.0.2-src/src/java/org/apache/commons/daemon/support/DaemonLoader.java uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.

javadoc:
    [mkdir] Created dir: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/commons-daemon-1.0.2-src/dist
    [mkdir] Created dir: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/commons-daemon-1.0.2-src/dist/docs
    [mkdir] Created dir: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/commons-daemon-1.0.2-src/dist/docs/api
  [javadoc] Generating Javadoc
  [javadoc] Javadoc execution
  [javadoc] Loading source files for package org.apache.commons.daemon...
  [javadoc] Loading source files for package org.apache.commons.daemon.support...
  [javadoc] Constructing Javadoc information...
  [javadoc] Standard Doclet version 1.6.0_22
  [javadoc] Building tree for all the packages and classes...
  [javadoc] Building index for all the packages and classes...
  [javadoc] Building index for all classes...

dist:
    [mkdir] Created dir: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/commons-daemon-1.0.2-src/dist/lib
    [mkdir] Created dir: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/commons-daemon-1.0.2-src/dist/logs
     [copy] Copying 1 file to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/commons-daemon-1.0.2-src/dist
     [copy] Copying 1 file to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/commons-daemon-1.0.2-src/dist
     [copy] Copying 1 file to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/commons-daemon-1.0.2-src/dist
     [copy] Copying 61 files to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/commons-daemon-1.0.2-src/dist/bin/native/commons-daemon-1.0.2-native-src/unix
     [copy] Copying 54 files to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/commons-daemon-1.0.2-src/dist/bin/native/commons-daemon-1.0.2-native-src/windows
     [copy] Copying 1 file to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/commons-daemon-1.0.2-src/dist/bin/native/commons-daemon-1.0.2-native-src
     [copy] Copying 1 file to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/commons-daemon-1.0.2-src/dist/bin/native/commons-daemon-1.0.2-native-src
      [tar] Building tar: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/commons-daemon-1.0.2-src/dist/bin/commons-daemon-1.0.2-native-src.tar.gz
      [zip] Building zip: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/commons-daemon-1.0.2-src/dist/bin/commons-daemon-1.0.2-native-src.zip
   [delete] Deleting directory /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/commons-daemon-1.0.2-src/dist/bin/native

init:
     [echo] -------- daemon 1.0.2 --------

prepare:

compile:
    [javac] /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/commons-daemon-1.0.2-src/build.xml:160: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

jar:
    [mkdir] Created dir: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/commons-daemon-1.0.2-src/target/classes/META-INF
     [copy] Copying 1 file to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/commons-daemon-1.0.2-src/target/classes/META-INF
     [copy] Copying 1 file to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/commons-daemon-1.0.2-src/target/classes/META-INF
      [jar] Building jar: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/commons-daemon-1.0.2-src/dist/commons-daemon-1.0.2.jar

BUILD SUCCESSFUL
Total time: 5 seconds
DEBUG: Executing org.macports.build (commons-daemon)
DEBUG: port disallows a parallel build
DEBUG: Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.6'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/commons-daemon-1.0.2-src/src/native/unix" && /usr/bin/make clean all'
(cd native; /usr/bin/make  clean)
rm -f arguments.o debug.o dso-dlfcn.o dso-dyld.o help.o home.o java.o location.o replace.o locks.o signals.o ../jsvc jsvc-unix.o libservice.a
(cd native; /usr/bin/make  all)
/usr/bin/gcc-4.2 -O2 -arch x86_64 -DOS_DARWIN -DDSO_DLFCN -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers -Wall -Wstrict-prototypes -c jsvc-unix.c -o jsvc-unix.o
/usr/bin/gcc-4.2 -O2 -arch x86_64 -DOS_DARWIN -DDSO_DLFCN -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers -Wall -Wstrict-prototypes -c arguments.c -o arguments.o
/usr/bin/gcc-4.2 -O2 -arch x86_64 -DOS_DARWIN -DDSO_DLFCN -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers -Wall -Wstrict-prototypes -c debug.c -o debug.o
/usr/bin/gcc-4.2 -O2 -arch x86_64 -DOS_DARWIN -DDSO_DLFCN -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers -Wall -Wstrict-prototypes -c dso-dlfcn.c -o dso-dlfcn.o
/usr/bin/gcc-4.2 -O2 -arch x86_64 -DOS_DARWIN -DDSO_DLFCN -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers -Wall -Wstrict-prototypes -c dso-dyld.c -o dso-dyld.o
/usr/bin/gcc-4.2 -O2 -arch x86_64 -DOS_DARWIN -DDSO_DLFCN -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers -Wall -Wstrict-prototypes -c help.c -o help.o
/usr/bin/gcc-4.2 -O2 -arch x86_64 -DOS_DARWIN -DDSO_DLFCN -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers -Wall -Wstrict-prototypes -c home.c -o home.o
/usr/bin/gcc-4.2 -O2 -arch x86_64 -DOS_DARWIN -DDSO_DLFCN -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers -Wall -Wstrict-prototypes -c java.c -o java.o
java.c:23:17: error: jni.h: No such file or directory
java.c:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
java.c:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
java.c:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'cls'
java.c:43: error: expected ')' before '*' token
java.c: In function 'java_init':
java.c:92: warning: implicit declaration of function 'jint'
java.c:92: error: 'symb' undeclared (first use in this function)
java.c:92: error: (Each undeclared identifier is reported only once
java.c:92: error: for each function it appears in.)
java.c:92: error: 'JavaVM' undeclared (first use in this function)
java.c:92: error: expected expression before ',' token
java.c:92: error: 'JNIEnv' undeclared (first use in this function)
java.c:92: error: called object 'jint(<erroneous-expression>)' is not a function
java.c:93: error: 'JNINativeMethod' undeclared (first use in this function)
java.c:93: error: expected ';' before 'nativemethod'
java.c:94: error: 'JavaVMOption' undeclared (first use in this function)
java.c:94: error: 'opt' undeclared (first use in this function)
java.c:96: error: 'JavaVMInitArgs' undeclared (first use in this function)
java.c:96: error: expected ';' before 'arg'
java.c:98: warning: statement with no effect
java.c:98: error: expected ';' before 'ret'
java.c:190: error: 'arg' undeclared (first use in this function)
java.c:190: error: 'JNI_VERSION_1_2' undeclared (first use in this function)
java.c:207: error: expected expression before ')' token
java.c:239: error: 'ret' undeclared (first use in this function)
java.c:239: error: 'jvm' undeclared (first use in this function)
java.c:239: error: 'env' undeclared (first use in this function)
java.c:248: error: 'cls' undeclared (first use in this function)
java.c:260: error: 'nativemethod' undeclared (first use in this function)
java.c:263: error: 'shutdown' undeclared (first use in this function)
java.c: In function 'JVM_destroy':
java.c:276: error: 'jclass' undeclared (first use in this function)
java.c:276: error: expected ';' before 'system'
java.c:277: error: 'jmethodID' undeclared (first use in this function)
java.c:277: error: expected ';' before 'method'
java.c:283: error: 'env' undeclared (first use in this function)
java.c:292: error: 'method' undeclared (first use in this function)
java.c:299: error: 'jint' undeclared (first use in this function)
java.c:299: error: expected ')' before 'exit'
java.c:303: error: 'jvm' undeclared (first use in this function)
java.c: In function 'java_load':
java.c:310: error: 'jclass' undeclared (first use in this function)
java.c:310: error: expected ';' before 'stringClass'
java.c:311: error: 'jstring' undeclared (first use in this function)
java.c:311: error: expected ';' before 'className'
java.c:312: error: expected ';' before 'currentArgument'
java.c:313: error: 'jobjectArray' undeclared (first use in this function)
java.c:313: error: expected ';' before 'stringArray'
java.c:314: error: 'jmethodID' undeclared (first use in this function)
java.c:314: error: expected ';' before 'method'
java.c:315: error: 'jboolean' undeclared (first use in this function)
java.c:315: error: expected ';' before 'ret'
java.c:322: error: 'className' undeclared (first use in this function)
java.c:322: error: 'env' undeclared (first use in this function)
java.c:330: error: 'stringClass' undeclared (first use in this function)
java.c:337: error: 'stringArray' undeclared (first use in this function)
java.c:345: error: 'currentArgument' undeclared (first use in this function)
java.c:356: error: 'method' undeclared (first use in this function)
java.c:356: error: 'cls' undeclared (first use in this function)
java.c:363: error: 'ret' undeclared (first use in this function)
java.c: In function 'java_start':
java.c:375: error: 'jmethodID' undeclared (first use in this function)
java.c:375: error: expected ';' before 'method'
java.c:376: error: 'jboolean' undeclared (first use in this function)
java.c:376: error: expected ';' before 'ret'
java.c:382: error: 'method' undeclared (first use in this function)
java.c:382: error: 'env' undeclared (first use in this function)
java.c:382: error: 'cls' undeclared (first use in this function)
java.c:388: error: 'ret' undeclared (first use in this function)
java.c: In function 'java_sleep':
java.c:402: error: 'jclass' undeclared (first use in this function)
java.c:402: error: expected ';' before 'clsThread'
java.c:403: error: 'jmethodID' undeclared (first use in this function)
java.c:403: error: expected ';' before 'method'
java.c:412: error: 'clsThread' undeclared (first use in this function)
java.c:412: error: 'env' undeclared (first use in this function)
java.c:417: error: 'method' undeclared (first use in this function)
java.c:423: error: 'jlong' undeclared (first use in this function)
java.c:423: error: expected ')' before 'wait'
java.c: In function 'java_stop':
java.c:428: error: 'jmethodID' undeclared (first use in this function)
java.c:428: error: expected ';' before 'method'
java.c:429: error: 'jboolean' undeclared (first use in this function)
java.c:429: error: expected ';' before 'ret'
java.c:435: error: 'method' undeclared (first use in this function)
java.c:435: error: 'env' undeclared (first use in this function)
java.c:435: error: 'cls' undeclared (first use in this function)
java.c:441: error: 'ret' undeclared (first use in this function)
java.c: In function 'java_version':
java.c:453: error: 'jmethodID' undeclared (first use in this function)
java.c:453: error: expected ';' before 'method'
java.c:459: error: 'method' undeclared (first use in this function)
java.c:459: error: 'env' undeclared (first use in this function)
java.c:459: error: 'cls' undeclared (first use in this function)
java.c: In function 'java_check':
java.c:471: error: 'jstring' undeclared (first use in this function)
java.c:471: error: expected ';' before 'className'
java.c:472: error: 'jmethodID' undeclared (first use in this function)
java.c:472: error: expected ';' before 'method'
java.c:473: error: 'jboolean' undeclared (first use in this function)
java.c:473: error: expected ';' before 'ret'
java.c:480: error: 'className' undeclared (first use in this function)
java.c:480: error: 'env' undeclared (first use in this function)
java.c:489: error: 'method' undeclared (first use in this function)
java.c:489: error: 'cls' undeclared (first use in this function)
java.c:495: error: 'ret' undeclared (first use in this function)
java.c: In function 'java_destroy':
java.c:507: error: 'jmethodID' undeclared (first use in this function)
java.c:507: error: expected ';' before 'method'
java.c:508: error: 'jboolean' undeclared (first use in this function)
java.c:508: error: expected ';' before 'ret'
java.c:514: error: 'method' undeclared (first use in this function)
java.c:514: error: 'env' undeclared (first use in this function)
java.c:514: error: 'cls' undeclared (first use in this function)
java.c:520: error: 'ret' undeclared (first use in this function)
make[1]: *** [java.o] Error 1
make: *** [native/all] Error 2
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/work/commons-daemon-1.0.2-src/src/native/unix" && /usr/bin/make clean all " returned error 2
Error: Target org.macports.build returned: shell command failed
DEBUG: Backtrace: shell command failed
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for commons-daemon): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Log for commons-daemon is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-daemon/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Change History (3)

comment:1 Changed 10 years ago by jmroot (Joshua Root)

Keywords: commons-daemon removed
Port: commons-daemon added

As per the ticket guidelines, please put the name of the port in the Port field.

comment:2 Changed 10 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Summary: commons-daemon @1.0.2 build error on 10.6commons-daemon @1.0.2 fails to build when java headers are missing

There are a number of related tickets; basically the latest Java update removed the JNI headers. You have to install the corresponding developer package to get them back. Added a check to this port in r72899.

comment:3 Changed 10 years ago by calle.kabo@…

yup, that worked, thanks

Note: See TracTickets for help on using tickets.