Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 454508 - freebsd-rescue-9.1: Fail to link in environment that dev-util/pkgconfig-0.28 is installed.
Summary: freebsd-rescue-9.1: Fail to link in environment that dev-util/pkgconfig-0.28 ...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-29 11:25 UTC by Yuta SATOH
Modified: 2017-07-22 21:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
files/freebsd-rescue-9.1-pkgconfig_static_libarchive.patch (freebsd-rescue-9.9999-pkgconfig_static_libarchive.patch,450 bytes, patch)
2013-01-29 11:31 UTC, Yuta SATOH
Details | Diff
backport patch for freebsd-rescue-9.1.ebuild (454508-freebsd-rescue-9.1.ebuild.patch,1.92 KB, patch)
2013-08-13 13:34 UTC, Yuta SATOH
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuta SATOH 2013-01-29 11:25:41 UTC
freebsd-rescue-9.1 fails to link because value returned by latest pkgconfig-0.28 is different.

This problem occurs when -lz exists before -lxml2.



Reproducible: Always

Steps to Reproduce:
1. emerge pkgconfig
2. emerge freebsd-rescue
3.


Actual Results:  
x86_64-gentoo-freebsd9.1-gcc -static -o rescue rescue.o cat.lo chflags.lo chio.lo chmod.lo cp.lo date.lo dd.lo df.lo echo.lo ed.lo expr.lo getfacl.lo hostname.lo kenv.lo kill.lo ln.lo ls.lo mkdir.lo mv.lo pkill.lo ps.lo pwd.lo realpath.lo rm.lo rmdir.lo setfacl.lo sh.lo stty.lo sync.lo test.lo rcp.lo csh.lo atacontrol.lo badsect.lo camcontrol.lo ccdconfig.lo clri.lo devfs.lo dmesg.lo dump.lo dumpfs.lo dumpon.lo fsck.lo fsck_ffs.lo fsck_msdosfs.lo fsdb.lo fsirand.lo gbde.lo geom.lo ifconfig.lo init.lo kldconfig.lo kldload.lo kldstat.lo kldunload.lo ldconfig.lo md5.lo mdconfig.lo mdmfs.lo mknod.lo mount.lo mount_cd9660.lo mount_msdosfs.lo mount_nfs.lo mount_ntfs.lo mount_nullfs.lo mount_udf.lo mount_unionfs.lo newfs.lo newfs_msdos.lo nos-tun.lo ping.lo reboot.lo restore.lo rcorder.lo route.lo routed.lo rtquery.lo rtsol.lo savecore.lo spppcontrol.lo swapon.lo sysctl.lo tunefs.lo umount.lo ping6.lo ipf.lo zfs.lo zpool.lo bsdlabel.lo fdisk.lo dhclient.lo head.lo mt.lo nc.lo sed.lo tail.lo tee.lo gzip.lo bzip2.lo xz.lo tar.lo vi.lo id.lo chroot.lo chown.lo /var/tmp/portage/sys-freebsd/freebsd-rescue-9.1/work/rescue/rescue/../librescue/exec.o /var/tmp/portage/sys-freebsd/freebsd-rescue-9.1/work/rescue/rescue/../librescue/getusershell.o /var/tmp/portage/sys-freebsd/freebsd-rescue-9.1/work/rescue/rescue/../librescue/login_class.o /var/tmp/portage/sys-freebsd/freebsd-rescue-9.1/work/rescue/rescue/../librescue/popen.o /var/tmp/portage/sys-freebsd/freebsd-rescue-9.1/work/rescue/rescue/../librescue/rcmdsh.o /var/tmp/portage/sys-freebsd/freebsd-rescue-9.1/work/rescue/rescue/../librescue/sysctl.o /var/tmp/portage/sys-freebsd/freebsd-rescue-9.1/work/rescue/rescue/../librescue/system.o -lcrypt -ledit -lkvm -lfl -lncurses -lutil -lalias -lcam -lcurses -ldevstat -lipsec -lavl -lnvpair -lpthread -lzfs -luutil -lumem -lgeom -lexpat -ljail -lkiconv -lreadline -lsbuf -lufs -lbz2 -llzma -larchive -lcharz -lxml2 -liconv -lm -lcrypto -lmd
nc.lo: In function `main':
/var/tmp/portage/sys-freebsd/freebsd-rescue-9.1/work/usr.bin/nc/../../contrib/netcat/netcat.c:336: warning: warning: mktemp() possibly used unsafely; consider using mkstemp()
/usr/lib/gcc/x86_64-gentoo-freebsd9.1/4.6.3/../../../libxml2.a(xmlIO.o): In function `xmlGzfileClose':
(.text+0xb55): undefined reference to `gzclose'
/usr/lib/gcc/x86_64-gentoo-freebsd9.1/4.6.3/../../../libxml2.a(xmlIO.o): In function `xmlGzfileWrite':
(.text+0xb85): undefined reference to `gzwrite'
/usr/lib/gcc/x86_64-gentoo-freebsd9.1/4.6.3/../../../libxml2.a(xmlIO.o): In function `xmlGzfileRead':
(.text+0xd25): undefined reference to `gzread'
/usr/lib/gcc/x86_64-gentoo-freebsd9.1/4.6.3/../../../libxml2.a(xmlIO.o): In function `__xmlParserInputBufferCreateFilename':
(.text+0x1cbd): undefined reference to `gzdirect'
collect2: ld returned 1 exit status




results of dev-util/pkgconfig-0.27.1)
# pkg-config --static --libs libarchive
-larchive -llzma -lcharset -lbz2 -lxml2 -lz -lpthread -liconv -lm -lcrypto

results of dev-util/pkgconfig-0.28)
# pkg-config --static --libs libarchive
-larchive -llzma -lcharset -lbz2 -lz -lxml2 -lz -lpthread -liconv -lm -lcrypto
Comment 1 Yuta SATOH 2013-01-29 11:31:19 UTC
Created attachment 337214 [details, diff]
files/freebsd-rescue-9.1-pkgconfig_static_libarchive.patch

bad patch...
however, link is successful.
Comment 2 Yuta SATOH 2013-08-13 13:34:00 UTC
Created attachment 355872 [details, diff]
backport patch for freebsd-rescue-9.1.ebuild

fixed in 9.2_rc1.

Backport to freebsd-rescue-9.1.
Comment 3 Yuta SATOH 2017-07-22 21:29:22 UTC
freebsd-rescue-9.1 is too old. Please use the newer version.
closing.