Bug 5339 - ошибка сборки (soname)
: ошибка сборки (soname)
Status: CLOSED WONTFIX
: Sisyphus
(All bugs in Sisyphus/libfdisk)
: unstable
: all Linux
: P5 blocker
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2004-10-15 16:42 by
Modified: 2007-04-06 15:23 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2004-10-15 16:42:57
$ readelf -d /usr/lib/libfdisk.so.0|grep soname 
 0x0000000e (SONAME)                     Library soname: [libfdisk.so]


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

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 From 2005-04-10 10:50:22 -------
obsolete