New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #12336 (closed defect: invalid)

Opened 5 years ago

Last modified 17 months ago

BUG: Staging into destroot fails for help2man

Reported by: joefidler@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: help2man

Description (last modified by macsforever2000@…) (diff)

Help2man is used by KDE , gimp and several others. Thanks for your help, Joe.

snowie:~ joe$ sudo port install help2man
Password:
--->  Staging help2man into destroot
Error: Target org.macports.destroot returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_help2man/work/help2man-1.36.4" && make install DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_help2man/work/destroot " returned error 2
Command output: ./mkinstalldirs /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_help2man/work/destroot/opt/local/bin
./mkinstalldirs /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_help2man/work/destroot/opt/local/lib
./mkinstalldirs /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_help2man/work/destroot/opt/local/share/man/man1
./mkinstalldirs /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_help2man/work/destroot/opt/local/share/info
/usr/bin/install -c help2man /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_help2man/work/destroot/opt/local/bin
/usr/bin/install -c -m 644 ./help2man.1 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_help2man/work/destroot/opt/local/share/man/man1
/usr/bin/install -c -m 644 ./help2man.info \
    /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_help2man/work/destroot/opt/local/share/info/help2man.info
if test -f /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_help2man/work/destroot/opt/local/share/info/dir; \
then \
    /usr/bin/install-info --info-dir=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_help2man/work/destroot/opt/local/share/info \
        ./help2man.info; \
fi
/usr/bin/gcc-4.0  -o hacklocaledir.so -fPIC -bundle hacklocaledir.c 
hacklocaledir.c: In function '__open':
hacklocaledir.c:44: error: 'RTLD_NEXT' undeclared (first use in this function)
hacklocaledir.c:44: error: (Each undeclared identifier is reported only once
hacklocaledir.c:44: error: for each function it appears in.)
hacklocaledir.c: At top level:
hacklocaledir.c:113: warning: alias definitions not supported in Mach-O; ignored
make: *** [hacklocaledir.so] Error 1

Error: Status 1 encountered during processing.
snowie:~ joe$ 

Change History

  Changed 5 years ago by joefidler@…

Downloaded from  http://ftp.gnu.org/gnu/help2man/. Make for standalone package, gives same error and I suspect there is a problem with help2man. Can help2man be dropped? See Changeset 26905.

snowie:~/dev/help2man-1.36.4 joe$ make perl help2man.PL Extracting help2man (with variable substitutions) gcc -o hacklocaledir.so -fPIC -shared hacklocaledir.c powerpc-apple-darwin8-gcc-4.0.1: unrecognized option '-shared' hacklocaledir.c: In function 'open': hacklocaledir.c:44: error: 'RTLD_NEXT' undeclared (first use in this function) hacklocaledir.c:44: error: (Each undeclared identifier is reported only once hacklocaledir.c:44: error: for each function it appears in.) hacklocaledir.c: At top level: hacklocaledir.c:113: warning: alias definitions not supported in Mach-O; ignored make: *** [hacklocaledir.so] Error 1 snowie:~/dev/help2man-1.36.4 joe$

  Changed 5 years ago by joefidler@…

Just worked around the issue. Took the (very) long way and upgraded to GCC 4.2. After changing the help2man makefile option CC to use GCC-MP-4.2 -it worked and I was able to activate the help2man port and get opter applications installed. I was previously using the Apple GCC 4.01.

Hope this helps, Joe.

  Changed 5 years ago by nox@…

  • priority changed from Blocker to High
  • version 1.5.0 deleted
  • summary changed from Staging into destroot fails for help2man to BUG: Staging into destroot fails for help2man

follow-up: ↓ 5   Changed 4 years ago by jmr@…

  • status changed from new to closed
  • resolution set to worksforme

I'm unable to reproduce this on either ppc Tiger or x86 Leopard. Marking worksforme, but feel free to reopen if you're still having this problem.

in reply to: ↑ 4   Changed 3 years ago by geoff@…

I'm getting the original error reported:

hacklocaledir.c:44: error: 'RTLD_NEXT' undeclared (first use in this function)

follow-up: ↓ 7   Changed 3 years ago by macsforever2000@…

  • priority changed from High to Normal
  • keywords help2man removed
  • port set to help2man
  • description modified (diff)

in reply to: ↑ 6   Changed 3 years ago by geoff@…

I did this:

sudo mv /usr/local{,.off}

and then I was able to install help2man, so there must have been something in /usr/local that got in the way.

  Changed 3 years ago by anonymous

  • milestone Port Bugs deleted

Milestone Port Bugs deleted

  Changed 20 months ago by ryandesign@…

Duplicate #16127 shows that the file that was causing the problem was /usr/local/include/dlfcn.h.

  Changed 17 months ago by kh@…

  • status changed from closed to reopened
  • resolution worksforme deleted

iMac 10.6.4 attempting to install gimp - help2man has a failed shell command during configure. I believe that this is to do with a directory being called help2man-1.38.2 whereas port is expecting help2man_1.38.2. Changing the directory name does not, unfortunately help. I cannot therefore install gimp at all.

  Changed 17 months ago by jmr@…

  • status changed from reopened to closed
  • resolution set to invalid

That's nothing to do with this ticket.

Note: See TracTickets for help on using tickets.