pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/48742: Building fontconfig fails with undefined reference to FcDirCacheRescan



The following reply was made to PR pkg/48742; it has been noted by GNATS.

From: "Ian D. Leroux" <idleroux%fastmail.fm@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: David Holland <dholland-pbugs%netbsd.org@localhost>, pkg-manager%netbsd.org@localhost,
 gnats-admin%netbsd.org@localhost, pkgsrc-bugs%netbsd.org@localhost
Subject: Re: pkg/48742: Building fontconfig fails with undefined reference
 to FcDirCacheRescan
Date: Fri, 2 Jan 2015 23:46:17 +0100

 Thank you for the thoughtful explanation.
 
 On Sat, 27 Dec 2014 01:50:01 +0000 (UTC) David Holland
 <dholland-pbugs%netbsd.org@localhost> wrote:
 >  Check work/.work.log to see what it's actually doing when trying to
 >  link fc-cache. This is from mine just now:
 >  
 >    [*] /usr/pkgsrc/fonts/fontconfig/work/.wrapper/bin/libtool
 >      /usr/pkgsrc/fonts/fontconfig/work/.wrapper/bin/libtool --silent
 >      --tag=CC --mode=link gcc -O2 -I/usr/pkg/include -I/usr/include
 >      -I/usr/X11R7/include/freetype2 -L/usr/pkg/lib -L/usr/lib
 >      -Wl,-R/usr/lib -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib
 >      -Wl,-R/usr/pkg/lib -o fc-cache fc-cache.o ../src/libfontconfig.la
 >    <.> /usr/pkg/bin/libtool --silent --tag=CC --mode=link gcc -O2
 >      -I/usr/pkgsrc/fonts/fontconfig/work/.buildlink/include
 >      -I/usr/pkgsrc/fonts/fontconfig/work/.x11-buildlink/include/freetype2
 >      -L/usr/pkgsrc/fonts/fontconfig/work/.buildlink/lib
 >      -L/usr/pkgsrc/fonts/fontconfig/work/.x11-buildlink/lib
 >      -Wl,-R/usr/X11R7/lib -Wl,-R/usr/pkg/lib -o fc-cache fc-cache.o
 >      ../src/libfontconfig.la 
 
 And this is from my latest test, with newlines manually added for legibility:
 
 [*] /pkg_comp/obj/pkgsrc/fonts/fontconfig/default/.wrapper/bin/libtool
 /pkg_comp/obj/pkgsrc/fonts/fontconfig/default/.wrapper/bin/libtool --silent
 --tag=CC --mode=link gcc -O2 -I/usr/pkg/include -I/usr/include
 -I/usr/X11R7/include/freetype2 -L/usr/pkg/lib -L/usr/lib
 -Wl,-R/usr/lib -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib
 -Wl,-R/usr/pkg/lib -o fc-cache fc-cache.o ../src/libfontconfig.la
 <.> /usr/pkg/bin/libtool --silent --tag=CC --mode=link gcc -O2
 -I/pkg_comp/obj/pkgsrc/fonts/fontconfig/default/.buildlink/include
 -I/pkg_comp/obj/pkgsrc/fonts/fontconfig/default/.x11-buildlink/include/freetype2
 -L/pkg_comp/obj/pkgsrc/fonts/fontconfig/default/.buildlink/lib
 -L/pkg_comp/obj/pkgsrc/fonts/fontconfig/default/.x11-buildlink/lib
 -Wl,-R/usr/X11R7/lib -Wl,-R/usr/pkg/lib -o fc-cache fc-cache.o
 ../src/libfontconfig.la 
 
 As far as I can see, the only differences are in path prefixes due to
 the use of a separate obj/ directory in pkg_comp.  Inside the chroot,
 x11-links and libtool-base were built Dec. 23rd from a pkgsrc checkout
 a day or two prior.  The base system in the chroot is amd64-current as
 of late February.
 
 I also tried building fontconfig directly in the underlying system
 (NetBSD/amd64 7.99.2), without using pkg_comp.  I still get an
 undefined reference to FcDirCacheRescan.  The relevant lines
 in .work.log look like:
 
 [*] /build/pkgsrc/fonts/fontconfig/work/.wrapper/bin/libtool
 /build/pkgsrc/fonts/fontconfig/work/.wrapper/bin/libtool --silent
 --tag=CC --mode=link gcc -O2 -I/usr/pkg/include -I/usr/include
 -I/usr/X11R7/include/freetype2 -L/usr/pkg/lib -L/usr/lib
 -Wl,-R/usr/lib -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib
 -Wl,-R/usr/pkg/lib -o fc-cache fc-cache.o ../src/libfontconfig.la
 <.> /usr/pkg/bin/libtool --silent --tag=CC --mode=link gcc -O2
 -I/build/pkgsrc/fonts/fontconfig/work/.buildlink/include
 -I/build/pkgsrc/fonts/fontconfig/work/.x11-buildlink/include/freetype2
 -L/build/pkgsrc/fonts/fontconfig/work/.buildlink/lib
 -L/build/pkgsrc/fonts/fontconfig/work/.x11-buildlink/lib
 -Wl,-R/usr/X11R7/lib -Wl,-R/usr/pkg/lib -o fc-cache
 fc-cache.o ../src/libfontconfig.la
 
 Which still looks equivalent to yours.
 
 I tried running
 
 nm * |grep FcDirCacheRescan
 
 in work/.x11-buildlink/lib , work/.buildlink/lib and /usr/X11R7/lib
 without finding anything.  work/fontconfig-2.11.1/fc-cache/fc-cache.o
 does contain FcDirCacheRescan (again checked using nm). I'm puzzled that
 libtool can't link against that definition, but I'm not familiar with
 it.
 
 It may be worth waiting until I can update my base system (both the
 real one and the sets used to set up the chroot for pkgcomp), since all
 my failed tests have that in common.
 
 --
 IDL
 


Home | Main Index | Thread Index | Old Index