unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#1358: error when compiling ftfont.c from CVS
@ 2008-11-16 23:19 ` Joe Corneli
  2008-11-17 23:56   ` Glenn Morris
  2008-11-20 23:25   ` bug#1358: marked as done (error when compiling ftfont.c from CVS) Emacs bug Tracking System
  0 siblings, 2 replies; 11+ messages in thread
From: Joe Corneli @ 2008-11-16 23:19 UTC (permalink / raw)
  To: emacs-pretest-bug

I'm using Mac OS X 10.4.11 on a macbook pro.

I had no problems installing GNU Emacs 22.0.50.1
(i686-apple-darwin8.11.1, GTK+ Version 2.6.10)
via fink.

When I passed the same configuration options to the current CVS
version of Emacs, I got the following error
when I ran 'make bootstrap':

gcc -I/sw/include -L/sw/lib -c  -Demacs -DHAVE_CONFIG_H  -I.
-I/Users/planetmath/emacs/src -I/usr/X11R6/include
-I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -Dtemacs    -g -O2
-Wno-pointer-sign  md5.c
gcc -I/sw/include -L/sw/lib -c  -Demacs -DHAVE_CONFIG_H  -I.
-I/Users/planetmath/emacs/src -I/usr/X11R6/include
-I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -Dtemacs    -g -O2
-Wno-pointer-sign  xfont.c
gcc -I/sw/include -L/sw/lib -c  -Demacs -DHAVE_CONFIG_H  -I.
-I/Users/planetmath/emacs/src -I/usr/X11R6/include
-I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -Dtemacs    -g -O2
-Wno-pointer-sign  ftfont.c
ftfont.c: In function 'ftfont_pattern_entity':
ftfont.c:164: error: 'FC_WEIGHT_REGULAR' undeclared (first use in this function)
ftfont.c:164: error: (Each undeclared identifier is reported only once
ftfont.c:164: error: for each function it appears in.)
ftfont.c:173: error: 'FC_WIDTH' undeclared (first use in this function)
ftfont.c: In function 'ftfont_list':
ftfont.c:792: error: 'FC_WIDTH' undeclared (first use in this function)
make[2]: *** [ftfont.o] Error 1
make[1]: *** [src] Error 2
make: *** [bootstrap] Error






^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#1358: error when compiling ftfont.c from CVS
  2008-11-16 23:19 ` bug#1358: error when compiling ftfont.c from CVS Joe Corneli
@ 2008-11-17 23:56   ` Glenn Morris
  2008-11-18  1:12     ` Joe Corneli
  2008-11-20 23:25   ` bug#1358: marked as done (error when compiling ftfont.c from CVS) Emacs bug Tracking System
  1 sibling, 1 reply; 11+ messages in thread
From: Glenn Morris @ 2008-11-17 23:56 UTC (permalink / raw)
  To: Joe Corneli; +Cc: 1358

"Joe Corneli" wrote:

> When I passed the same configuration options to the current CVS
> version of Emacs,

Can you share what these configuration options were?

> ftfont.c:164: error: 'FC_WEIGHT_REGULAR' undeclared (first use in this function)

What version of fontconfig do you have installed?

What does `pkg-config --modversion fontconfig' report?

What does the configure script output say about fontconfig?






^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#1358: error when compiling ftfont.c from CVS
  2008-11-17 23:56   ` Glenn Morris
@ 2008-11-18  1:12     ` Joe Corneli
  2008-11-18  1:24       ` Glenn Morris
  0 siblings, 1 reply; 11+ messages in thread
From: Joe Corneli @ 2008-11-18  1:12 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 1358

On Mon, Nov 17, 2008 at 5:56 PM, Glenn Morris <rgm@gnu.org> wrote:
> "Joe Corneli" wrote:
>
>> When I passed the same configuration options to the current CVS
>> version of Emacs,
>
> Can you share what these configuration options were?

Sure, here:

./configure --infodir='${prefix}/share/info'
--mandir='${prefix}/share/man' --libexecdir='${prefix}/lib'

>> ftfont.c:164: error: 'FC_WEIGHT_REGULAR' undeclared (first use in this function)
>
> What version of fontconfig do you have installed?

It looks like several versions are installed via fink:

% fink list fontconfig
Information about 7570 packages read in 1 seconds.
 i   fontconfig-conf  2.4.1-5      configuration files for fontconfig
     fontconfig-path  20050601-3   Add custom directories to fontconfig search
 p   fontconfig1                   [virtual package]
 p   fontconfig1-dev               [virtual package]
 p   fontconfig1-shl               [virtual package]
 i   fontconfig2-dev  2.4.1-5      Font configuration library
 i   fontconfig2-shl  2.4.1-5      Fontconfig 2, shared libs
 i   system-pkgconfi  2.1.0-1      [virtual pkgconfig package representing fo...

> What does `pkg-config --modversion fontconfig' report?

