Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 395347 - Keyword ~x86-fbsd media-gfx/pstoedit: link failed because of missing libdl
Summary: Keyword ~x86-fbsd media-gfx/pstoedit: link failed because of missing libdl
Status: RESOLVED FIXED
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: 317619
  Show dependency tree
 
Reported: 2011-12-20 10:35 UTC by Naohiro Aota
Modified: 2012-05-26 18:44 UTC (History)
1 user (show)

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


Attachments
libdl patch (pstoedit-3.60-libdl.patch,428 bytes, patch)
2011-12-20 10:35 UTC, Naohiro Aota
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Naohiro Aota gentoo-dev 2011-12-20 10:35:58 UTC
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,
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2012-02-19 22:48:52 UTC
Looks good, please do...
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2012-05-26 18:44:07 UTC
Is already fixed in pstoedit-3.60, you should be able to add your keywords there (and it already has amd64-freebsd).