Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 255118 - net-libs/c-client does not provide a shared library symlink so packages (vdr-mailbox, php, etc...) link statically against it
Summary: net-libs/c-client does not provide a shared library symlink so packages (vdr-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
: 255120 (view as bug list)
Depends on: 289549
Blocks: bundled-libs
  Show dependency tree
 
Reported: 2009-01-16 01:37 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2011-05-11 10:48 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2009-01-16 01:37:04 UTC
Which has obvious reasons for NOT being a good idea (see http://blog.flameeyes.eu/2008/12/24/library-on-a-collision-course-on-the-screen on a similar issue).

HTH,
Diego
Comment 1 Robert Buchholz (RETIRED) gentoo-dev 2009-01-16 01:48:27 UTC
Security bug 252567 is of no concern here (as opposed to PHP), because this is only a client-side DoS. A fix is preferable nevertheless, since an attacker could cause the application to crash via a crafted email.
Comment 2 Matthias Schwarzott gentoo-dev 2009-03-03 15:05:45 UTC
I have no idea why this command creates a library dynamically linking every dependency, but only statically linking c-client:

g++ -fPIC -g -O2 -Wall -Woverloaded-virtual -fno-operator-names -D_GNU_SOURCE  -DHAVE_VDR=1  -shared AxVdrTools.o AxPluginSetup.o AxPluginMailBox.o AxMailWrapper.o AxMenuMailViewBase.o AxMenuMailBoxView.o AxMenuMailListView.o AxMenuMailView.o  AxMenuConfigPlugin.o AxMenuConfigCommon.o AxMenuConfigMailBox.o AxMailChecker.o AxMenuFolders.o AxMenuLogView.o i18n.o ./AxLib/src/Tools/String.o ./AxLib/src/Tools/InstanceCounter.o ./AxLib/src/Mail/CallBackDispatcher.o ./AxLib/src/Mail/CallBackProcessor.o ./AxLib/src/Mail/Internal.o ./AxLib/src/Mail/LogHandlerCBP.o ./AxLib/src/Mail/LogHandler.o ./AxLib/src/Mail/MailBoxCBP.o ./AxLib/src/Mail/MailBox.o ./AxLib/src/Mail/MailBoxInternal.o ./AxLib/src/Mail/MailBoxMgr.o ./AxLib/src/Mail/MailBoxSetup.o ./AxLib/src/Mail/Mail.o ./AxLib/src/Mail/MailFolder.o ./AxLib/src/Mail/MailPart.o ./AxLib/src/Mail/MsgBody.o ./AxLib/src/Mail/MsgCache.o ./AxLib/src/Mail/Request.o ./AxLib/src/Mail/Tools.o  ./AxLib/src/VDR/Action.o ./AxLib/src/VDR/MenuCode.o ./AxLib/src/VDR/MenuText.o ./AxLib/src/VDR/Thread.o ./AxLib/src/VDR/Tools.o   -lc-client -lssl -lpam -o libvdr-mailbox.so
Comment 3 Matthias Schwarzott gentoo-dev 2009-03-04 14:20:04 UTC
# lddtree.sh /usr/lib/vdr/plugins/libvdr-mailbox.so.1.7.4
libvdr-mailbox.so.1.7.4 => /usr/lib/vdr/plugins/libvdr-mailbox.so.1.7.4 (interpreter => none)
    libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8
        libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8
            libdl.so.2 => /lib/libdl.so.2
                ld-linux.so.2 => /lib/ld-linux.so.2
    libpam.so.0 => /lib/libpam.so.0
    libstdc++.so.6 => /usr/lib/gcc/i686-pc-linux-gnu/4.3.3/libstdc++.so.6
        libm.so.6 => /lib/libm.so.6
    libgcc_s.so.1 => /usr/lib/gcc/i686-pc-linux-gnu/4.3.3/libgcc_s.so.1
    libc.so.6 => /lib/libc.so.6
Comment 4 Matthias Schwarzott gentoo-dev 2009-06-15 19:22:49 UTC
It seems net-libs/c-client is missing the file libc-client.so, so -lc-client automatically falls back to using the static version:

# equery files c-client|grep lib
/usr/lib
/usr/lib/c-client.a
/usr/lib/libc-client.a
/usr/lib/libc-client.so.1.0.0

ldconfig only creates /usr/lib/libc-client.so.1, but no link without suffix after the .so

# ls -1 /usr/lib/*c-client*
/usr/lib/c-client.a
/usr/lib/libc-client.a
/usr/lib/libc-client.so.1
/usr/lib/libc-client.so.1.0.0

Adding this by hand makes c-client nice and linkable as shared lib.
Comment 5 SpanKY gentoo-dev 2009-10-18 05:45:34 UTC
the ebuild incorrectly claims:
    # these are created by ldconfig!
    #cd ${D}/usr/$(get_libdir)
    #ln -s libc-client.so.1.0.0 libc-client.so.1
    #ln -s libc-client.so.1.0.0 libc-client.so

ldconfig will create the SONAME (.so.1), but it will not create the linkable one (.so).  the ebuild really should do both instead of relying on ldconfig anyways.
Comment 6 SpanKY gentoo-dev 2009-10-18 05:45:55 UTC
*** Bug 255120 has been marked as a duplicate of this bug. ***
Comment 7 Eray Aslan gentoo-dev 2011-05-11 10:48:34 UTC
+*c-client-2007e-r2 (11 May 2011)
+
+  11 May 2011; Eray Aslan <eras@gentoo.org> +c-client-2007e-r2.ebuild:
+  Symlink shared library - bug #255118. Drop kolab USE flag.
+