Opened 10 years ago

Closed 10 years ago

Last modified 9 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 10 years ago.
patch-279b.txt (4.4 KB) - added by Yuri Dario 10 years ago.

Download all attachments as: .zip

Change History (7)

Changed 10 years ago by Yuri Dario

Attachment: patch-279t.txt added

Changed 10 years ago by Yuri Dario

Attachment: patch-279b.txt added

comment:1 Changed 10 years ago by Yuri Dario

Owner: set to Yuri Dario
Status: newaccepted

comment:2 Changed 10 years ago by bird

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.

Last edited 10 years ago by bird (previous) (diff)

comment:3 Changed 10 years ago by bird

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 Changed 10 years ago by bird

Resolution: fixed
Status: acceptedclosed

comment:5 Changed 9 years ago by bird

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