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 43528] New: - compile error in strings/apr_snprintf.c due to sizeof(apr_int32_t) == sizeof(apr_int64_t)
Date Mon, 01 Oct 2007 23:21:53 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=43528>.
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=43528

           Summary: compile error in strings/apr_snprintf.c due to
                    sizeof(apr_int32_t) == sizeof(apr_int64_t)
           Product: APR
           Version: HEAD
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: APR
        AssignedTo: bugs@apr.apache.org
        ReportedBy: carnold@apache.org


Originally reported as a log4cxx bug (https://issues.apache.org/jira/browse/LOGCXX-185) by
Curtis 
Jensen.  The compilation error occurs in the switch statement in conv_os_thread_t in strings/
apr_snprintf.c (line 496 in head, line 512 in apr 1.2.7) and the compilation error would imply
that 
apr_int32_t and apr_int64_t are the same size in his configuration.  The existing SVN HEAD
has not had 
any changes that should eliminate the issue, but I can't confirm the problem as I don't have
the 
platform. 

While trying to compile a 32 bit library on a 64 bit RedHat EL 4, the following error occurs
during 
compile:

[mkdir] Created dir: /home/users/jensen/tmp/l2/build/debug/static/apr_obj
       [cc] 67 total files to be compiled.
       [cc] /home/users/jensen/tmp/l2/lib/apr-1.2.7/strings/apr_snprintf.c: In function 
`conv_os_thread_t':
       [cc] /home/users/jensen/tmp/l2/lib/apr-1.2.7/strings/apr_snprintf.c:512: error: duplicate
case 
value
       [cc] /home/users/jensen/tmp/l2/lib/apr-1.2.7/strings/apr_snprintf.c:510: error: previously
used 
here
       [cc] /home/users/jensen/tmp/l2/lib/apr-1.2.7/strings/apr_snprintf.c: In function 
`conv_os_thread_t_hex':
       [cc] /home/users/jensen/tmp/l2/lib/apr-1.2.7/strings/apr_snprintf.c:682: error: duplicate
case 
value
       [cc] /home/users/jensen/tmp/l2/lib/apr-1.2.7/strings/apr_snprintf.c:680: error: previously
used 
here
       [cc] /home/users/jensen/tmp/l2/lib/apr-1.2.7/random/unix/sha2.c:193: warning: large
integer 
implicitly truncated to unsigned type
...
       [cc] /home/users/jensen/tmp/l2/lib/apr-1.2.7/random/unix/sha2.c:957: warning: left
shift count 
>= width of type

BUILD FAILED
/home/users/jensen/tmp/l2/build.xml:560: The following error occurred while executing this
line:
/home/users/jensen/tmp/l2/apr-build.xml:167: gcc failed with return code 1


This error can be overcome by commenting out lines 512-513.

-- 
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.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message