Alexander Hansen wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 2/24/10 5:05 PM, Bob Lewis wrote:
>> Doing a "fink update-all" on my MacOS 10.6.2 machine, gcc complains that
>> a number of FC_* macros cannot be found when it tries to compile
>> "pango-xft2-ft219".  The macros include FC_WEIGHT_THIN,
>> FC_WEIGHT_ULTRALIGHT, FC_WEIGHT_BOOK, FC_WEIGHT_NORMAL, and
>> FC_WEIGHT_ULTRABOLD.  They seem to be missing
>> from
>>
>>     /sw/lib/fontconfig2/include/fontconfig/fontconfig.h
>>
>> There are lots of other FC_* macros there, just not these four.  This
>> suggests a version sync problem between pango1-xft2-ft219 and
>> fontconfig2-dev.  These macros appear to be present in the
>> fontconfig1-dev package, but I can find no way to install that or
>> configure pango to use it.
>>
>> The fontconfig2-dev version fink installs is 2.4.1-208.  apt-get is
>> happy with that being the latest version.  The pango1-xft2-ft219 version
>> fink would install is (see above) 1.24.5-3.  The pango1-xft2-ft219
>> version apt-get at first said it would install is 1.22.4-2, but after an
>> "apt-get update" it now says that there is no available version.
>>
> 
> Apt-get isn't really that useful on 10.6 other than to view your locally
> built packages in the absence of a binary distribution.  You're better
> off using "fink list -o" to check for updates.
> 
>> See pango1-xft2-ft219_build.log (attached) for the ugly details.
>>
>>     - Bob Lewis
>>
>>
> 
> In the future, don't attach text files.  I now have to paste relevant
> context back from your message so that the thread is actually useful to
> others who may be experiencing the same problem.

Okay.  Sorry.

Thanks for the quick response.

> The last compiler line is:
> 
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"Pango\"
> - -DPANGO_ENABLE_BACKEND -DPANGO_ENABLE_ENGINE
> - -DSYSCONFDIR=\"/sw/lib/pango-ft219/etc\"
> - -DLIBDIR=\"/sw/lib/pango-ft219/lib\" -I.. -DG_DISABLE_CAST_CHECKS
> - -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include
> - -I/sw/include/freetype2 -I/sw/include -I/sw/lib/fontconfig2/include
> - -I/sw/lib/fontconfig2/include -I/sw/include/cairo -I/sw/include/pixman-1
> - -I/sw/include/freetype2 -I/sw/include -I/sw/include/libpng12
> - -I/usr/X11R6/include -I/usr/X11/include -I/sw/lib/fontconfig2/include
> - -I/sw/lib/xft2/include -I/sw/lib/freetype219/include/freetype2
> - -I/sw/lib/freetype219/include -I/usr/X11R6/include -I/usr/X11/include
> - -I/usr/X11R6/include -I/sw/lib/fontconfig2/include -I/sw/include -Os
> - -Wall -c pangofc-fontmap.c  -fno-common -DPIC -o .libs/pangofc-fontmap.o
> pangofc-fontmap.c: In function 'pango_fc_convert_weight_to_fc':
> pangofc-fontmap.c:1346: error: 'FC_WEIGHT_THIN' undeclared (first use in
> this function)
> 
> /sw/lib/fontconfig2/include/fontconfig/fontconfig.h is actually supposed
> to be the same as /usr/X11/include/fontconfig/fontconfig.h on 10.5 and 10.6:

They are the same.  The odd thing is that after "sudo fink rebuild 
fontconfig2-dev" (output below), not only are they the same (and 
neither is a symlink), but their date stamps are very old:

$ ls -l /usr/X11/include/fontconfig/fontconfig.h 
/sw/lib/fontconfig2/include/fong/fontconfig.h
-r--r--r--  1 root  wheel  16986 Mar 23  2007 
/sw/lib/fontconfig2/include/fontconfig/fontconfig.h
-r--r--r--  1 root  wheel  16986 Mar 23  2007 
/usr/X11/include/fontconfig/fontconfig.h

>  ls -l /usr/X11/include/fontconfig/fontconfig.h
> /sw/lib/fontconfig2/include/fontconfig/fontconfig.h
> - -rw-r--r-- 1 root wheel 23426 2009-08-12 03:53
> /sw/lib/fontconfig2/include/fontconfig/fontconfig.h
> - -rw-r--r-- 1 root wheel 23426 2009-08-12 03:53
> /usr/X11/include/fontconfig/fontconfig.h
> 
> Do yours look the same? (as each other--I wouldn't expect them to be the
> same as mine because the output is from 10.5) If not, try doing a "fink
> rebuild fontconfig2-dev" and see if that puts them back in sync.

Done.  (See below.)

> On my 10.6 setup those macros are indeed defined in
> /usr/X11/include/fontconfig/fontconfig.h; you might check that, too.

The files are in sync, but still incompatible with pango.

Oddly, it appears that the rebuild did not replace fontconfig.h in 
either location.  The only mention of fontconfig.h in the log is a 
check to see that it's under /usr/X11.  The smaller, 3-year-old 
fontconfig.h's seem to be untouched, which seems to be the source of 
the problem.  Maybe I should delete them and see what happens?

