Bug 197081 - __libc_interposing missing from /rescue. Fails to build /rescue/rescue
Summary: __libc_interposing missing from /rescue. Fails to build /rescue/rescue
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 10.1-STABLE
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-bugs mailing list
Depends on:
Reported: 2015-01-26 01:03 UTC by dewayne
Modified: 2015-01-26 02:17 UTC (History)
0 users

See Also:

librescue patch - addresses undefined libc_interposing (985 bytes, patch)
2015-01-26 02:17 UTC, dewayne
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description dewayne 2015-01-26 01:03:23 UTC
FreeBSD 10.1Stable doesn't build /rescue/rescue due to undefined reference `__libc_interposing'. 

Reference: https://lists.freebsd.org/pipermail/svn-src-stable-10/2015-January/004295.html

Error condition generated 
cc -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 sleep.lo stty.lo sync.lo test.lo csh.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_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 bsdlabel.lo fdisk.lo dhclient.lo head.lo mt.lo nc.lo sed.lo tail.lo tee.lo gzip.lo bzip2.lo less.lo xz.lo tar.lo vi.lo id.lo chroot.lo chown.lo /usr/obj/usr/src/rescue/rescue/../librescue/exec.o /usr/obj/usr/src/rescue/rescue/../librescue/getusershell.o /usr/obj/usr/src/rescue/rescue/../librescue/login_class.o /usr/obj/usr/src/rescue/rescue/../librescue/popen.o /usr/obj/usr/src/rescue/rescue/../librescue/rcmdsh.o /usr/obj/usr/src/rescue/rescue/../librescue/sysctl.o /usr/obj/usr/src/rescue/rescue/../librescue/system.o -lcrypt -ledit -ljail -lkvm -ll -ltermcap -lutil -lalias -lcam -lcurses -ldevstat -lipsec -lipx -lgeom -lbsdxml -lkiconv -lsbuf -lufs -lz -lbz2 -llzma -larchive -lcrypto -lmd -lm
nc.lo: In function `_$$hide$$ nc.lo main':
(.text+0x640): warning: warning: mktemp() possibly used unsafely; consider using mkstemp()
/usr/obj/usr/src/rescue/rescue/../librescue/system.o: In function `system':
/usr/src/rescue/librescue/../../lib/libc/stdlib/system.c:(.text.system[system]+0x7): undefined reference to `__libc_interposing'
/usr/bin/ld: rescue: hidden symbol `__libc_interposing' isn't defined
/usr/bin/ld: final link failed: Nonrepresentable section on output
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1
Comment 1 dewayne 2015-01-26 02:17:52 UTC
Created attachment 152144 [details]
librescue patch - addresses undefined libc_interposing

Attachment enables /rescue/rescue to build and run on 10.1Stable. Apply the patch to /rescue/librescue/Makefile, its a workaround kludge as I'm not very technical.