apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 40344] New: - [apr-1.2.7] replace size_t_fmt + friends by proper casts and %.ld
Date Tue, 29 Aug 2006 10:43:42 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40344>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40344

           Summary: [apr-1.2.7] replace size_t_fmt + friends by proper casts
                    and %.ld
           Product: APR
           Version: 1.2.7
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: APR
        AssignedTo: bugs@apr.apache.org
        ReportedBy: weigelt@metux.de


For string formatting (printf) of certain types, ie. size_t, there's an
configure check using AC_TRY_RUN how wide the type actually is. This breaks
crosscompiling - AC_TRY_RUN cannot work when crosscompiling.

Solution: always use %ld and simply cast all printf arguments to long.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Mime
View raw message