Opened 8 weeks ago

Last modified 7 weeks ago

#72520 assigned defect

ddcctl @1: error: CoreGraphics/CGDirectDisplay.h: No such file or directory

Reported by: barracuda156 Owned by: herbygillot (Herby Gillot)
Priority: Normal Milestone:
Component: ports Version: 2.10.7
Keywords: leopard snowleopard lion mountainlion mavericks yosemite elcapitan sierra Cc:
Port: ddcctl

Description

--->  Configuring ddcctl
--->  Building ddcctl
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ddcctl/ddcctl/work/ddcctl-1" && /usr/bin/make -j6 -w all CC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ddcctl/ddcctl/work/compwrap/cc/usr/bin/gcc-4.2" CXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ddcctl/ddcctl/work/compwrap/cxx/usr/bin/g++-4.2" OBJC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ddcctl/ddcctl/work/compwrap/objc/usr/bin/gcc-4.2" OBJCXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ddcctl/ddcctl/work/compwrap/objcxx/usr/bin/g++-4.2" INSTALL="/usr/bin/install -c" 
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ddcctl/ddcctl/work/ddcctl-1'
rm -f ./build/release/*.o ./bin/release/ddcctl
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ddcctl/ddcctl/work/compwrap/cc/usr/bin/gcc-4.2 -Wall -O3 -c -o build/release/DDC.o src/DDC.c
In file included from src/DDC.c:12:
src/DDC.h:15:42: error: CoreGraphics/CGDirectDisplay.h: No such file or directory
src/DDC.h:16:49: error: CoreGraphics/CGDisplayConfiguration.h: No such file or directory
src/DDC.h:17:39: error: ColorSync/ColorSyncDevice.h: No such file or directory
src/DDC.c: In function ‘DDCDelay’:
src/DDC.c:203: warning: implicit declaration of function ‘IORegistryEntryCopyPath’
src/DDC.c:203: warning: initialization makes pointer from integer without a cast
src/DDC.c: In function ‘DDCRead’:
src/DDC.c:246: error: ‘for’ loop initial declaration used outside C99 mode
make: *** [build/release/DDC.o] Error 1

Change History (1)

comment:1 Changed 7 weeks ago by ryandesign (Ryan Carsten Schmidt)

Cc: herbygillot removed
Keywords: leopard snowleopard lion mountainlion mavericks yosemite elcapitan sierra added
Owner: set to herbygillot
Status: newassigned
Summary: ddcctl fails to build: error: CoreGraphics/CGDirectDisplay.h: No such file or directoryddcctl @1: error: CoreGraphics/CGDirectDisplay.h: No such file or directory

You didn't mention your OS version but the fact that you're using gcc-4.2 makes me think it's 10.6 or earlier.

CoreGraphics/CGDirectDisplay.h doesn't appear to have existed prior to 10.8.

ColorSync/ColorSyncDevice.h doesn't exist prior to 10.13.

On buildbot, we see failure to build on all OS versions prior to 10.13.

This software seems not to be compatible with prior to 10.13. The port should so indicate in the platforms line.

If you believe it can support earlier macOS, please work with the developer of the software to do that.

Note: See TracTickets for help on using tickets.