Created attachment 296433 [details, diff] libdl patch emerge pstoedit on Gentoo/FreeBSD failed with the following error /bin/bash ../libtool --tag=CXX --mode=link i686-gentoo-freebsd8.2-g++ -O2 -pipe -march=prescott --param l1-cache-size=16 --param l1-cache-line-size=64 -mtune=prescott -DINTERNALBOOL -no-undefined -o libpstoedit.la -rpath /u sr/lib dynload.lo callgs.lo lexyy.lo miscutil.lo cbstream.lo psimage.lo drvbase.lo base64writer.lo poptions.lo subpath.lo pstoedit.lo -lstdc++ -ldl -lm -lgd libtool: link: i686-gentoo-freebsd8.2-g++ -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/i686-gentoo-freebsd8.2/4.5.2/../../../crti.o /usr/lib/gcc/i686-gentoo-freebsd8.2/4.5.2/crtbeginS.o .libs/dynload.o .libs/callgs.o .libs/lexy y.o .libs/miscutil.o .libs/cbstream.o .libs/psimage.o .libs/drvbase.o .libs/base64writer.o .libs/poptions.o .libs/subpath.o .libs/pstoedit.o -ldl -lgd -L/usr/lib/gcc/i686-gentoo-freebsd8.2/4.5.2 -L/usr/lib/gcc/i686-gentoo-fre ebsd8.2/4.5.2/../../../../i686-gentoo-freebsd8.2/lib -L/usr/lib/gcc/i686-gentoo-freebsd8.2/4.5.2/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i686-gentoo-freebsd8.2/4.5.2/crtendS.o /usr/lib/gcc/i686-gentoo-freebsd8.2/4.5.2/.. /../../crtn.o -O2 -march=prescott -mtune=prescott -Wl,-soname -Wl,libpstoedit.so.0 -o .libs/libpstoedit.so.0.0.0 /usr/lib/gcc/i686-gentoo-freebsd8.2/4.5.2/../../../../i686-gentoo-freebsd8.2/bin/ld: cannot find -ldl collect2: ld returned 1 exit status gmake[2]: *** [libpstoedit.la] Error 1 gmake[2]: Leaving directory `/usr/tmp/portage/media-gfx/pstoedit-3.60/work/pstoedit-3.60/src' gmake[1]: *** [all] Error 2 gmake[1]: Leaving directory `/usr/tmp/portage/media-gfx/pstoedit-3.60/work/pstoedit-3.60/src' gmake: *** [all-recursive] Error 1 This is common mistake to try to link wiht libdl which is not available on FreeBSD. dlopen's are defined in libc on FreeBSD, so we don't need libdl. printing team, I'll apply the attached patch and send it to upstream if you don't see any problem. Thanks,
Looks good, please do...
Is already fixed in pstoedit-3.60, you should be able to add your keywords there (and it already has amd64-freebsd).