The following message is displayed and fails to compile. x86_64-gentoo-freebsd9.0-gcc -m32 -DCOMPAT_32BIT -B/usr/lib32 -L/usr/lib32 -fpic -DPIC -O2 -pipe -ggdb -fno-strict-aliasing -fno-strict-overflow -isystem /usr/include -I/var/tmp/portage/sys-freebsd/freebsd-lib-9.2_rc1/work/lib/libcam -I/var/tmp/portage/sys-freebsd/freebsd-lib-9.2_rc1/work/lib/libcam/../../sys -std=gnu99 -fstack-protector -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c /var/tmp/portage/sys-freebsd/freebsd-lib-9.2_rc1/work/lib/libcam/../../sys/cam/scsi/smp_all.c -o smp_all.So building static cam library ranlib libcam.a building shared library libcam.so.6 /usr/lib/gcc/x86_64-gentoo-freebsd9.0/4.6.4/../../../../x86_64-gentoo-freebsd9.0/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-gentoo-freebsd9.0/4.6.4/../../../libsbuf.so when searching for -lsbuf /usr/lib/gcc/x86_64-gentoo-freebsd9.0/4.6.4/../../../../x86_64-gentoo-freebsd9.0/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-gentoo-freebsd9.0/4.6.4/../../../libsbuf.a when searching for -lsbuf /usr/lib/gcc/x86_64-gentoo-freebsd9.0/4.6.4/../../../../x86_64-gentoo-freebsd9.0/bin/ld: skipping incompatible /usr/lib/libsbuf.so when searching for -lsbuf /usr/lib/gcc/x86_64-gentoo-freebsd9.0/4.6.4/../../../../x86_64-gentoo-freebsd9.0/bin/ld: skipping incompatible /usr/lib/libsbuf.a when searching for -lsbuf /usr/lib/gcc/x86_64-gentoo-freebsd9.0/4.6.4/../../../../x86_64-gentoo-freebsd9.0/bin/ld: cannot find -lsbuf collect2: ld returned 1 exit status *** [libcam.so.6] Error code 1
Created attachment 355766 [details, diff] sample patch for files/freebsd-lib-9.2-liblink.patch
applied, thanks