Mantis - libpcap1
Viewing Issue Advanced Details
5220 packaging minor always 2014-11-25 11:18 2014-12-10 14:28
kresimir  
dam  
normal  
feedback  
open  
none    
none  
0005220: Installation of <CSWlibpcap1> partially failed - pathname does not exist - Solaris 10
Installation of libpcap1 package partially fails because it can not create symbolic links due to pathname problems.


bash-3.2# pkgadd -d libpcap1-1.5.3\,REV\=2014.07.04-SunOS5.10-sparc-CSW.pkg

The following packages are available:
  1 CSWlibpcap1 libpcap1 - System-independent interface for user-level packet capture, libpcap.so.1
                     (sparc) 1.5.3,REV=2014.07.04

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:

Processing package instance <CSWlibpcap1> from </var/spool/pkg/libpcap1-1.5.3,REV=2014.07.04-SunOS5.10-sparc-CSW.pkg>

libpcap1 - System-independent interface for user-level packet capture, libpcap.so.1(sparc) 1.5.3,REV=2014.07.04
Please see /opt/csw/share/doc/libpcap1/license for license information.
## Processing package information.
## Processing system information.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

Installing libpcap1 - System-independent interface for user-level packet capture, libpcap.so.1 as <CSWlibpcap1>

## Installing part 1 of 1.
/opt/csw/lib/libpcap.so.1 <symbolic link>
pkgadd: ERROR: unable to create package object </opt/csw/lib/libpcap.so.1>.
    pathname does not exist
    unable to create symbolic link to <libpcap.so.1.5.3>
/opt/csw/lib/libpcap.so.1
/opt/csw/lib/libpcap.so.1.5.3
/opt/csw/lib <implied directory>
/opt/csw/lib/sparcv9/libpcap.so.1 <symbolic link>
pkgadd: ERROR: unable to create package object </opt/csw/lib/sparcv9/libpcap.so.1>.
    pathname does not exist
    unable to create symbolic link to <libpcap.so.1.5.3>
/opt/csw/lib/sparcv9/libpcap.so.1
/opt/csw/lib/sparcv9/libpcap.so.1.5.3
/opt/csw/lib/sparcv9 <implied directory>
/opt/csw/share/doc/libpcap1/license
/opt/csw/share/man/man5/pcap-filter.5
/opt/csw/share/man/man5/pcap-linktype.5
/opt/csw/share/man/man5/pcap-tstamp.5
[ verifying class <none> ]

Installation of <CSWlibpcap1> partially failed.
libpcap1-1.5.3,REV=2014.07.04-SunOS5.10-sparc-CSW.pkg was directly downloaded from http://mirror.opencsw.org/opencsw/allpkgs/ [^] as a single package.
Prior to its installation, common package (common-1.7,REV=2012.11.24-SunOS5.10-all-CSW.pkg) was installed on machine.

Solaris version:
bash-3.2# cat /etc/release
                   Oracle Solaris 10 1/13 s10s_u11wos_24a SPARC
  Copyright (c) 1983, 2013, Oracle and/or its affiliates. All rights reserved.
                            Assembled 17 January 2013


Workaround: second installation of the same package returns success. Although, it seems that nothing was even installed on the second try, it just verifies that all is ok, even symbolic links.

bash-3.2# pkgadd -d libpcap1-1.5.3\,REV\=2014.07.04-SunOS5.10-sparc-CSW.pkg

The following packages are available:
  1 CSWlibpcap1 libpcap1 - System-independent interface for user-level packet capture, libpcap.so.1
                     (sparc) 1.5.3,REV=2014.07.04

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:

Processing package instance <CSWlibpcap1> from </var/spool/pkg/libpcap1-1.5.3,REV=2014.07.04-SunOS5.10-sparc-CSW.pkg>

libpcap1 - System-independent interface for user-level packet capture, libpcap.so.1(sparc) 1.5.3,REV=2014.07.04

This appears to be an attempt to install the same architecture and
version of a package which is already installed. This installation
will attempt to overwrite this package.


The installation of this package was previously terminated and
installation was never successfully completed.

Do you want to continue with the installation of <CSWlibpcap1> [y,n,?] y
Please see /opt/csw/share/doc/libpcap1/license for license information.
Using </> as the package base directory.
## Processing package information.
## Processing system information.
   10 package pathnames are already properly installed.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

Installing libpcap1 - System-independent interface for user-level packet capture, libpcap.so.1 as <CSWlibpcap1>

## Installing part 1 of 1.
[ verifying class <none> ]

Installation of <CSWlibpcap1> was successful.

Issue History
2014-11-25 11:18 kresimir New Issue
2014-12-10 14:19 dam Status new => assigned
2014-12-10 14:19 dam Assigned To => dam
2014-12-10 14:28 dam Note Added: 0010991
2014-12-10 14:28 dam Status assigned => feedback

Notes
(0010991)
dam   
2014-12-10 14:28   
You are using a version of CSWcommon not suited for the version of libpcap you are using. Please do not just install random stuff from allpkgs as it won't work. I suggest to use pkgutil and probably a local mirror with a selection of one catalog (like unstable or testing).