| Summary: | Can't create science/libkml | ||
|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Bill Buhler <dwb2-bugzilla> |
| Component: | Individual Port(s) | Assignee: | Po-Chuan Hsieh <sunpoet> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | Flags: | bugzilla:
maintainer-feedback?
(sunpoet) |
| Priority: | --- | ||
| Version: | Latest | ||
| Hardware: | amd64 | ||
| OS: | Any | ||
Please deinstall libkml first. Thanks! That worked. |
When I attempt to compile libkml it aborts with a out of line definition error Here is the relevant error code: [ 1%] Building CXX object src/kml/base/CMakeFiles/kmlbase.dir/date_time.cc.o cd /usr/ports/science/libkml/work/libkml-1.3.0/src/kml/base && /usr/bin/c++ -Dkmlbase_EXPORTS -I/usr/local/include -I/usr/ports/science/libkml/work/libkml-1.3.0/src -O2 -pipe -fstack-protector -fno-strict-aliasing -O2 -pipe -fstack-protector -fno-strict-aliasing -fPIC -o CMakeFiles/kmlbase.dir/date_time.cc.o -c /usr/ports/science/libkml/work/libkml-1.3.0/src/kml/base/date_time.cc /usr/ports/science/libkml/work/libkml-1.3.0/src/kml/base/date_time.cc:66:18: error: out-of-line definition of 'GetTimeT' does not match any declaration in 'kmlbase::DateTime' time_t DateTime::GetTimeT() const { ^~~~~~~~ /usr/local/include/kml/base/date_time.h:52:10: note: member declaration does not match because it is not const qualified time_t GetTimeT() /* const */; ^ ~ 1 error generated. *** [src/kml/base/CMakeFiles/kmlbase.dir/date_time.cc.o] Error code 1 make[4]: stopped in /usr/ports/science/libkml/work/libkml-1.3.0 1 error In attempting to fix this I've tried to set the MAKE_JOBS_UNSAFE=yes flag to no avail. I also double checked that I was on the latest ports tree and had applied any necessary changes from the UPDATING file.