like this: ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib /usr/local/lib/compat 32-bit compatibility ldconfig path: /usr/local/lib32/compat .: Can't open %%RC_SUBR%%: No such file or directory uname -a: FreeBSD lanshuweb2 8.0-RELEASE FreeBSD 8.0-RELEASE #2: Tue May 11 10:04:28 UTC 2010 root@lanshuweb2:/usr/obj/usr/src/sys/mlh amd6 /usr/src/sys/amd64/conf/mlh: ... options SCHED_ULE # ULE scheduler options PREEMPTION # Enable kernel thread preemption options INET # InterNETworking #options INET6 # IPv6 communications protocols options SCTP # Stream Control Transmission Protocol options FFS # Berkeley Fast Filesystem options SOFTUPDATES # Enable FFS soft updates support options UFS_ACL # Support for access control lists options UFS_DIRHASH # Improve performance on big directories options UFS_GJOURNAL # Enable gjournal-based UFS journaling options MD_ROOT # MD is a potential root device #options NFSCLIENT # Network Filesystem Client #options NFSSERVER # Network Filesystem Server #options NFSLOCKD # Network Lock Manager #options NFS_ROOT # NFS usable as /, requires NFSCLIENT #options MSDOSFS # MSDOS Filesystem options CD9660 # ISO 9660 Filesystem options PROCFS # Process filesystem (requires PSEUDOFS) options PSEUDOFS # Pseudo-filesystem framework options GEOM_PART_GPT # GUID Partition Tables. options GEOM_LABEL # Provides labelization options COMPAT_43TTY # BSD 4.3 TTY compat (sgtty) #options COMPAT_IA32 # Compatible with i386 binaries #options COMPAT_FREEBSD4 # Compatible with FreeBSD4 #options COMPAT_FREEBSD5 # Compatible with FreeBSD5 options COMPAT_FREEBSD6 # Compatible with FreeBSD6 options COMPAT_FREEBSD7 # Compatible with FreeBSD7 options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI #options KTRACE # ktrace(1) support #options STACK # stack(9) support options SYSVSHM # SYSV-style shared memory options SYSVMSG # SYSV-style message queues options SYSVSEM # SYSV-style semaphores options P1003_1B_SEMAPHORES # POSIX-style semaphores options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions options PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed. options KBD_INSTALL_CDEV # install a CDEV entry in /dev options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4) options AUDIT # Security event auditing options MAC # TrustedBSD MAC Framework options FLOWTABLE # per-cpu routing cache #options KDTRACE_FRAME # Ensure frames are compiled in #options KDTRACE_HOOKS # Kernel DTrace hooks # Make an SMP-capable kernel by default options SMP # Symmetric MultiProcessor Kernel .......
Jeremy Chadwick
2010-May-11 04:11 UTC
How to clear the 32-bit ldconfig error in 64-bit FreeBSD?
On Tue, May 11, 2010 at 11:11:34AM +0800, lhmwzy wrote:> like this: > > ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib > /usr/local/lib/compat > 32-bit compatibility ldconfig path: /usr/local/lib32/compat > .: Can't open %%RC_SUBR%%: No such file or directoryThis looks like a problem with a port or part of your system where some expandos (%%RC_SUBR%%) did not get expanded to /etc/rc.subr.> uname -a: > FreeBSD lanshuweb2 8.0-RELEASE FreeBSD 8.0-RELEASE #2: Tue May 11 > 10:04:28 UTC 2010 root@lanshuweb2:/usr/obj/usr/src/sys/mlh amd6Regarding 32-bit support on amd64, this is what you need: 1) Make sure /etc/src.conf does not contain WITHOUT_LIB32. This will inhibit FreeBSD's buildworld from building 32-bit binaries. By default FreeBSD *does* build 32-bit binaries on amd64. The only reason I'm pointing this out is that some administrators set WITHOUT_LIB32 in src.conf but then later need i386 compatibility and forget all about the option they set. 2) Your kernel configuration file needs "options COMPAT_IA32" in it. You have it commented out. Be aware that the name of this option has changed in RELENG_8 (not 8.0-RELEASE) from COMPAT_IA32 to COMPAT_FREEBSD32. So if you upgrade in the future, you may need to rename this option. You should view /sys/amd64/conf/GENERIC or /sys/amd64/conf/NOTES to see what other semantics may have changed since you made your kernel configuration file. I also advocate watching CVS commits for parts of the tree around there and reading what changes happen, especially if you follow -STABLE. Ex: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/amd64/conf/GENERIC http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/amd64/conf/NOTES -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |