Opened 8 years ago

Last modified 8 years ago

#51505 closed defect

libcerf build error on 10.6.8 — at Version 3

Reported by: chrisjogorman Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: mojca@…
Port: libcerf

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Macintosh:~ chrisgorman$ sudo port -v install libcerf
--->  Building libcerf
Executing:  cd "/sandbox/var/macports/build/_sandbox_trunk_dports_math_libcerf/libcerf/work/libcerf-1.4" && /usr/bin/make -j2 -w all 
make: Entering directory `/sandbox/var/macports/build/_sandbox_trunk_dports_math_libcerf/libcerf/work/libcerf-1.4'
/usr/bin/make  all-recursive
make[1]: Entering directory `/sandbox/var/macports/build/_sandbox_trunk_dports_math_libcerf/libcerf/work/libcerf-1.4'
Making all in lib
make[2]: Entering directory `/sandbox/var/macports/build/_sandbox_trunk_dports_math_libcerf/libcerf/work/libcerf-1.4/lib'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/sandbox/var/macports/build/_sandbox_trunk_dports_math_libcerf/libcerf/work/libcerf-1.4/lib'
Making all in man
make[2]: Entering directory `/sandbox/var/macports/build/_sandbox_trunk_dports_math_libcerf/libcerf/work/libcerf-1.4/man'
pod2man -s 3 -c "libcerf manual" erfcx.pod > erfcx.3
pod2man -s 3 -c "libcerf manual" erfcx.pod > cerfcx.3
/bin/sh: /usr/bin/pod2man: Permission denied
make[2]: *** [erfcx.3] Error 126
make[2]: *** Waiting for unfinished jobs....
/bin/sh: /usr/bin/pod2man: Permission denied
make[2]: *** [cerfcx.3] Error 126
make[2]: Leaving directory `/sandbox/var/macports/build/_sandbox_trunk_dports_math_libcerf/libcerf/work/libcerf-1.4/man'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sandbox/var/macports/build/_sandbox_trunk_dports_math_libcerf/libcerf/work/libcerf-1.4'
make: *** [all] Error 2
make: Leaving directory `/sandbox/var/macports/build/_sandbox_trunk_dports_math_libcerf/libcerf/work/libcerf-1.4'
Command failed:  cd "/sandbox/var/macports/build/_sandbox_trunk_dports_math_libcerf/libcerf/work/libcerf-1.4" && /usr/bin/make -j2 -w all 
Exit code: 2
Error: Failed to build libcerf: command execution failed
Error: See /sandbox/var/macports/logs/_sandbox_trunk_dports_math_libcerf/libcerf/main.log for details.
Error: Follow http://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port libcerf failed

Change History (5)

Changed 8 years ago by chrisjogorman

Attachment: main.log added

comment:1 Changed 8 years ago by chrisjogorman

/usr/bin/pod2man and /usr/bin/pod2html are not executable on my machine. to get the package installed I ...

  1. mv /usr/bin/pod2man /usr/bin/pod2man.bak
  2. ln -snf /usr/bin/pod2man5.8.9 /usr/bin/pod2man
  3. mv /usr/bin/pod2html /usr/bin/pod2html.bak
  4. ln -snf /usr/bin/pod2html5.8.9 /usr/bin/pod2html

reran port install and it works.

Last edited 8 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:2 Changed 8 years ago by chrisjogorman

Upon investigating, this pod2man and pod2html work well with the perl from macports, but don't work well with the perl 5.10.0 / 5.8.9 hybrid installed on snow leopard. The pod2man, pod2html files indicate that the perl interpreter is supposed to differentiate between the versions. When libcerf builds it's man pages, it calls both programs without specifying a version, eg. /usr/bin/pod2html rather than /usr/bin/pod2html5.10.0 and fails to build because pod2html and pod2man are not executable. (Whereas pod2man5.10.0, pod2man5.8.9, pod2html5.10.0 and pod2html5.8.9 are executable.) I have attached a patch that should be applied only to snow leopard installs without a macports perl installed. It hardcodes pod2{html,man}5.10.0 instead of pod2{html,man}. I do not know of a way to have macports apply a patch to only snowleopard, however, this task is still to be done. Perhaps a better fix would be to predepend on a macports perl version?

Changed 8 years ago by chrisjogorman

Attachment: 51505.diff added

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

Description: modified (diff)
Keywords: libcerf pod2man removed

Remember to use WikiFormatting when writing in Trac.

Note: See TracTickets for help on using tickets.