Ticket #6362 (closed defect: fixed)
[with spkg, positive review] Singular and GCC 4.4
| Reported by: | aginiewicz | Owned by: | tbd |
|---|---|---|---|
| Priority: | blocker | Milestone: | sage-4.1 |
| Component: | algebra | Keywords: | |
| Cc: | malb | Author(s): | Andrzej Giniewicz, Martin Albrecht, Craig Citro |
| Report Upstream: | Reviewer(s): | John Perry, Robert Miller | |
| Merged in: | sage-4.1.rc0 | Work issues: |
Description (last modified by aginiewicz) (diff)
singular is last package that don't compile with latest GCC 4.4 for me, it's because of use of strchr function, see GCC 4.4 porting guide part "Strict null-terminated sequence utilities" - there is used
char* strchr(const char*, int)
that silently cast-away const, simple explicit cast to char* removes the error during compilation for me so it's trivial to fix. The strchr function in this form is used twice.
I made spkg that's fixed, wasn't creating patches/spkg for Sage for some time so I ask for strict review even if it's trivial fix :) I tried to remember about everything with spkg creation but something could still slip. There is spkg: http://giniu.ravenlord.ws/singular-3-1-0-2-20090620.spkg.
Update:
spkg merged with Martins version: http://giniu.ravenlord.ws/singular-3-1-0-4-20090620.spkg, and the
fixed one: http://giniu.ravenlord.ws/singular-3-1-0-4-20090703.spkg
