Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#279 closed defect (fixed)

Conflicting types for 'system'

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


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 ydario 6 years ago.
patch-279b.txt (4.4 KB) - added by ydario 6 years ago.

Download all attachments as: .zip

Change History (7)

Changed 6 years ago by ydario

Changed 6 years ago by ydario

comment:1 Changed 6 years ago by ydario

  • Owner set to ydario
  • Status changed from new to accepted

comment:2 Changed 6 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 6 years ago by bird (previous) (diff)

comment:3 Changed 6 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 6 years ago by bird

  • Resolution set to fixed
  • Status changed from accepted to closed

comment:5 Changed 5 years ago by bird

  • Component changed from emx to libc
Note: See TracTickets for help on using tickets.