GNU bug report logs - #5921
/sw and /opt/local on OSX

Previous Next

Packages: ns, emacs;

Reported by: Markus Triska <markus.triska <at> gmx.at>

Date: Sat, 10 Apr 2010 08:11:02 UTC

Severity: normal

Merged with 2280, 5252, 6819

Found in version 24.0.50

Fixed in version 24.2

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5921 in the body.
You can then email your comments to 5921 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5921; Package emacs. (Sat, 10 Apr 2010 08:11:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Markus Triska <markus.triska <at> gmx.at>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 10 Apr 2010 08:11:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Markus Triska <markus.triska <at> gmx.at>
To: bug-gnu-emacs <at> gnu.org
Subject: 23.1; OSX: Emacs 23.1.95 pretest does not compile
Date: Sat, 10 Apr 2010 10:10:06 +0200
On OSX 10.4 with macports installed, I used:

    $./configure CFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib

and Emacs fails to compile with:

   xsettings.c: In function 'parse_xft_settings':
   xsettings.c:323: error: 'FC_HINT_NONE' undeclared (first use in this function)
   xsettings.c:323: error: (Each undeclared identifier is reported only once
   xsettings.c:323: error: for each function it appears in.)
   xsettings.c:325: error: 'FC_HINT_SLIGHT' undeclared (first use in this function)
   xsettings.c:327: error: 'FC_HINT_MEDIUM' undeclared (first use in this function)
   xsettings.c:329: error: 'FC_HINT_FULL' undeclared (first use in this function)
   xsettings.c: In function 'apply_xft_settings':
   xsettings.c:424: error: 'FC_HINT_STYLE' undeclared (first use in this function)

apparently because (old) /usr/X11R6/include include files are still
picked up with priority by the eventually used flags:

   gcc -I/sw/include -L/sw/lib -c -Demacs -DHAVE_CONFIG_H -I.
   -I/Users/mt/emacs-23.1.95/src -I/usr/X11R6/include
   -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include
   -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo
   -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0
   -I/opt/local/lib/glib-2.0/include -I/opt/local/include
   -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2
   -I/opt/local/include/libpng12 -I/opt/local/include
   -I/opt/local/include/freetype2 -Dtemacs -I/opt/local/include/librsvg-2
   -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
   -I/opt/local/include -I/opt/local/include/gtk-2.0
   -I/opt/local/include/cairo -I/opt/local/include/pixman-1
   -I/opt/local/include/freetype2 -I/opt/local/include/libpng12
   -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include
   -DORBIT2=1 -D_REENTRANT -I/opt/local/include/gconf/2
   -I/opt/local/include/orbit-2.0 -I/opt/local/include/dbus-1.0
   -I/opt/local/lib/dbus-1.0/include -I/opt/local/include/glib-2.0
   -I/opt/local/lib/glib-2.0/include -I/opt/local/include
   -I/opt/local/include -MMD -MF deps/xsettings.d xsettings.c

When I reorder ALL_CFLAGS in src/Makefile to place
-I/usr/X11R6/include at the end, Emacs compiles.





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5921; Package emacs. (Sat, 10 Apr 2010 13:07:01 GMT) Full text and rfc822 format available.

Message #8 received at 5921 <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Markus Triska <markus.triska <at> gmx.at>
Cc: 5921 <at> debbugs.gnu.org
Subject: Re: bug#5921: 23.1; OSX: Emacs 23.1.95 pretest does not compile
Date: Sat, 10 Apr 2010 15:06:52 +0200
Can you send the config.log file?

	Jan D.

Markus Triska skrev:
> On OSX 10.4 with macports installed, I used:
> 
>     $./configure CFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib
> 
> and Emacs fails to compile with:
> 
>    xsettings.c: In function 'parse_xft_settings':
>    xsettings.c:323: error: 'FC_HINT_NONE' undeclared (first use in this function)
>    xsettings.c:323: error: (Each undeclared identifier is reported only once
>    xsettings.c:323: error: for each function it appears in.)
>    xsettings.c:325: error: 'FC_HINT_SLIGHT' undeclared (first use in this function)
>    xsettings.c:327: error: 'FC_HINT_MEDIUM' undeclared (first use in this function)
>    xsettings.c:329: error: 'FC_HINT_FULL' undeclared (first use in this function)
>    xsettings.c: In function 'apply_xft_settings':
>    xsettings.c:424: error: 'FC_HINT_STYLE' undeclared (first use in this function)
> 
> apparently because (old) /usr/X11R6/include include files are still
> picked up with priority by the eventually used flags:
> 
>    gcc -I/sw/include -L/sw/lib -c -Demacs -DHAVE_CONFIG_H -I.
>    -I/Users/mt/emacs-23.1.95/src -I/usr/X11R6/include
>    -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include
>    -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo
>    -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0
>    -I/opt/local/lib/glib-2.0/include -I/opt/local/include
>    -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2
>    -I/opt/local/include/libpng12 -I/opt/local/include
>    -I/opt/local/include/freetype2 -Dtemacs -I/opt/local/include/librsvg-2
>    -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
>    -I/opt/local/include -I/opt/local/include/gtk-2.0
>    -I/opt/local/include/cairo -I/opt/local/include/pixman-1
>    -I/opt/local/include/freetype2 -I/opt/local/include/libpng12
>    -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include
>    -DORBIT2=1 -D_REENTRANT -I/opt/local/include/gconf/2
>    -I/opt/local/include/orbit-2.0 -I/opt/local/include/dbus-1.0
>    -I/opt/local/lib/dbus-1.0/include -I/opt/local/include/glib-2.0
>    -I/opt/local/lib/glib-2.0/include -I/opt/local/include
>    -I/opt/local/include -MMD -MF deps/xsettings.d xsettings.c
> 
> When I reorder ALL_CFLAGS in src/Makefile to place
> -I/usr/X11R6/include at the end, Emacs compiles.
> 
> 
> 
> 





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5921; Package emacs. (Sat, 10 Apr 2010 16:17:02 GMT) Full text and rfc822 format available.

Message #11 received at 5921 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Markus Triska <markus.triska <at> gmx.at>
Cc: 5921 <at> debbugs.gnu.org
Subject: Re: 23.1; OSX: Emacs 23.1.95 pretest does not compile
Date: Sat, 10 Apr 2010 12:15:55 -0400
> (old) /usr/X11R6/include include files are still picked up with
> priority by the eventually used flags

Does this patch DTRT?

=== modified file 'src/Makefile.in'
*** src/Makefile.in	2010-04-01 23:08:14 +0000
--- src/Makefile.in	2010-04-10 16:11:26 +0000
***************
*** 269,275 ****
  
  /* C_SWITCH_X_SITE must come before C_SWITCH_X_MACHINE and C_SWITCH_X_SYSTEM
     since it may have -I options that should override those two.  */
! ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(MYCPPFLAGS) -I. -I${srcdir} C_SWITCH_MACHINE C_SWITCH_SYSTEM C_SWITCH_X_SITE C_SWITCH_X_MACHINE C_SWITCH_X_SYSTEM C_SWITCH_SYSTEM_TEMACS ${CFLAGS_SOUND} ${RSVG_CFLAGS} ${DBUS_CFLAGS} ${GCONF_CFLAGS} ${CFLAGS} @FREETYPE_CFLAGS@ @FONTCONFIG_CFLAGS@ @LIBOTF_CFLAGS@ @M17N_FLT_CFLAGS@ ${DEPFLAGS}
  ALL_OBJC_CFLAGS=$(ALL_CFLAGS) @GNU_OBJC_CFLAGS@
  
  .SUFFIXES: .m
--- 269,275 ----
  
  /* C_SWITCH_X_SITE must come before C_SWITCH_X_MACHINE and C_SWITCH_X_SYSTEM
     since it may have -I options that should override those two.  */
! ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(MYCPPFLAGS) -I. -I${srcdir} C_SWITCH_MACHINE C_SWITCH_SYSTEM C_SWITCH_SYSTEM_TEMACS ${CFLAGS_SOUND} ${RSVG_CFLAGS} ${DBUS_CFLAGS} ${GCONF_CFLAGS} ${CFLAGS} C_SWITCH_X_SITE C_SWITCH_X_MACHINE C_SWITCH_X_SYSTEM @FREETYPE_CFLAGS@ @FONTCONFIG_CFLAGS@ @LIBOTF_CFLAGS@ @M17N_FLT_CFLAGS@ ${DEPFLAGS}
  ALL_OBJC_CFLAGS=$(ALL_CFLAGS) @GNU_OBJC_CFLAGS@
  
  .SUFFIXES: .m





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5921; Package emacs. (Sat, 10 Apr 2010 21:29:02 GMT) Full text and rfc822 format available.

Message #14 received at 5921 <at> debbugs.gnu.org (full text, mbox):

From: Markus Triska <markus.triska <at> gmx.at>
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: 5921 <at> debbugs.gnu.org
Subject: Re: 23.1; OSX: Emacs 23.1.95 pretest does not compile
Date: Sat, 10 Apr 2010 23:28:34 +0200
Chong Yidong <cyd <at> stupidchicken.com> writes:

> Does this patch DTRT?

It fixes the reported issue (i.e., Emacs now compiles), thank you!

However, from "otool -L emacs", I see that it still gives priority to
libraries from "/sw/lib/", although I again specifically tried to give
priority to those in /opt/local/lib via (CFLAGS and) LDFLAGS.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5921; Package emacs. (Sun, 11 Apr 2010 02:40:02 GMT) Full text and rfc822 format available.

Message #17 received at 5921 <at> debbugs.gnu.org (full text, mbox):

From: Dan Nicolaescu <dann <at> gnu.org>
To: Markus Triska <markus.triska <at> gmx.at>
Cc: 5921 <at> debbugs.gnu.org
Subject: Re: bug#5921: 23.1; OSX: Emacs 23.1.95 pretest does not compile
Date: Sat, 10 Apr 2010 22:39:25 -0400
Markus Triska <markus.triska <at> gmx.at> writes:

> On OSX 10.4 with macports installed, I used:
>
>     $./configure CFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib

Have you tries using the --x-includes, -x-libraries, --includedir, --libdir flags?

Using them is better than fiddling with the CFLAGS because they place
various items in the correct order on the command line (at least they
used to, it's doubtfull that these flags are used much these days, so
they might have bitrotted...)


>
> and Emacs fails to compile with:
>
>    xsettings.c: In function 'parse_xft_settings':
>    xsettings.c:323: error: 'FC_HINT_NONE' undeclared (first use in this function)
>    xsettings.c:323: error: (Each undeclared identifier is reported only once
>    xsettings.c:323: error: for each function it appears in.)
>    xsettings.c:325: error: 'FC_HINT_SLIGHT' undeclared (first use in this function)
>    xsettings.c:327: error: 'FC_HINT_MEDIUM' undeclared (first use in this function)
>    xsettings.c:329: error: 'FC_HINT_FULL' undeclared (first use in this function)
>    xsettings.c: In function 'apply_xft_settings':
>    xsettings.c:424: error: 'FC_HINT_STYLE' undeclared (first use in this function)
>
> apparently because (old) /usr/X11R6/include include files are still
> picked up with priority by the eventually used flags:
>
>    gcc -I/sw/include -L/sw/lib -c -Demacs -DHAVE_CONFIG_H -I.
>    -I/Users/mt/emacs-23.1.95/src -I/usr/X11R6/include
>    -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include
>    -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo
>    -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0
>    -I/opt/local/lib/glib-2.0/include -I/opt/local/include
>    -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2
>    -I/opt/local/include/libpng12 -I/opt/local/include
>    -I/opt/local/include/freetype2 -Dtemacs -I/opt/local/include/librsvg-2
>    -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
>    -I/opt/local/include -I/opt/local/include/gtk-2.0
>    -I/opt/local/include/cairo -I/opt/local/include/pixman-1
>    -I/opt/local/include/freetype2 -I/opt/local/include/libpng12
>    -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include
>    -DORBIT2=1 -D_REENTRANT -I/opt/local/include/gconf/2
>    -I/opt/local/include/orbit-2.0 -I/opt/local/include/dbus-1.0
>    -I/opt/local/lib/dbus-1.0/include -I/opt/local/include/glib-2.0
>    -I/opt/local/lib/glib-2.0/include -I/opt/local/include
>    -I/opt/local/include -MMD -MF deps/xsettings.d xsettings.c
>
> When I reorder ALL_CFLAGS in src/Makefile to place
> -I/usr/X11R6/include at the end, Emacs compiles.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5921; Package emacs. (Mon, 12 Apr 2010 22:07:02 GMT) Full text and rfc822 format available.

Message #20 received at 5921 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Markus Triska <markus.triska <at> gmx.at>
Cc: Chong Yidong <cyd <at> stupidchicken.com>, 5921 <at> debbugs.gnu.org
Subject: Re: bug#5921: 23.1; OSX: Emacs 23.1.95 pretest does not compile
Date: Mon, 12 Apr 2010 18:06:05 -0400
Markus Triska wrote:

> However, from "otool -L emacs", I see that it still gives priority to
> libraries from "/sw/lib/", although I again specifically tried to give
> priority to those in /opt/local/lib via (CFLAGS and) LDFLAGS.

This is probably a duplicate of

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5252




Merged 2280 5252 5921. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 15 Apr 2010 18:30:04 GMT) Full text and rfc822 format available.

Changed bug title to '/sw and /opt/local on OSX' from '23.1; OSX: Emacs 23.1.95 pretest does not compile' Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 15 Apr 2010 18:30:04 GMT) Full text and rfc822 format available.

bug reassigned from package 'emacs' to 'ns'. Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 11 Sep 2011 21:29:01 GMT) Full text and rfc822 format available.

Merged 2280 5252 5921 6819. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 16 May 2012 07:33:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 16 Jun 2012 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 9 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.