Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#40564 closed defect (fixed)

darwintrace.c fails to compile with gcc-4.0

Reported by: pixilla (Bradley Giesbrecht) Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 2.3.0
Component: base Version: 2.2.99
Keywords: Cc: jeremyhu (Jeremy Huddleston Sequoia)
Port:

Description

$ make
...
===> making all in src/darwintracelib1.0
gcc -g -O2 -std=c99 -Wextra -Wall   -fPIC -Wno-deprecated-declarations -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include"  -c -o darwintrace.o darwintrace.c
darwintrace.c:507:2: error: #error Please build with gcc-4.2 or later
darwintrace.c: In function '__darwintrace_get_filemap':
darwintrace.c:524: warning: implicit declaration of function '__sync_bool_compare_and_swap'
make[2]: *** [darwintrace.o] Error 1
...

Change History (4)

comment:1 Changed 11 years ago by jmroot (Joshua Root)

Version: 2.2.02.2.99

comment:2 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Yeah, that should be updated to use OSAtomics.

comment:3 Changed 11 years ago by neverpanic (Clemens Lang)

Milestone: MacPorts Future
Resolution: fixed
Status: newclosed

This uses OSAtomics now – but it'll likely still not compile on systems that still use gcc 4.0 (which should not be an issue, because configure probably disables it on these platforms).

comment:4 Changed 11 years ago by jmroot (Joshua Root)

Milestone: MacPorts FutureMacPorts 2.3.0
Note: See TracTickets for help on using tickets.