2.1.0

(Which suggests perhaps I should remove the system-pkgconfi package and
use the fontconfig2-shl?)

> What does the configure script output say about fontconfig?

Two lines:

checking GTK_LIBS... -L/sw/lib -L/usr/X11R6/lib -lgtk-x11-2.0
-lgdk-x11-2.0 -lXrandr -lXinerama -lXext -lXcursor -latk-1.0
-lgdk_pixbuf-2.0 -lpangoxft-1.0 -lXft -lXrender -lpangox-1.0 -lX11
-lpangoft2-1.0 -lfontconfig -lfreetype -lpango-1.0 -lm -lgobject-2.0
-lgmodule-2.0 -lglib-2.0 -lintl -liconv
checking XFT_LIBS... -L/usr/X11R6/lib -lXft -lfreetype -lXrender -lfontconfig






^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#1358: error when compiling ftfont.c from CVS
  2008-11-18  1:12     ` Joe Corneli
@ 2008-11-18  1:24       ` Glenn Morris
  2008-11-18  1:30         ` Processed: " Emacs bug Tracking System
  2008-11-18  2:02         ` Joe Corneli
  0 siblings, 2 replies; 11+ messages in thread
From: Glenn Morris @ 2008-11-18  1:24 UTC (permalink / raw)
  To: Joe Corneli; +Cc: 1358

reassign 1358 emacs
stop

"Joe Corneli" wrote:

> 2.1.0
>
> (Which suggests perhaps I should remove the system-pkgconfi package and
> use the fontconfig2-shl?)

Yes, perhaps. fontconfig 2.2.0 or newer should work.

>> What does the configure script output say about fontconfig?
>
> Two lines:
>
> checking GTK_LIBS... -L/sw/lib -L/usr/X11R6/lib -lgtk-x11-2.0
> -lgdk-x11-2.0 -lXrandr -lXinerama -lXext -lXcursor -latk-1.0
> -lgdk_pixbuf-2.0 -lpangoxft-1.0 -lXft -lXrender -lpangox-1.0 -lX11
> -lpangoft2-1.0 -lfontconfig -lfreetype -lpango-1.0 -lm -lgobject-2.0
> -lgmodule-2.0 -lglib-2.0 -lintl -liconv
> checking XFT_LIBS... -L/usr/X11R6/lib -lXft -lfreetype -lXrender -lfontconfig

You don't have a line of the form:

checking for fontconfig >= 2.2.0...

just above the XFT_LIBS part?

It should say "no" if pkg-config reports 2.1.0.






^ permalink raw reply	[flat|nested] 11+ messages in thread

* Processed: Re: bug#1358: error when compiling ftfont.c from CVS
  2008-11-18  1:24       ` Glenn Morris
@ 2008-11-18  1:30         ` Emacs bug Tracking System
  2008-11-18  2:02         ` Joe Corneli
  1 sibling, 0 replies; 11+ messages in thread
From: Emacs bug Tracking System @ 2008-11-18  1:30 UTC (permalink / raw)
  To: Glenn Morris; +Cc: Emacs Bugs, ns #1358

Processing commands for control@emacsbugs.donarmstrong.com:

> reassign 1358 emacs
bug#1358: error when compiling ftfont.c from CVS
Warning: Unknown package 'ns'
bug reassigned from package `emacs,ns' to `emacs'.

> stop
Stopping processing here.

Please contact me if you need assistance.

Don Armstrong
(administrator, Emacs bugs database)





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#1358: error when compiling ftfont.c from CVS
  2008-11-18  1:24       ` Glenn Morris
  2008-11-18  1:30         ` Processed: " Emacs bug Tracking System
@ 2008-11-18  2:02         ` Joe Corneli
  2008-11-18  2:11           ` Glenn Morris
  1 sibling, 1 reply; 11+ messages in thread
From: Joe Corneli @ 2008-11-18  2:02 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 1358

>> (Which suggests perhaps I should remove the system-pkgconfi package and
>> use the fontconfig2-shl?)
>
> Yes, perhaps. fontconfig 2.2.0 or newer should work.

I'll see what I can do with fink to change things around.

