[MacPorts] #44717: avrdude @6.1_2 dispatch/dispatch.h: No such file or directory
#44717: avrdude @6.1_2 dispatch/dispatch.h: No such file or directory ---------------------------+-------------------------------- Reporter: lars.haulin@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Keywords: | Port: avrdude ---------------------------+-------------------------------- This error has the same cause as https://trac.macports.org/ticket/38430 dispatch/dispatch.h is part of Grand Central Dispatch, which was introduced in 10.6 I was trying to build avrdude with Xcode 2.5 and OSX 10.4.11, got it to compile with this hack: {{{ $ diff ft245r.c ft245r_original.c 131c131,138 < #include <sys/semaphore.h> ---
/* Mac OS X defines sem_init but actually does not implement them */ #include <dispatch/dispatch.h>
typedef dispatch_semaphore_t sem_t;
#define sem_init(psem,x,val) *psem = dispatch_semaphore_create(val) #define sem_post(psem) dispatch_semaphore_signal(*psem) #define sem_wait(psem) dispatch_semaphore_wait(*psem, DISPATCH_TIME_FOREVER) }}}
-- Ticket URL: <https://trac.macports.org/ticket/44717> MacPorts <http://www.macports.org/> Ports system for OS X
#44717: avrdude @6.1_2 dispatch/dispatch.h: No such file or directory ----------------------------+--------------------------- Reporter: lars.haulin@… | Owner: g5pw@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: tiger leopard Port: avrdude | ----------------------------+--------------------------- Changes (by larryv@…): * keywords: => tiger leopard * owner: macports-tickets@… => g5pw@… -- Ticket URL: <https://trac.macports.org/ticket/44717#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#44717: avrdude @6.1_2 dispatch/dispatch.h: No such file or directory ----------------------------+--------------------------- Reporter: lars.haulin@… | Owner: g5pw@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: tiger leopard Port: avrdude | ----------------------------+--------------------------- Description changed by mf2k@…: Old description:
This error has the same cause as https://trac.macports.org/ticket/38430
dispatch/dispatch.h is part of Grand Central Dispatch, which was introduced in 10.6
I was trying to build avrdude with Xcode 2.5 and OSX 10.4.11, got it to compile with this hack:
{{{ $ diff ft245r.c ft245r_original.c 131c131,138 < #include <sys/semaphore.h> ---
/* Mac OS X defines sem_init but actually does not implement them */ #include <dispatch/dispatch.h>
typedef dispatch_semaphore_t sem_t;
#define sem_init(psem,x,val) *psem = dispatch_semaphore_create(val) #define sem_post(psem) dispatch_semaphore_signal(*psem) #define sem_wait(psem) dispatch_semaphore_wait(*psem, DISPATCH_TIME_FOREVER) }}}
New description: This error has the same cause as ticket:38430 dispatch/dispatch.h is part of Grand Central Dispatch, which was introduced in 10.6 I was trying to build avrdude with Xcode 2.5 and OSX 10.4.11, got it to compile with this hack: {{{ $ diff ft245r.c ft245r_original.c 131c131,138 < #include <sys/semaphore.h> ---
/* Mac OS X defines sem_init but actually does not implement them */ #include <dispatch/dispatch.h>
typedef dispatch_semaphore_t sem_t;
#define sem_init(psem,x,val) *psem = dispatch_semaphore_create(val) #define sem_post(psem) dispatch_semaphore_signal(*psem) #define sem_wait(psem) dispatch_semaphore_wait(*psem, DISPATCH_TIME_FOREVER) }}}
-- -- Ticket URL: <https://trac.macports.org/ticket/44717#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts