Opened 8 years ago

Closed 4 years ago

Last modified 4 years ago

#52377 closed defect (fixed)

liblas: build failure

Reported by: kevinecahill@… Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: mojca (Mojca Miklavec), dershow, atzimler (Attila Tamas Zimler), ryandesign (Ryan Carsten Schmidt)
Port: liblas

Description (last modified by larryv (Lawrence Velázquez))

I upgraded to Sierra and installed the Xcode stuff. The command

sudo port upgrade outdated

failed at this point:

--->  Computing dependencies for liblas
--->  Building liblas
Error: org.macports.build for port liblas returned: command execution failed
Please see the log file for port liblas for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_liblas/liblas/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

Attachments (3)

main.log (808.2 KB) - added by kevinecahill@… 8 years ago.
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_liblas/liblas/main.log
main.2.log (16.9 KB) - added by dershow 8 years ago.
Clean build log
catalina_main.log (145.3 KB) - added by atzimler (Attila Tamas Zimler) 5 years ago.
Catalina clean build log

Download all attachments as: .zip

Change History (12)

Changed 8 years ago by kevinecahill@…

Attachment: main.log added

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_liblas/liblas/main.log

comment:1 Changed 8 years ago by larryv (Lawrence Velázquez)

Description: modified (diff)
Owner: changed from macports-tickets@… to venabled@…
Port: liblas added
Summary: Error: Unable to upgrade port: 1liblas: build failure
Version: 2.3.4
:debug:main Skipping completed org.macports.fetch (liblas)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.checksum (liblas)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.extract (liblas)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.patch (liblas)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.configure (liblas)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:build build phase started at Sun Sep 25 16:05:10 MDT 2016

This log is not clean. Please run sudo port clean liblas, try building again, and attach the new log if it fails.

comment:2 Changed 8 years ago by dershow

I just upgraded to Sierra and I also can't get liblas to build. I have attached a clean build log.

Changed 8 years ago by dershow

Attachment: main.2.log added

Clean build log

comment:3 Changed 6 years ago by kurthindenburg (Kurt Hindenburg)

Owner: venabled@… deleted
Status: newassigned

comment:4 Changed 5 years ago by mojca (Mojca Miklavec)

According to https://ports.macports.org/port/liblas the port should now build on 10.9 and newer? Is this still an issue?

comment:5 Changed 5 years ago by mojca (Mojca Miklavec)

Cc: mojca added

comment:6 Changed 5 years ago by atzimler (Attila Tamas Zimler)

Hi, I'm having trouble to execute port install liblas on Catalina. I've already executed port clean liblas, but it still fails with

Error: Failed to build liblas: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_liblas/liblas/main.log for details.

Please see the build log after clean was executed attached.

Changed 5 years ago by atzimler (Attila Tamas Zimler)

Attachment: catalina_main.log added

Catalina clean build log

comment:7 Changed 4 years ago by dershow

Cc: dershow added

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

Cc: atzimler ryandesign added
Resolution: fixed
Status: assignedclosed

There are two completely different errors reported in this ticket:

  1. the original one reported in 2016 on macOS 10.12 against liblas 1.7.0 which began:
error: typedef redefinition with different types ('struct GTIFS *' vs 'struct gtiff')
  1. the new one reported in 2019 on macOS 10.15 against liblas "1.8.1.99" (which is actually 1.8.1 with upstream modifications up to 20190809):
:info:build Undefined symbols for architecture x86_64:
:info:build   "OGRSpatialReference::GetRoot()", referenced from:
:info:build       SetCitationToSRS(gtiff*, char*, int, geokey_t, OGRSpatialReference*, int*) in gt_citation.cpp.o
:info:build       _GTIFGetOGISDefn in gt_wkt_srs.cpp.o
:info:build       _GTIFSetFromOGISDefn in gt_wkt_srs.cpp.o
:info:build ld: symbol(s) not found for architecture x86_64

In the future, please make sure to file separate errors in separate tickets because they may have separate solutions that we want to track separately.

I have just updated liblas to 1.8.1-20200508. It builds fine on the systems not blocked by #60619 so I'm going to close this ticket. If you are still experiencing a build error with this version of liblas, please open a new ticket.

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

Replying to atzimler:

Please see the build log after clean was executed attached.

The log shows that a GDAL installed outside of MacPorts is being used. There are references to /Library/Frameworks/GDAL.framework in the log. Please remove that directory any anything else you've installed in /Library/Frameworks. See wiki:FAQ#libraryframeworks.

Note: See TracTickets for help on using tickets.