> checking for fontconfig >= 2.2.0...
>
> just above the XFT_LIBS part?
>
> It should say "no" if pkg-config reports 2.1.0.
>

No, there's no such line -- here's some context:

checking for xft >= 0.13.0... yes
checking XFT_CFLAGS... -I/usr/X11R6/include -I/usr/X11R6/include/freetype2
checking XFT_LIBS... -L/usr/X11R6/lib -lXft -lfreetype -lXrender -lfontconfig
checking X11/Xft/Xft.h usability... yes






^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#1358: error when compiling ftfont.c from CVS
  2008-11-18  2:02         ` Joe Corneli
@ 2008-11-18  2:11           ` Glenn Morris
  2008-11-18  2:13             ` Glenn Morris
  0 siblings, 1 reply; 11+ messages in thread
From: Glenn Morris @ 2008-11-18  2:11 UTC (permalink / raw)
  To: Joe Corneli; +Cc: 1358

"Joe Corneli" wrote:

> No, there's no such line -- here's some context:
>
> checking for xft >= 0.13.0... yes
> checking XFT_CFLAGS... -I/usr/X11R6/include -I/usr/X11R6/include/freetype2
> checking XFT_LIBS... -L/usr/X11R6/lib -lXft -lfreetype -lXrender -lfontconfig
> checking X11/Xft/Xft.h usability... yes

I think I see the problem. The configure script has not been
regenerated with some recent changes to the source configure.in.

If you have autoconf >= 2.6.1 installed, running `autoconf' in the
top-level Emacs directory ought to fix it (in the sense that you
should get a successful build without fontconfig). Or you can update
from the repository in a bit.

You still probably want to sort out your fontconfig installation to
get nicer looking fonts in your build.






^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#1358: error when compiling ftfont.c from CVS
  2008-11-18  2:11           ` Glenn Morris
@ 2008-11-18  2:13             ` Glenn Morris
  2008-11-20  3:04               ` Glenn Morris
  0 siblings, 1 reply; 11+ messages in thread
From: Glenn Morris @ 2008-11-18  2:13 UTC (permalink / raw)
  To: Joe Corneli, 1358


Glenn Morris wrote (on Mon, 17 Nov 2008 at 21:11 -0500):

> If you have autoconf >= 2.6.1 installed, running `autoconf' in the
                          ^^^^^
Sorry, 2.61.






^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#1358: error when compiling ftfont.c from CVS
  2008-11-18  2:13             ` Glenn Morris
@ 2008-11-20  3:04               ` Glenn Morris
  2008-11-20 23:12                 ` Joe Corneli
  0 siblings, 1 reply; 11+ messages in thread
From: Glenn Morris @ 2008-11-20  3:04 UTC (permalink / raw)
  To: 1358; +Cc: Joe Corneli


Does it work now, with an up-to-date copy of configure from CVS?






^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#1358: error when compiling ftfont.c from CVS
  2008-11-20  3:04               ` Glenn Morris
@ 2008-11-20 23:12                 ` Joe Corneli
  0 siblings, 0 replies; 11+ messages in thread
From: Joe Corneli @ 2008-11-20 23:12 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 1358

Note: I did get emacs to compile after running autoconf as you suggested.

Now I'm trying again in the same directory after 'cvs up' (I don't
know if having
previously run autoconf taints the experiment).

First piece of data:

I don't know how you guys are doing things these days, but this might
be a problem:

Merging differences between 1.303 and 1.304 into configure
rcsmerge: warning: conflicts during merge
cvs update: conflicts found in configure
...

./configure --infodir='${prefix}/share/info'
--mandir='${prefix}/share/man' --libexecdir='${prefix}/lib'
./configure: line 641: syntax error near unexpected token `<<<'
./configure: line 641: `<<<<<<< configure'

Second piece of data:

after removing ./configure, updating, and running ./configure again, I
do now get the line

checking for fontconfig >= 2.2.0... no

I assume that means it is going to work.... and yes, make bootstrap worked.

On Wed, Nov 19, 2008 at 9:04 PM, Glenn Morris <rgm@gnu.org> wrote:
>
> Does it work now, with an up-to-date copy of configure from CVS?
>






^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#1358: marked as done (error when compiling ftfont.c from CVS)
  2008-11-16 23:19 ` bug#1358: error when compiling ftfont.c from CVS Joe Corneli
  2008-11-17 23:56   ` Glenn Morris
@ 2008-11-20 23:25   ` Emacs bug Tracking System
  1 sibling, 0 replies; 11+ messages in thread
