LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   failed dependecies with libpcap (https://www.linuxquestions.org/questions/fedora-35/failed-dependecies-with-libpcap-141990/)

Baltasar 02-03-2004 06:55 PM

failed dependecies with libpcap
 
Hi

I must get ppp from http : //pptpclient.sourceforge.net to work, because my DSL use the pptp protocol.
My problem is installing the ppp package.
A rpm -ivh ppp-2.4.2_cvs_20040102-1.i386.rpm brings up a "Failed dependencies: libpcap.so.0 is needed by ppp-2.4.2_cvs_20040102-1", but libpcap is installed!


rpm -qa | grep libpcap
libpcap-0.7.2-7.1

ls -l /usr/lib/libpcap*
-rw-r--r-- 1 root root 173222 29. Aug 15:18 /usr/lib/libpcap.a
lrwxrwxrwx 1 root root 16 4. Feb 01:44 /usr/lib/libpcap.so -> libpcap.so.0.6.2
lrwxrwxrwx 1 root root 16 4. Feb 01:44 /usr/lib/libpcap.so.0 -> libpcap.so.0.6.2
lrwxrwxrwx 1 root root 16 4. Feb 01:44 /usr/lib/libpcap.so.0.6 -> libpcap.so.0.6.2
-rwxr-xr-x 1 root root 117188 29. Aug 15:18 /usr/lib/libpcap.so.0.6.2

How can i resolv the problem?

Thank you in advance!
Baltasar

jailbait 02-03-2004 09:10 PM

"How can i resolv the problem?"

Something is wrong because rpm shows that you have libpcap version 0.7.2-7.1 installed but the files in /usr/lib/libpcap are version 0.6.2. I don't know why this version discrepency would cause the ppp install to fail. But if that is the problem then you could fix it by removing libpcap with rpm -e libpcap or perhaps rpm --nodeps -e libpcap. Keep removing libpcap until rpm tells you that there is no libpcap installed. Then install libpcap version 0.7.2-7.1 and see if that solves the ppp instll problem.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

Baltasar 02-04-2004 01:12 PM

i removed libpcap and the packages which depends on it and installed libpcap-0.8.1-4.
Now the libpcap files in /usr/lib have got the same version as the rpm package is, but i have still the same problem as before and a few others.


# rpm -ivh ppp-2.4.2_cvs_20040102-1.i386.rpm
Error: Failed dependencies:
libpcap.so.0 is needed by ppp-2.4.2_cvs_20040102-1

# ls -la /usr/lib/libpcap.*
-rw-r--r-- 1 root root 211276 23. Jän 14:52 /usr/lib/libpcap.a
lrwxrwxrwx 1 root root 16 4. Feb 19:36 /usr/lib/libpcap.so -> libpcap.so.0.8.1
lrwxrwxrwx 1 root root 16 4. Feb 19:36 /usr/lib/libpcap.so.0 -> libpcap.so.0.8.1
lrwxrwxrwx 1 root root 16 4. Feb 19:36 /usr/lib/libpcap.so.0.8 -> libpcap.so.0.8.1
-rwxr-xr-x 1 root root 142420 23. Jän 14:52 /usr/lib/libpcap.so.0.8.1



and the new error is:
# apt-get install ethereal
.....
.....
The following packages have unmet dependencies:
ethereal: Depends: libpcap.so.0.6.2

I think this problem is reproducable on every FC1 system, because i tried to install ppp,pptp on 4 fresh installed systems and every time it had occured.

I am grateful over each advice
Baltasar

jailbait 02-04-2004 03:01 PM

"The following packages have unmet dependencies:
ethereal: Depends: libpcap.so.0.6.2"

You could try making libpcap.so.0.6.2 a symbolic link to libpcap.so.0.8.1

ln -s libpcap.so.0.8.1 /usr/lib/libpcap.so.0.6.2

I am not sure but you may have to run ldconfig before this link will take effect.


--------------------------
Steve Stites

Baltasar 02-04-2004 03:16 PM

i didn't thank you for your replies yet, so thank you :)

i have to tell you, that creating a symlink and running ldconfig didn't help :scratch:
if you try installing ppp from http://pptpclient.sourceforge.net , do you get the same errors?

jailbait 02-04-2004 04:45 PM

"i have to tell you, that creating a symlink and running ldconfig didn't help"

It looks like the ethereal rpm has a mistake in its dependencies. I think that ethereal is saying that it depends on libpcap version 0.6.2 when actually it should say that it depends on libpcap version 0.6.2 or higher.

I guess the next thing to do is to try and force the install. Try using the rpm --force option:
rpm --force -i /pathname/ethereal....rpm
This should install ethereal even though the rpm data base does not contain libpcap version 0.6.2. When ethereal runs and uses libpcap version 0.6.2 the symbolic link will direct it to version 0.8.2 which should work OK.

If it turns out to be true that ethereal really depends on an exact version number of libpcap then you will have to find matching releases of ethereal and libpcap.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

Baltasar 02-06-2004 09:56 AM

Hi,

I asked the developers and i just want to let you now the answeres.



The libpcap dependecies problem:

The problem is that internally in the past the libpcap ABI has
changed, therefore a pretty exact match between ethereal and libpcap
was always necessary.

As unfortunatelt no combined update has been done for ethereal and
libpcap on FC1 i suggest you simply use the FC2 versions of both,
which is a good idea anyway imho.

Phil Knirsch (pknirsch@redhat.com)



and the ppp libpcap problem:


Try building it from the src.rpm, let us know the result.

A workaround is to try an older version of the PPP 2.4.2 package, as
the dependency on libpcap.so.0 is only recent. 2.4.2_cvs_20031104 does
not require it. See http://quozl.netrek.org/pptp/ppp.phtml for that
version.

The right solution might be for me to release another version without
the libpcap dependency. There's a way I can build pppd without it.

--
James Cameron http://quozl.netrek.org/
HP Open Source, Volunteer http://opensource.hp.com/
PPTP Client Project, Release Engineer http://pptpclient.sourceforge.net/



What me helped is upgraded to libpcap FC2 version and installed the older ppp-2.4.2_cvs version

greetings
Baltasar


All times are GMT -5. The time now is 04:31 AM.