[CONC-72] Project Does not Build on OS X 10.9 Created: 2014-02-02  Updated: 2020-06-14  Resolved: 2014-04-08

Status: Closed
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Robin Demetriades Assignee: Georg Richter
Resolution: Cannot Reproduce Votes: 0
Labels: None
Environment:

Mac OS X 10.9



 Description   

The below error is generated when building. I resolved it by completely commenting out lines 312-320 on my_pthread.h where #define sigset(A,B)
was - looks like this section is getting macro expanded wrongly before the (line:390) #ifdef HAVE_DARWIN_THREADS section.

/Users/cdev/mariadb-native-client/include/my_pthread.h:312:21: note: expanded from macro 'sigset'
#define sigset(A,B) do { struct sigaction s; sigset_t set; \
^
In file included from /Users/cdev/mariadb-native-client/libmysql/net.c:31:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/signal.h:97:11: error: expected ')'
/Users/cdev/mariadb-native-client/include/my_pthread.h:312:21: note: expanded from macro 'sigset'
#define sigset(A,B) do { struct sigaction s; sigset_t set; \
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/signal.h:97:9: note: to match this '('
void (*sigset(int, void (int)))(int);
^
1 warning and 2 errors generated.



 Comments   
Comment by Georg Richter [ 2014-02-04 ]

Can you please try latest revision from launchpad tree? (bzr branch lp:mariadb-native-client).

Comment by Georg Richter [ 2014-04-08 ]

Can't reproduce. Tested against 2.0.0 (rev. 133)

Generated at Thu Feb 08 03:02:41 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.