From: Emacs bug Tracking System @ 2008-11-20 23:25 UTC (permalink / raw)
  To: Glenn Morris

[-- Attachment #1: Type: text/plain, Size: 854 bytes --]


Your message dated Thu, 20 Nov 2008 18:19:36 -0500
with message-id <734p22kmt3.fsf@fencepost.gnu.org>
and subject line Re: bug#1358: error when compiling ftfont.c from CVS
has caused the Emacs bug report #1358,
regarding error when compiling ftfont.c from CVS
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact don@donarmstrong.com
immediately.)


-- 
1358: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=1358
Emacs Bug Tracking System
Contact don@donarmstrong.com with problems

[-- Attachment #2: Type: message/rfc822, Size: 4374 bytes --]

From: "Joe Corneli" <holtzermann17@gmail.com>
To: emacs-pretest-bug@gnu.org
Subject: error when compiling ftfont.c from CVS
Date: Sun, 16 Nov 2008 17:19:57 -0600
Message-ID: <a9670630811161519x6a0369b9r2922ff0484bf6270@mail.gmail.com>

I'm using Mac OS X 10.4.11 on a macbook pro.

I had no problems installing GNU Emacs 22.0.50.1
(i686-apple-darwin8.11.1, GTK+ Version 2.6.10)
via fink.

When I passed the same configuration options to the current CVS
version of Emacs, I got the following error
when I ran 'make bootstrap':

gcc -I/sw/include -L/sw/lib -c  -Demacs -DHAVE_CONFIG_H  -I.
-I/Users/planetmath/emacs/src -I/usr/X11R6/include
-I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -Dtemacs    -g -O2
-Wno-pointer-sign  md5.c
gcc -I/sw/include -L/sw/lib -c  -Demacs -DHAVE_CONFIG_H  -I.
-I/Users/planetmath/emacs/src -I/usr/X11R6/include
-I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -Dtemacs    -g -O2
-Wno-pointer-sign  xfont.c
gcc -I/sw/include -L/sw/lib -c  -Demacs -DHAVE_CONFIG_H  -I.
-I/Users/planetmath/emacs/src -I/usr/X11R6/include
-I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -Dtemacs    -g -O2
-Wno-pointer-sign  ftfont.c
ftfont.c: In function 'ftfont_pattern_entity':
ftfont.c:164: error: 'FC_WEIGHT_REGULAR' undeclared (first use in this function)
ftfont.c:164: error: (Each undeclared identifier is reported only once
ftfont.c:164: error: for each function it appears in.)
ftfont.c:173: error: 'FC_WIDTH' undeclared (first use in this function)
ftfont.c: In function 'ftfont_list':
ftfont.c:792: error: 'FC_WIDTH' undeclared (first use in this function)
make[2]: *** [ftfont.o] Error 1
make[1]: *** [src] Error 2
make: *** [bootstrap] Error



[-- Attachment #3: Type: message/rfc822, Size: 2341 bytes --]

From: Glenn Morris <rgm@gnu.org>
To: 1358-done@emacsbugs.donarmstrong.com
Subject: Re: bug#1358: error when compiling ftfont.c from CVS
Date: Thu, 20 Nov 2008 18:19:36 -0500
Message-ID: <734p22kmt3.fsf@fencepost.gnu.org>

"Joe Corneli" wrote:

> Merging differences between 1.303 and 1.304 into configure
> rcsmerge: warning: conflicts during merge
> cvs update: conflicts found in configure

Nothing to worry about, just do what you did:

> after removing ./configure, updating, and running ./configure again, I
> do now get the line
>
> checking for fontconfig >= 2.2.0... no
>
> I assume that means it is going to work.... and yes, make bootstrap worked.

Good. thanks for letting us know.


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-11-20 23:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <734p22kmt3.fsf@fencepost.gnu.org>
2008-11-16 23:19 ` bug#1358: error when compiling ftfont.c from CVS Joe Corneli
2008-11-17 23:56   ` Glenn Morris
2008-11-18  1:12     ` Joe Corneli
2008-11-18  1:24       ` Glenn Morris
2008-11-18  1:30         ` Processed: " Emacs bug Tracking System
2008-11-18  2:02         ` Joe Corneli
2008-11-18  2:11           ` Glenn Morris
2008-11-18  2:13             ` Glenn Morris
2008-11-20  3:04               ` Glenn Morris
2008-11-20 23:12                 ` Joe Corneli
2008-11-20 23:25   ` bug#1358: marked as done (error when compiling ftfont.c from CVS) Emacs bug Tracking System

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).