Bug 5339 - ошибка сборки (soname)
Summary: ошибка сборки (soname)
Status: CLOSED WONTFIX
Alias: None
Product: Sisyphus
Classification: Development
Component: libfdisk (show other bugs)
Version: unstable
Hardware: all Linux
: P5 blocker
Assignee: Alexey Gladkov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-15 16:42 MSD by Anton Farygin
Modified: 2007-04-06 15:23 MSD (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Farygin 2004-10-15 16:42:57 MSD
$ readelf -d /usr/lib/libfdisk.so.0|grep soname 
 0x0000000e (SONAME)                     Library soname: [libfdisk.so]


а должно быть libfdisk.so.0
Comment 1 Anton Farygin 2004-10-15 16:46:42 MSD
можно сделать, например, вот так:

diff -ur libfdisk-2.12a.orig/Makefile libfdisk-2.12a/Makefile
--- libfdisk-2.12a.orig/Makefile        2004-10-13 15:16:33 +0400
+++ libfdisk-2.12a/Makefile     2004-10-15 16:36:37 +0400
@@ -6,8 +6,8 @@
 
 $(SONAME): fdisk.o llseek.o \
        i386_sys_types.o partname.o
-       $(CC) -shared -o $(SONAME) -Wl,-soname,libfdisk.so -ggdb $^
-       /sbin/ldconfig -nv .
+       $(CC) -shared -o $(SONAME) -Wl,-soname,$(SONAME) -ggdb $^
+       ln -s $(SONAME) libfdisk.so
 # libfdisk.so: fdisk.o llseek.o fdiskbsdlabel.o fdisksgilabel.o fdisksunlabel.o \
 #      fdiskaixlabel.o i386_sys_types.o partname.o
 fdisk.o: fdisk.c fdisk.h
Comment 2 Kachalov Anton 2005-04-10 10:50:22 MSD
obsolete