Bug 214276 - archivers/rpm4: rpm -i fails with Undefined symbol "nspr_use_zone_allocator"
Summary: archivers/rpm4: rpm -i fails with Undefined symbol "nspr_use_zone_allocator"
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Johan van Selst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-06 18:31 UTC by chuck
Modified: 2017-12-31 21:43 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (johans)


Attachments
output from running rpm through truss (290.17 KB, text/plain)
2016-11-06 18:31 UTC, chuck
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description chuck 2016-11-06 18:31:33 UTC
Created attachment 176693 [details]
output from running rpm through truss

Using rpm to install a CentOS package on -CURRENT fails with the error:

# rpm --root /tst/linux/ -i /tst/linux/var/cache/yum/base/packages/vim-minimal-7.4.629-5.el6.x86_64.rpm
warning: /tst/linux/var/cache/yum/base/packages/vim-minimal-7.4.629-5.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
error: Failed to resolve symbol syslog_hooks: Undefined symbol "nspr_use_zone_allocator"
error: error reading from file /tst/linux/var/cache/yum/base/packages/vim-minimal-7.4.629-5.el6.x86_64.rpm

Listing the contents of the package appears to work:
# rpm --root /tst/linux/ -qlp /tst/linux/var/cache/yum/base/packages/vim-minimal-7.4.629-5.el6.x86_64.rpm 
warning: /tst/linux/var/cache/yum/base/packages/vim-minimal-7.4.629-5.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
/bin/ex
/bin/rvi
/bin/rview
/bin/vi
/bin/view
/etc/virc

All .rpm's appear to have the same issue, so I don't suspect it is a problem with the particular archive.

The syslog.so from rpm4 appears to be pointed at the correct library:

# grep -r nspr_use_zone_allocator /usr/local/lib*
Binary file /usr/local/lib/firefox/libxul.so matches
Binary file /usr/local/lib/libnspr4.a matches
Binary file /usr/local/lib/libnspr4.so matches
# ldd /usr/local/lib/rpm-plugins/syslog.so | grep nspr
        libnspr4.so => /usr/local/lib/libnspr4.so (0x803477000)
# pkg which /usr/local/lib/libnspr4.so
/usr/local/lib/libnspr4.so was installed by package nspr-4.13_1
# pkg info nspr-4.13_1
nspr-4.13_1
Name           : nspr
Version        : 4.13_1
Installed on   : Sat Oct 29 09:43:14 2016 PDT
Origin         : devel/nspr
Architecture   : freebsd:12:x86:64

Other software info:

# pkg info rpm4
rpm4-4.12.0.1_3
Name           : rpm4
Version        : 4.12.0.1_3
Installed on   : Sat Oct 29 09:43:15 2016 PDT
Origin         : archivers/rpm4
Architecture   : freebsd:12:x86:64
# uname -a
FreeBSD chuck-laptop 12.0-CURRENT FreeBSD 12.0-CURRENT #14 1717ae3(drm-next-4.7): Fri Oct 28 13:49:49 UTC 2016     root@gauntlet:/usr/obj/usr/src/sys/GENERIC  amd64

rpm URL : http://mirror.atlantic.net/centos/6.8/os/x86_64/Packages/vim-minimal-7.4.629-5.el6.x86_64.rpm

Output from truss is attached in case that is of use.
Comment 1 Anton Yuzhaninov 2017-11-08 15:06:33 UTC
Please try to rebuild rmp port without plugins.
Comment 2 Anton Yuzhaninov 2017-11-08 15:19:45 UTC
Anyway rpm -i will not install Linux packages under FreeBSD and you will need to follow method described in Handbook: https://www.freebsd.org/doc/handbook/linuxemu-lbc-install.html