activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Mittler (JIRA)" <j...@apache.org>
Subject [jira] Closed: (AMQCPP-53) Declaration of extern int errno after including errno.h doesn't compile
Date Wed, 24 Jan 2007 11:32:04 GMT

     [ https://issues.apache.org/activemq/browse/AMQCPP-53?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Nathan Mittler closed AMQCPP-53.
--------------------------------

    Resolution: Fixed

fixed in trunk

> Declaration of extern int errno after including errno.h doesn't compile
> -----------------------------------------------------------------------
>
>                 Key: AMQCPP-53
>                 URL: https://issues.apache.org/activemq/browse/AMQCPP-53
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Albert Strasheim
>         Assigned To: Nathan Mittler
>             Fix For: 2.0
>
>
> A few places in AMQCPP declare extern int errno after includes errno.h. This fails to
compile on Fedora Core 4 and Fedora Core 6 with the following error:
> {noformat}
> activemq/concurrent/Thread.cpp:23: error: declaration of 'int* __errno_location()' throws
different exceptions
> /usr/include/bits/errno.h:38: error: than previous declaration 'int* __errno_location()
throw ()'
> {noformat}
> As far as I know, including errno.h should be sufficient -- the extra declaration of
errno is unnecessary. However, maybe you know of some older platforms where it has to be declared
explicitly, even after the header has been included?
> The places in the library where this issue crops up are:
> * src/main/activemq/concurrent/Thread.cpp
> * src/main/activemq/network/SocketError.cpp

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message