Re: Bug#227213: libnids1: libnids.so.1.18 is a non-PIC library
reassign 227213 libnet0-dev
severity important
tags 227213 patch
thank
OoO En cette nuit striée d'éclairs du mardi 20 janvier 2004, vers
02:10, Michel Dänzer <daenzer@debian.org> disait:
>> >> /usr/sbin/prelink: /usr/sbin/dsniff: Cannot prelink against non-PIC shared library /usr/lib/libnids.so.1.18
>> >> /usr/sbin/prelink: /usr/sbin/urlsnarf: Cannot prelink against non-PIC shared library /usr/lib/libnids.so.1.18
>> >> /usr/sbin/prelink: /usr/sbin/webspy: Cannot prelink against non-PIC shared library /usr/lib/libnids.so.1.18
>>
>> > How should this be fixed? Just adding a -fPIC on the compilation
>> > command line?
> Basically, yes. However, looking at
> http://buildd.debian.org/fetch.php?&pkg=libnids&ver=1.18-1&arch=powerpc&stamp=1073518192&file=log&as=raw
> this seems to be done correctly already; the problem likely stems
> from libnet, which seems to be only available in static form (and
> hence built without -fPIC).
Is there a drawback to build it with -fPIC. With this patch, all
programs based on libnids work fine now.
--- Makefile.in 2004-01-21 10:22:36.955295816 +0100
+++ Makefile.in~ 2004-01-21 10:12:16.351641912 +0100
@@ -68,7 +68,7 @@
src/libnet_port_list.o
.c.o:
- $(CC) $(CFLAGS) $(CPPFLAGS) $(DEFINES) -c $< -o $@
+ $(CC) -fPIC $(CFLAGS) $(CPPFLAGS) $(DEFINES) -c $< -o $@
all: libnet
supp: test example
I have set severity to important since it breaks other packages, and I
have reassigned the bug to libnet0-dev, since the patch applies to
this package, however, since libnet0-dev only gives static versions,
there is nothing wrong with it (so, maybe set severity to wishlist ?).
--
Write clearly - don't be too clever.
- The Elements of Programming Style (Kernighan & Plaugher)
Reply to: