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 42545] New: - apr redefines compiler-internal __attribute__
Date Wed, 30 May 2007 09:39:09 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=42545>.
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=42545

           Summary: apr redefines compiler-internal __attribute__
           Product: APR
           Version: 1.2.8
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: major
          Priority: P2
         Component: APR
        AssignedTo: bugs@apr.apache.org
        ReportedBy: apaku@gmx.de


Hi,

I didn't get any responses at the dev mailinglist so I'm filing this as bug:

after a long journey and with the help of a kind soul I found that apr.h
contains an error which makes apr unusable with mingw. The problem is
line #59 in apr.h.in, that line redefines __attribute__(__x) to nothing,
however mingw uses __attribute__(__stdcall) when declaring a function
with __stdcall. This creates a problem when trying to link with the apr
library, because the import library contains the wrong symbols, in
particular it has _apr_foo and __im__?apr_foo@@...

Removing that define one can create a proper import library for apr from
the MSVC dll and the .def file by following the instructions found on
http://www.mingw.org/MinGWiki/index.php/MSVC-MinGW-DLL

I don't understand why apr redefines a compiler-internal symbol like 
__attribute__.

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