Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#27892 closed defect (duplicate)

pdflib install fails, but macports doesn't know it

Reported by: ejtttje@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: pdflib

Description (last modified by jmroot (Joshua Root))

pdflib 7.0.5_0 does not actually install the library... it fails during install, as shown in the debug log:

../../config/install-sh -c -m 644 pdflib.h /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_print_pdflib/work/destroot/opt/local/include
../../libtool --silent ../../config/install-sh -c -m 644 libpdf.la /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_print_pdflib/work/destroot/opt/local/lib;
libtool: you must specify a MODE
libtool: Try `libtool --help' for more information.
make[2]: *** [install] Error 1
make[1]: *** [install] Error 2
make[3]: Nothing to be done for `install'.
make[3]: Nothing to be done for `install'.

However, somehow the install continues...

mkdir -p /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_print_pdflib/work/destroot/opt/local/bin
../../config/install-sh -c pdfimage text2pdf /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_print_pdflib/work/destroot/opt/local/bin

....and so on.

So MacPorts believes the library has been installed, but actually only the header file is available:

$ port contents pdflib
Port pdflib contains:
  /opt/local/bin/pdfimage
  /opt/local/bin/pdflib-config
  /opt/local/bin/text2pdf
  /opt/local/include/pdflib.h
  /opt/local/share/doc/pdflib/changes.txt
  /opt/local/share/doc/pdflib/compatibility.txt
  /opt/local/share/doc/pdflib/licensekeys.txt
  /opt/local/share/doc/pdflib/PDFlib-API-reference.pdf
  /opt/local/share/doc/pdflib/PDFlib-Lite-license.pdf
  /opt/local/share/doc/pdflib/PDFlib-tutorial.pdf
  /opt/local/share/doc/pdflib/readme-source-unix.txt
  /opt/local/share/doc/pdflib/readme-source-windows.txt
  /opt/local/share/doc/pdflib/readme.txt

I'd help fix this, but I've never really grokked libtool. :(

Change History (3)

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

Description: modified (diff)

Please remember to preview and use WikiFormatting.

There isn't really anything we can do to detect a failure if the build command exits with status 0. I just tried this myself and everything appears to have been installed correctly. Please attach the complete main.log generated by running

sudo port destroot pdflib

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

Resolution: duplicate
Status: newclosed

Duplicate of #26896.

comment:3 Changed 14 years ago by ejtttje@…

Ah, sorry I missed that. r72535 seems to be on the right track, maybe needs a mode flag as well or something *shrug*.

Anyway my main.log matches that from the dupe ticket.

Note: See TracTickets for help on using tickets.