Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#279 closed defect (fixed)

Conflicting types for 'system'

Reported by: dryeo Owned by: Yuri Dario
Priority: normal Milestone: libc-0.6.6
Component: libc Version: 0.6.5
Severity: major Keywords: conflict
Cc: dave.r.yeo@…

Description

A configure script is dieing with G:/usr/include/sys/process.h:72: error: conflicting types for 'system' G:/usr/include/stdlib.h:121: note: previous declaration of 'system' was here and sure enough sys/process.h uses 72 int system (__const__ char *); and stdlib.h uses 121 int system(const char *);

not sure which is correct or if this is gcc 4.4.6 being pedantic but they should be reconciled or guarded

Attachments (2)

patch-279t.txt (5.0 KB ) - added by Yuri Dario 11 years ago.
patch-279b.txt (4.4 KB ) - added by Yuri Dario 11 years ago.

Download all attachments as: .zip

Change History (7)

by Yuri Dario, 11 years ago

Attachment: patch-279t.txt added

by Yuri Dario, 11 years ago

Attachment: patch-279b.txt added

comment:1 by Yuri Dario, 11 years ago

Owner: set to Yuri Dario
Status: newaccepted

comment:2 by bird, 11 years ago

I'd like to clean up all the const, const and const usage while at it. Working on figuring out in which direction to go with this and cleaning it up.

Version 0, edited 11 years ago by bird (next)

comment:3 by bird, 11 years ago

Using const since I think we can forget about compilers without the 'const' keyword now. That said, I wonder what crazy stuff that configure test was doing to const and/or __const__.

r3808 (trunk) and r3809 (0.6) commits an extended version of the patches.

comment:4 by bird, 11 years ago

Resolution: fixed
Status: acceptedclosed

comment:5 by bird, 10 years ago

Component: emxlibc
Note: See TracTickets for help on using tickets.