Opened 4 years ago

Closed 4 months ago

#60532 closed defect (fixed)

PDAL @2.1.0: Undefined laszip symbols

Reported by: TheLastLovemark Owned by: Veence (Vincent)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc:
Port: PDAL

Description

Hi,

The first try was port -vd install pdal +debug, this failed at about 7%. See pdal+debug-main.log

The second try was the default install, with no user added variants. That failed at about 48%. See pdal-main.log

I saw something mentioning Undefined symbols for architecture x86_64 when scrolling through to see if I could figure this out myself.

Log files are attached

Attachments (2)

pdal+debug-main.log (273.8 KB) - added by TheLastLovemark 4 years ago.
pdal-main.log (652.1 KB) - added by TheLastLovemark 4 years ago.

Download all attachments as: .zip

Change History (9)

Changed 4 years ago by TheLastLovemark

Attachment: pdal+debug-main.log added

Changed 4 years ago by TheLastLovemark

Attachment: pdal-main.log added

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

Cc: Veence removed
Owner: set to Veence
Port: PDAL added; Pdal removed
Status: newassigned

comment:2 Changed 4 years ago by Veence (Vincent)

Do you have laszip installed?

comment:3 Changed 4 years ago by TheLastLovemark

Yes. laszip is installed

$ port installed laszip
The following ports are currently installed:
  laszip @3.4.1_0+debug (active)

comment:4 Changed 4 years ago by Veence (Vincent)

Oops. I see where the error is: the path for the laszip library is wrong: /opt/local/BIN instead of /opt/local/LIB

comment:5 Changed 4 years ago by Veence (Vincent)

Could you please do port configure pdal and upload the file /opt/local/var/macports/build/_macports-ports_gis_pdal/PDAL/work/build/CMakeCache.txt Thanks.

comment:6 in reply to:  4 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: PDAL @2.1.0 install fails with and without debug variantPDAL @2.1.0: Undefined laszip symbols

Replying to Veence:

Oops. I see where the error is: the path for the laszip library is wrong: /opt/local/BIN instead of /opt/local/LIB

Yes that is weird. The log shows it is trying to link with the nonexistent /opt/local/bin/liblaszip.dylib when it should be linking with /opt/local/lib/liblaszip.dylib. The port is not specifying where laszip is, so this determination is coming from the build system.

The log is from macOS 10.13.6 with Xcode 10.1 and MacPorts 2.6.2. I am unable to reproduce the issue on macOS 10.13.6 with Xcode 9.4.1 and MacPorts 2.6.99 but I doubt that the difference in Xcode or MacPorts version is relevant to this issue.

The log shows several of the dependencies are installed with the +debug variant. Although it seems unlikely to me, maybe one of those is relevant, and reinstalling the dependencies without the +debug variant would help.

We do have binaries of PDAL available, so if you just try to install the port you should get our binary and not run into this issue. To help us track down and fix the issue, you can tell MacPorts to skip looking for the binary and build from source using the -s flag (sudo port -s install PDAL).

comment:7 Changed 4 months ago by Schamschula (Marius Schamschula)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.