<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:08:39 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CDRIVER-171] Makefile created libmongoc.so but it doesnot contains any symbols</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-171</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;I am trying to use the c driver but getting problems linking with it. The compile process  for the driver created libmongoc.so and libmongoc.a. I am trying to link dynamically to the .so object by the giving the &quot;-lmongo&quot; to the linker line for my application. This gave me run-time errors related to undefined symbol in my final application. Running objdump and readelf on libmongoc.so shows that NONE of these symbols are present in it. It effectively has no symbol at all in it. All these symbols are only present in the libmongoc.a(static archive). Looking the the related portions in Makefile i found that:&lt;/p&gt;

&lt;p&gt;MONGO_DYLIB_MAKE_CMD=$(CC) -shared -Wl,-soname,$(MONGO_DYLIB_MINOR_NAME) -o $(MONGO_DYLIBNAME) $(ALL_LDFLAGS)&lt;/p&gt;

&lt;p&gt;(MONGO_DYLIBNAME): $(MONGO_OBJECTS)&lt;br/&gt;
    $(MONGO_DYLIB_MAKE_CMD)&lt;/p&gt;

&lt;p&gt;There are no objects being passed to the last make command which effectivly means theres is nothing in the .so file. Is this a bug or i am looking at the problem wrongly? &lt;/p&gt;


&lt;p&gt;Also kindly tell HOW TO link properly to the .so object. I am attaching the output of readelf on the almost empty .so file.&lt;/p&gt;</description>
                <environment>Linux 2.6.35.14-97.fc14.x86_64, GCC 4.6.1,GNU Make 3.82</environment>
        <key id="51894">CDRIVER-171</key>
            <summary>Makefile created libmongoc.so but it doesnot contains any symbols</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="auny">ahmed talha khan</reporter>
                        <labels>
                            <label>Makefile</label>
                            <label>compilation</label>
                            <label>linking</label>
                    </labels>
                <created>Mon, 1 Oct 2012 09:38:25 +0000</created>
                <updated>Wed, 11 Sep 2019 19:04:19 +0000</updated>
                            <resolved>Tue, 22 Jan 2013 16:52:42 +0000</resolved>
                                    <version>0.5.1</version>
                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="246666" author="gjmurakami" created="Tue, 22 Jan 2013 16:52:42 +0000"  >&lt;p&gt;Fix in the following commmit &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/ea89d8fa966ccf601a67e1507e67e829775f6bcb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/ea89d8fa966ccf601a67e1507e67e829775f6bcb&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-158&quot; title=&quot;linker errors on mac v0.6&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-158&quot;&gt;&lt;del&gt;CDRIVER-158&lt;/del&gt;&lt;/a&gt; linker errors on mac v0.6&lt;/p&gt;

&lt;p&gt;Please comment/reopen if there is any remaining issue.&lt;/p&gt;</comment>
                            <comment id="233437" author="gjmurakami" created="Mon, 7 Jan 2013 20:12:12 +0000"  >&lt;p&gt;Please retry with the latest 0.7 package.  Because of recent changes at github, you may have to clone from github until a new archive file is available.  I&apos;m pretty sure that this package addresses your issue.  I will be working on the archive file ASAP.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="20393" name="elf_libmongo.so" size="13047" author="auny" created="Mon, 1 Oct 2012 09:38:25 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrj8k7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>25901</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>