Opened 12 years ago

Closed 5 years ago

#36522 closed defect (fixed)

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@… 12 years ago.
the main.log file for building commons-daemons on Mountain Lion.
location.c.patch (778 bytes) - added by mmpestorich (Mike M Pestorich) 12 years ago.
commons-daemon-1.0.15.patch (4.6 KB) - added by auke@… 11 years ago.

Download all attachments as: .zip

Change History (13)

comment:1 Changed 12 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 12 years ago by ltreugene@…

Attachment: main.log added

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

comment:2 Changed 12 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 12 years ago by mmpestorich (Mike M Pestorich)

Attachment: location.c.patch added

comment:3 Changed 11 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 11 years ago by auke@…

Attachment: commons-daemon-1.0.15.patch added

comment:4 Changed 11 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 10 years ago by jeabraham

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 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: malcolm@… added

Has duplicate #47855.

comment:7 Changed 9 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 9 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 9 years ago by malcolm@… (previous) (diff)

comment:9 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: daniele.tartarini@… added

Has duplicate #50820.

comment:10 Changed 5 years ago by chrstphrchvz (Christopher Chavez)

Resolution: fixed
Status: newclosed

In 20a69c6b5d638f4bb0544eb87f75ae9264a68d7d/macports-ports (master):

commons-daemon: delete port

Port was formerly needed by tomcat5/6, which have been deleted.
Port is outdated and has had build issues reported.
Closes: #36522

Note: See TracTickets for help on using tickets.