You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Matthew Farrellee (JIRA)" <qp...@incubator.apache.org> on 2008/06/26 15:03:44 UTC

[jira] Created: (QPID-1151) All qpid C++ libraries link against everything from AC_CHECK_LIB

All qpid C++ libraries link against everything from AC_CHECK_LIB
----------------------------------------------------------------

                 Key: QPID-1151
                 URL: https://issues.apache.org/jira/browse/QPID-1151
             Project: Qpid
          Issue Type: Bug
          Components: C++ Client
            Reporter: Matthew Farrellee
         Attachments: fix_linking.patch

libqpidclient.so and libqpidcommon.so have dependencies on -lxqilla, -lxerces-c, -lsasl2 and -lcpg when they should not.

This is because AC_CHECK_LIB adds libraries it finds to LIBS, which is then used on all link lines. A solution is to not add anything to LIBS and instead conditionally add to the link lines of each individual library.

Attached patch is off r671877

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


[jira] Updated: (QPID-1151) All qpid C++ libraries link against everything from AC_CHECK_LIB

Posted by "Matthew Farrellee (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1151?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matthew Farrellee updated QPID-1151:
------------------------------------

    Attachment: fix_linking.patch

> All qpid C++ libraries link against everything from AC_CHECK_LIB
> ----------------------------------------------------------------
>
>                 Key: QPID-1151
>                 URL: https://issues.apache.org/jira/browse/QPID-1151
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Client
>            Reporter: Matthew Farrellee
>         Attachments: fix_linking.patch
>
>
> libqpidclient.so and libqpidcommon.so have dependencies on -lxqilla, -lxerces-c, -lsasl2 and -lcpg when they should not.
> This is because AC_CHECK_LIB adds libraries it finds to LIBS, which is then used on all link lines. A solution is to not add anything to LIBS and instead conditionally add to the link lines of each individual library.
> Attached patch is off r671877

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


[jira] Resolved: (QPID-1151) All qpid C++ libraries link against everything from AC_CHECK_LIB

Posted by "Alan Conway (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1151?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alan Conway resolved QPID-1151.
-------------------------------

    Resolution: Fixed

Tested & comitted revision 671902

> All qpid C++ libraries link against everything from AC_CHECK_LIB
> ----------------------------------------------------------------
>
>                 Key: QPID-1151
>                 URL: https://issues.apache.org/jira/browse/QPID-1151
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Client
>            Reporter: Matthew Farrellee
>            Assignee: Alan Conway
>         Attachments: fix_linking.patch
>
>
> libqpidclient.so and libqpidcommon.so have dependencies on -lxqilla, -lxerces-c, -lsasl2 and -lcpg when they should not.
> This is because AC_CHECK_LIB adds libraries it finds to LIBS, which is then used on all link lines. A solution is to not add anything to LIBS and instead conditionally add to the link lines of each individual library.
> Attached patch is off r671877

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


[jira] Assigned: (QPID-1151) All qpid C++ libraries link against everything from AC_CHECK_LIB

Posted by "Alan Conway (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1151?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alan Conway reassigned QPID-1151:
---------------------------------

    Assignee: Alan Conway

> All qpid C++ libraries link against everything from AC_CHECK_LIB
> ----------------------------------------------------------------
>
>                 Key: QPID-1151
>                 URL: https://issues.apache.org/jira/browse/QPID-1151
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Client
>            Reporter: Matthew Farrellee
>            Assignee: Alan Conway
>         Attachments: fix_linking.patch
>
>
> libqpidclient.so and libqpidcommon.so have dependencies on -lxqilla, -lxerces-c, -lsasl2 and -lcpg when they should not.
> This is because AC_CHECK_LIB adds libraries it finds to LIBS, which is then used on all link lines. A solution is to not add anything to LIBS and instead conditionally add to the link lines of each individual library.
> Attached patch is off r671877

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