Perhaps also interesting is this:

$ dpkg -S /sw/lib/fontconfig2/include/fontconfig/fontconfig.h
dpkg: /sw/lib/fontconfig2/include/fontconfig/fontconfig.h not found.

Shouldn't dpkg be able to associate this fontconfig.h with 
fontconfig2-dev?  (But perhaps I'm not understanding fink here.)

        - Bob L.

--------------------(fontconfig2 rebuild log)------------------------
Script started on Wed Feb 24 19:10:32 2010
$ sudo fink rebuild fontconfig2-dev
Password:
Information about 8726 packages read in 5 seconds.

WARNING: The package fontconfig2-dev Depends on system-xfree86-dev,
         but system-xfree86-dev only allows things to BuildDepend on it.

The following package will be rebuilt:
  fontconfig2-dev
Setting runtime build-lock...
dpkg-deb -b 
/sw/src/fink.build/root-fink-buildlock-fontconfig2-dev-2.4.1-208 
/sw/src/fink.build
dpkg-deb: building package `fink-buildlock-fontconfig2-dev-2.4.1-208' 
in 
`/sw/src/fink.build/fink-buildlock-fontconfig2-dev-2.4.1-208_2010.02.24-19.11.02_darwin-i386.deb'.
Installing build-lock package...
/sw/bin/dpkg-lockwait -i 
/sw/src/fink.build/fink-buildlock-fontconfig2-dev-2.4.1-208_2010.02.24-19.11.02_darwin-i386.deb
Selecting previously deselected package 
fink-buildlock-fontconfig2-dev-2.4.1-208.
(Reading database ... 116851 files and directories currently installed.)
Unpacking fink-buildlock-fontconfig2-dev-2.4.1-208 (from 
.../fink-buildlock-fontconfig2-dev-2.4.1-208_2010.02.24-19.11.02_darwin-i386.deb)
 
...
Setting up fink-buildlock-fontconfig2-dev-2.4.1-208 
(2010.02.24-19.11.02) ...
Cleaning up .la files being installed

cp /sw/src/make-crappy-la-files-if-necessary-thanks-apple-really.sh .
echo "no compilation necessary"
no compilation necessary
/bin/rm -rf /sw/src/fink.build/root-fontconfig2-dev-2.4.1-208
/bin/mkdir -p /sw/src/fink.build/root-fontconfig2-dev-2.4.1-208/sw
/bin/mkdir -p /sw/src/fink.build/root-fontconfig2-dev-2.4.1-208/DEBIAN
/usr/sbin/chown -R root:admin 
/sw/src/fink.build/root-fontconfig2-dev-2.4.1-208
/var/tmp/tmp.1.dxL3RW
#!/bin/sh -ev

        install -d -m 755 
/sw/src/fink.build/root-fontconfig2-dev-2.4.1-208/sw/sbin
        install -c -m 755 
make-crappy-la-files-if-necessary-thanks-apple-really.sh 
/sw/src/fink.build/root-fontconfig2-dev-2.4.1-208/sw/sbin/

        
FC_ROOT="/sw/src/fink.build/root-fontconfig2-dev-2.4.1-208/sw/lib/fontconfig2"
        FC_LIB="/sw/lib/fontconfig2/lib"
        FT_LIB="/sw/lib/freetype219/lib"
        X11_ROOT="/usr/X11"

        declare -a bad_files

        bad_file() {
                bad_files[${#bad_files[*]}]="$1"
        }

        install -d -m 755 $FC_ROOT/{bin,include,lib,lib/pkgconfig}

        for file in \
                fcfreetype.h \
                fcprivate.h \
                fontconfig.h \
        ; do
                [ -e "$X11_ROOT/include/fontconfig/$file" ] || bad_file 
"$X11_ROOT/include/fontconfig/$file"
        done

        for file in \
                include/fontconfig \
                lib/libfontconfig.1.dylib \
                lib/libfontconfig.dylib \
                bin/fc-cache \
                bin/fc-cat \
                bin/fc-list \
                bin/fc-match \
        ; do
                [ -e "$X11_ROOT/$file" ] || bad_file "$X11_ROOT/$file"
                /bin/ln -sfh "$X11_ROOT/$file" "$FC_ROOT/$file"
        done

        if [ ${#bad_files[*]} -gt 0 ]; then
                echo ""
                echo ""
                echo ""
                echo "=== ERROR === ERROR === ERROR === ERROR === ERROR === 
ERROR 
=== ERROR ==="
                echo ""
                echo "Your X11 installation appears to be missing one or more 
required files:"
                for file in "${bad_fil...@]}"; do
                        echo "    $file"
                done
                echo ""
                echo "You may need to reinstall the X11User or X11SDK packages 
from 
your"
                echo "Leopard install media."
                echo ""
                echo "=== ERROR === ERROR === ERROR === ERROR === ERROR === 
ERROR 
=== ERROR ==="
                echo ""
                echo ""
                echo ""
                exit 1
        fi
/bin/rm -f 
/sw/src/fink.build/root-fontconfig2-dev-2.4.1-208/sw/info/dir 
/sw/src/fink.build/root-fontconfig2-dev-2.4.1-208/sw/info/dir.old 
/sw/src/fink.build/root-fontconfig2-dev-2.4.1-208/sw/share/info/dir 
/sw/src/fink.build/root-fontconfig2-dev-2.4.1-208/sw/share/info/dir.old
/bin/rm -rf /sw/src/fink.build/root-fontconfig2-shlibs-2.4.1-208
/bin/mkdir -p /sw/src/fink.build/root-fontconfig2-shlibs-2.4.1-208/sw
/bin/mkdir -p /sw/src/fink.build/root-fontconfig2-shlibs-2.4.1-208/DEBIAN
/usr/sbin/chown -R root:admin 
/sw/src/fink.build/root-fontconfig2-shlibs-2.4.1-208
/usr/bin/install -d -m 755 
/sw/src/fink.build/root-fontconfig2-shlibs-2.4.1-208/sw/lib/fontconfig2
/bin/mv 
/sw/src/fink.build/root-fontconfig2-dev-2.4.1-208/sw/lib/fontconfig2/bin 
/sw/src/fink.build/root-fontconfig2-shlibs-2.4.1-208/sw/lib/fontconfig2/
/usr/bin/install -d -m 755 
/sw/src/fink.build/root-fontconfig2-shlibs-2.4.1-208/sw/lib/fontconfig2/lib
/bin/mv 
/sw/src/fink.build/root-fontconfig2-dev-2.4.1-208/sw/lib/fontconfig2/lib/libfontconfig.1*dylib
 
/sw/src/fink.build/root-fontconfig2-shlibs-2.4.1-208/sw/lib/fontconfig2/lib/
/bin/rm -f 
/sw/src/fink.build/root-fontconfig2-shlibs-2.4.1-208/sw/info/dir 
/sw/src/fink.build/root-fontconfig2-shlibs-2.4.1-208/sw/info/dir.old 
/sw/src/fink.build/root-fontconfig2-shlibs-2.4.1-208/sw/share/info/dir 
/sw/src/fink.build/root-fontconfig2-shlibs-2.4.1-208/sw/share/info/dir.old
Writing control file...
Writing package script postinst...
Writing package script preinst...
dpkg-deb -b root-fontconfig2-dev-2.4.1-208 
/sw/fink/10.6/unstable/main/binary-darwin-i386/x11
dpkg-deb: building package `fontconfig2-dev' in 
`/sw/fink/10.6/unstable/main/binary-darwin-i386/x11/fontconfig2-dev_2.4.1-208_darwin-i386.deb'.
Writing control file...
Writing package script postinst...
Writing package script preinst...
dpkg-deb -b root-fontconfig2-shlibs-2.4.1-208 
/sw/fink/10.6/unstable/main/binary-darwin-i386/x11
dpkg-deb: building package `fontconfig2-shlibs' in 
`/sw/fink/10.6/unstable/main/binary-darwin-i386/x11/fontconfig2-shlibs_2.4.1-208_darwin-i386.deb'.
Removing runtime build-lock...
Removing build-lock package...
/sw/bin/dpkg-lockwait -r fink-buildlock-fontconfig2-dev-2.4.1-208
(Reading database ... 116852 files and directories currently installed.)
Removing fink-buildlock-fontconfig2-dev-2.4.1-208 ...
Reading buildlock packages...
        All buildlocks accounted for.
/sw/bin/dpkg-lockwait -i 
/sw/fink/dists/unstable/main/binary-darwin-i386/x11/fontconfig2-dev_2.4.1-208_darwin-i386.deb
 
/sw/fink/dists/unstable/main/binary-darwin-i386/x11/fontconfig2-shlibs_2.4.1-208_darwin-i386.deb
(Reading database ... 116851 files and directories currently installed.)
Preparing to replace fontconfig2-dev 2.4.1-208 (using 
.../fontconfig2-dev_2.4.1-208_darwin-i386.deb) ...
Unpacking replacement fontconfig2-dev ...
Selecting previously deselected package fontconfig2-shlibs.
Preparing to replace fontconfig2-shlibs 2.4.1-208 (using 
.../fontconfig2-shlibs_2.4.1-208_darwin-i386.deb) ...
Unpacking replacement fontconfig2-shlibs ...
Setting up fontconfig2-shlibs (2.4.1-208) ...
Cleaning up .la files being installed

Setting up fontconfig2-dev (2.4.1-208) ...
Cleaning up .la files being installed
WARNING: /usr/X11/lib/libfreetype.la does not exist, skipping.

Updating the list of locally available binary packages.
Scanning dists/unstable/main/binary-darwin-i386
Changed package: 
dists/unstable/main/binary-darwin-i386/x11/fontconfig2-dev_2.4.1-208_darwin-i386.deb
Changed package: 
dists/unstable/main/binary-darwin-i386/x11/fontconfig2-shlibs_2.4.1-208_darwin-i386.deb
$ exit
exit

Script done on Wed Feb 24 19:13:19 2010


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to