Opened 5 years ago

Closed 4 years ago

Last modified 3 years ago

#44717 closed defect (invalid)

avrdude @6.1_2 dispatch/dispatch.h: No such file or directory

Reported by: lars.haulin@… Owned by: g5pw (Aljaž Srebrnič)
Priority: Normal Milestone:
Component: ports Version: 2.3.1
Keywords: tiger leopard Cc: feilipu (Phillip Stevens)
Port: avrdude

Description (last modified by mf2k (Frank Schima))

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)

Change History (6)

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

Keywords: tiger leopard added
Owner: changed from macports-tickets@… to g5pw@…

comment:2 Changed 5 years ago by mf2k (Frank Schima)

Description: modified (diff)

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

The diff you provided looks like it's reversed.

If you want support for Leopard and Tiger in avrdude, you should report the problem to the developers of avrdude. We don't want to get in the habit of forever maintaining patches for upstream problems.

comment:4 Changed 4 years ago by g5pw (Aljaž Srebrnič)

Resolution: invalid
Status: newclosed

Yes, I'm gonna side with Ryan on this one. Please report the bug to upstream.

comment:5 Changed 3 years ago by ryandesign (Ryan Schmidt)

Cc: phillip.stevens@… added

Has duplicate #51566.

comment:6 Changed 3 years ago by feilipu (Phillip Stevens)

Reported to Joerg (possibly again) here http://savannah.nongnu.org/bugs/?48134

Note: See TracTickets for help on using tickets.