all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Jan D." <jan.h.d@swipnet.se>
To: Peter Dyballa <Peter_Dyballa@Freenet.DE>
Cc: 6792@debbugs.gnu.org
Subject: bug#6792: 24.0.50; at revision 100946 GNU Emacs with Xaw3d does not compile
Date: Wed, 04 Aug 2010 08:50:41 +0200	[thread overview]
Message-ID: <4C590DC1.5020300@swipnet.se> (raw)
In-Reply-To: <71353A8D-7D07-4E2C-840A-E2FBD8D8365C@Freenet.DE>

On 2010-08-04 00:09, Peter Dyballa wrote:
> Hello!
>
> In Mac OS X (here: 10.5.8, Leopard) Xaw3d is not standard. It can be
> installed by the package management systems Fink or MacPorts, then in
> /sw/{include,lib} or /opt/local/{include,lib}. When I change the
> configure script to use GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib" (line
> #3270) it finds the software, but does not propagate these *test*
> options to active flags. So this error happens:

Why aren't you setting CFLAGS and LDFLAGS?  That is the way it is 
supposed to be done, no need to modify any configure script:

% LDFLAGS=-L/sw/lib CFLAGS='-O2 -g -I/sw/include' ./configure ...

Doesn't that work for you?

	Jan D.

>
> gcc-4.2 -c -I/usr/X11/include -I/usr/X11/include
> -I/usr/X11/include/freetype2 -Wold-style-definition
> -Wdeclaration-after-statement -Wno-pointer-sign -g -H -Wno-pointer-sign
> -pipe -fPIC -fno-common -mcpu=7450 -mtune=G4 -faltivec -fast
> -DHAVE_CONFIG_H -Demacs -I. -I../src -I..../emacs/lwlib
> -I..../emacs/lwlib/../src ..../emacs/lwlib/lwlib.c
> . ../src/config.h
> .. ../src/s/darwin.h
> .. ../src/m/macppc.h
> .. /usr/include/string.h
> ... /usr/include/_types.h
> .... /usr/include/sys/_types.h
> ..... /usr/include/sys/cdefs.h
> ..... /usr/include/machine/_types.h
> ...... /usr/include/ppc/_types.h
> .. /usr/include/stdlib.h
> ... /usr/include/available.h
> ... /usr/include/sys/wait.h
> .... /usr/include/sys/signal.h
> ..... /usr/include/sys/appleapiopts.h
> ..... /usr/include/machine/signal.h
> ...... /usr/include/ppc/signal.h
> ....... /usr/include/ppc/_structs.h
> ..... /usr/include/sys/_structs.h
> ...... /usr/include/machine/_structs.h
> ....... /usr/include/ppc/_structs.h
> ........ /usr/include/mach/ppc/_structs.h
> .... /usr/include/sys/resource.h
> ..... /usr/include/sys/_structs.h
> .... /usr/include/machine/endian.h
> ..... /usr/include/ppc/endian.h
> ...... /usr/include/sys/_endian.h
> ... /usr/include/alloca.h
> ... /usr/include/machine/types.h
> .... /usr/include/ppc/types.h
> ..... /usr/include/ppc/_types.h
> . /usr/include/setjmp.h
> .. /usr/include/machine/setjmp.h
> ... /usr/include/ppc/setjmp.h
> .... /usr/include/ppc/_structs.h
> . ..../emacs/lwlib/../src/lisp.h
> .. /usr/lib/gcc/powerpc-apple-darwin9/4.2.1/include/stdarg.h
> .. /usr/lib/gcc/powerpc-apple-darwin9/4.2.1/include/stddef.h
> . /usr/include/sys/types.h
> .. /usr/include/sys/_structs.h
> . /usr/include/stdio.h
> . /usr/include/ctype.h
> .. /usr/include/runetype.h
> . ..../emacs/lwlib/lwlib-int.h
> .. ..../emacs/lwlib/lwlib.h
> ... /usr/X11/include/X11/Intrinsic.h
> .... /usr/X11/include/X11/Xlib.h
> ..... /usr/X11/include/X11/X.h
> ..... /usr/X11/include/X11/Xfuncproto.h
> ..... /usr/X11/include/X11/Xosdefs.h
> ..... /usr/lib/gcc/powerpc-apple-darwin9/4.2.1/include/stddef.h
> .... /usr/X11/include/X11/Xutil.h
> ..... /usr/X11/include/X11/keysym.h
> ...... /usr/X11/include/X11/keysymdef.h
> .... /usr/X11/include/X11/Xresource.h
> .... /usr/lib/gcc/powerpc-apple-darwin9/4.2.1/include/stddef.h
> .... /usr/X11/include/X11/Core.h
> .... /usr/X11/include/X11/Composite.h
> .... /usr/X11/include/X11/Constraint.h
> .... /usr/X11/include/X11/Object.h
> .... /usr/X11/include/X11/RectObj.h
> . ..../emacs/lwlib/lwlib-utils.h
> . /usr/X11/include/X11/StringDefs.h
> . ..../emacs/lwlib/lwlib-Xlw.h
> ..../emacs/lwlib/lwlib.c:49:29: error: X11/Xaw3d/Paned.h: No such file
> or directory
> . ..../emacs/lwlib/lwlib-Xaw.h
> make[2]: *** [lwlib.o] Error 1
>
> and similarly with lwlib-Xaw.c. When I use MacPorts' Xaw3d the C header
> files are found because the non-Apple X11 installation has PC files
> which set CFLAGS to contain -I/opt/local/include.
>
> Xaw3d does not come with a PC file so configure cannot rely on pkg-config.
>
> --
> Greetings
>
> Pete
>
> UNIX is user friendly, it's just picky about who its friends are.
>
>
>






  reply	other threads:[~2010-08-04  6:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-03 22:09 bug#6792: 24.0.50; at revision 100946 GNU Emacs with Xaw3d does not compile Peter Dyballa
2010-08-04  6:50 ` Jan D. [this message]
2010-08-04 15:14   ` Peter Dyballa
2010-08-04 16:43     ` Dan Nicolaescu
2010-08-04 21:52       ` Andreas Schwab
2011-02-12  1:34         ` Glenn Morris
2011-02-12 18:15           ` Peter Dyballa
2010-08-04 22:21       ` Peter Dyballa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C590DC1.5020300@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=6792@debbugs.gnu.org \
    --cc=Peter_Dyballa@Freenet.DE \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.