Opened 5 years ago

Last modified 22 months ago

#36522 new defect

commons-daemon java 1.7 mountain lion fails

Reported by: eamonn.kearns@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: malcolm@…, danielta
Port: commons-daemon

Description

The build process looks for jni_md.h in /Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/include but it is located in /Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/include/darwin

I am not sure how to resolve this properly, but I hacked it by cping the files up one level.

Attachments (3)

main.log (24.2 KB) - added by ltreugene@… 5 years ago.
the main.log file for building commons-daemons on Mountain Lion.
location.c.patch (778 bytes) - added by mmpestorich (Mike M Pestorich) 5 years ago.
commons-daemon-1.0.15.patch (4.6 KB) - added by auke@… 4 years ago.

Download all attachments as: .zip

Change History (12)

comment:1 Changed 5 years ago by mf2k (Frank Schima)

  • Port commons-daemon added

Please attach the main.log.

In the future, please fill in the Port field.

Changed 5 years ago by ltreugene@…

the main.log file for building commons-daemons on Mountain Lion.

comment:2 Changed 5 years ago by mmpestorich (Mike M Pestorich)

Oracle's JDK 7 installs files in very different locations than did Apple's preceding java installations. Basically this is what I figure is causing commons-daemon to not compile (or work correctly with say Tomcat when you hack the compile as noted in the ticket description).

I attached a patch (location.c.patch) and here are instructions on what needs to be done to compile is correctly. This all assumes and install of Oracle's JDK 1.7.0_09:

./configure --prefix=/opt/apache-tomcat-7.0.33 --with-java=/Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home --with-os-type=include/darwin
make
cp jsvc /opt/apache-tomcat-7.0.33/bin/

Hope that helps. I haven't tested fully. But Tomcat starts up now and seems to be working.

Changed 5 years ago by mmpestorich (Mike M Pestorich)

comment:3 Changed 4 years ago by JGarrido (Joaquin Garrido)

I'm having the same issue at the moment, which seemed to start after the upgrade to Mavericks, as this is the first time I've attempted to run 'upgrade outdated' since then.

Changed 4 years ago by auke@…

comment:4 Changed 4 years ago by auke@…

The attached patch commons-daemon-1.0.15.patch updates commons-daemon to 1.0.15 and fixes the location issue.

comment:5 Changed 3 years ago by jea@…

Uh, shouldn't someone put this into the main sources? Commons-daemon is still at 1.0.10 and the location issue is not fixed. I had to copy jni_md.h from darwin subdirectory up to the java_home directory to get commons_daemon to install.

comment:6 Changed 3 years ago by ryandesign (Ryan Schmidt)

  • Cc malcolm@… added

Has duplicate #47855.

comment:7 Changed 3 years ago by malcolm@…

I've worked out how to patch commons-daemon, but where is location.c and how do you patch it?

comment:8 Changed 2 years ago by malcolm@…

I'm one month down the line and still I've got commons-daemon broken.

Could somebody please write some SPECIFIC INSTRUCTIONS as to how to fix this? I patched commons-daemon ok, but where the hell is or what is location.c ??

PLEASE, this just needs someone to write minimal help, I'm risking a broken system. Thanks.

Last edited 2 years ago by malcolm@… (previous) (diff)

comment:9 Changed 22 months ago by ryandesign (Ryan Schmidt)

  • Cc daniele.tartarini@… added

Has duplicate #50820.

Note: See TracTickets for help on using tickets.