Opened 7 years ago

Closed 7 years ago

#56249 closed defect (invalid)

doxygen @1.8.13_2 (textproc, devel) Installation failure

Reported by: fusionx (Prashant Chaudhary) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port:

Description

I have been trying to install gqrx using macports, but it kept failing on trying to install dependencies. Specific failure was when trying to install doxygen. So I tried installing it manually, but it doesn't help. I have run sudo port clean doxygen and then try to reinstall, but still get the following failure message.

sudo port install doxygen
--->  Computing dependencies for doxygen
--->  Fetching archive for doxygen
--->  Attempting to fetch doxygen-1.8.13_2.darwin_17.x86_64.tbz2 from https://packages.macports.org/doxygen
--->  Attempting to fetch doxygen-1.8.13_2.darwin_17.x86_64.tbz2 from http://sea.us.packages.macports.org/macports/packages/doxygen
--->  Attempting to fetch doxygen-1.8.13_2.darwin_17.x86_64.tbz2 from http://ywg.ca.packages.macports.org/mirror/macports/packages/doxygen
--->  Fetching distfiles for doxygen
--->  Verifying checksums for doxygen
--->  Extracting doxygen
--->  Applying patches to doxygen
--->  Configuring doxygen
--->  Building doxygen
Error: Failed to build doxygen: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_doxygen/doxygen/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port doxygen failed

This is the error in the middle of the log file.

:info:build In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19:
:info:build In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43:
:info:build In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:72:
:info:build /usr/local/include/Block.h:16:3: error: Never include this file directly. Use <lzma.h> instead.
:info:build #       error Never include this file directly. Use <lzma.h> instead.
:info:build         ^
:info:build /usr/local/include/Block.h:93:2: error: unknown type name 'lzma_check'
:info:build         lzma_check check;
:info:build         ^
:info:build /usr/local/include/Block.h:148:2: error: unknown type name 'lzma_vli'
:info:build         lzma_vli compressed_size;
:info:build         ^
:info:build /usr/local/include/Block.h:172:2: error: unknown type name 'lzma_vli'
:info:build         lzma_vli uncompressed_size;
:info:build         ^
:info:build /usr/local/include/Block.h:200:2: error: unknown type name 'lzma_filter'
:info:build         lzma_filter *filters;
:info:build         ^
:info:build /usr/local/include/Block.h:217:20: error: use of undeclared identifier 'LZMA_CHECK_SIZE_MAX'
:info:build         uint8_t raw_check[LZMA_CHECK_SIZE_MAX];
:info:build                           ^
:info:build /usr/local/include/Block.h:231:2: error: unknown type name 'lzma_vli'
:info:build         lzma_vli reserved_int3;
:info:build         ^
:info:build /usr/local/include/Block.h:232:2: error: unknown type name 'lzma_vli'
:info:build         lzma_vli reserved_int4;
:info:build         ^
:info:build /usr/local/include/Block.h:233:2: error: unknown type name 'lzma_vli'
:info:build         lzma_vli reserved_int5;
:info:build         ^
:info:build /usr/local/include/Block.h:234:2: error: unknown type name 'lzma_vli'
:info:build         lzma_vli reserved_int6;
:info:build         ^
:info:build /usr/local/include/Block.h:235:2: error: unknown type name 'lzma_vli'
:info:build         lzma_vli reserved_int7;
:info:build         ^
:info:build /usr/local/include/Block.h:236:2: error: unknown type name 'lzma_vli'
:info:build         lzma_vli reserved_int8;
:info:build         ^
:info:build [ 39%] Building CXX object qtools/CMakeFiles/qtools.dir/qmutex_unix.cpp.o
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_doxygen/doxygen/work/doxygen-1.8.13/qtools && /usr/bin/clang++   -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_doxygen/doxygen/work/doxygen-1.8.13/qtools/.  -pipe -Os -stdlib=libc++ -DNDEBUG -arch x86_64 -mmacosx-version-min=10.13   -o CMakeFiles/qtools.dir/qmutex_unix.cpp.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_doxygen/doxygen/work/doxygen-1.8.13/qtools/qmutex_unix.cpp
:info:build /usr/local/include/Block.h:237:2: error: unknown type name 'lzma_reserved_enum'
:info:build         lzma_reserved_enum reserved_enum1;
:info:build         ^
:info:build /usr/local/include/Block.h:238:2: error: unknown type name 'lzma_reserved_enum'
:info:build         lzma_reserved_enum reserved_enum2;
:info:build         ^
:info:build /usr/local/include/Block.h:239:2: error: unknown type name 'lzma_reserved_enum'
:info:build         lzma_reserved_enum reserved_enum3;
:info:build         ^

These are the last few lines from the same log file

:info:build /usr/bin/ranlib ../lib/lib_doxygen.a
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_doxygen/doxygen/work/doxygen-1.8.13'
:info:build [ 97%] Built target _doxygen
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_doxygen/doxygen/work/doxygen-1.8.13'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_doxygen/doxygen/work/doxygen-1.8.13'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_doxygen/doxygen/work/doxygen-1.8.13" && /usr/bin/make -j8 -w all VERBOSE=ON
:info:build Exit code: 2
:error:build Failed to build doxygen: command execution failed
:debug:build Error code: CHILDSTATUS 41019 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_doxygen/doxygen/main.log for details.

Change History (1)

comment:1 in reply to:  description Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign added
Resolution: invalid
Status: newclosed

Installing software in /usr/local can interfere with MacPorts ports and other software compiled from source, so we recommend uninstalling anything you've installed there. See wiki:FAQ#usrlocal. After you do that, clean the affected port (sudo port clean doxygen) and try again.

Replying to fusionx:

:info:build In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19:
:info:build In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43:
:info:build In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:72:
:info:build /usr/local/include/Block.h:16:3: error: Never include this file directly. Use <lzma.h> instead.
:info:build #       error Never include this file directly. Use <lzma.h> instead.
:info:build         ^

In this case, you appear to have installed a copy of xz in /usr/local, and for some reason (maybe it is an old version, or maybe it was packaged in an unusual way) its headers are directly in /usr/local/include rather than in an lzma subdirectory where they usually are. Because of this, and the fact that your file system is case-insensitive (which is the default on macOS), the xz header block.h is interfering with (i.e. being found instead of) the operating system header /usr/include/Block.h

Note: See TracTickets for help on using tickets.