X11 development headers
Hi, I'm having lots of problems when compiling various packages with macports, and they all come down to one issue: the X11 development headers seem to be missing. I'm running 10.5.4 (upgraded from 10.5.2) with first Apple's X11 installed, then later upgraded to Xquartz 2.3.1rc1. I also have Xcode 3.1 installed (upgraded from 3.0). This should be enough for everything to work, right? How can I check wether the headers are really missing, i.e. where should I look for them? regards, Joachim
+ Joachim Beckers <joachim.beckers@gmail.com>:
How can I check wether the headers are really missing, i.e. where should I look for them?
/usr/X11/include/X11 (/usr/X11R6 is a symlink to /usr/X11 BTW). Do you have x11prefix set to /usr/X11 (or /usr/X11R6) in /opt/local/etc/macports/macports.conf ? - Harald
On 04 Sep 2008, at 14:03, Harald Hanche-Olsen wrote:
+ Joachim Beckers <joachim.beckers@gmail.com>:
How can I check wether the headers are really missing, i.e. where should I look for them?
/usr/X11/include/X11 (/usr/X11R6 is a symlink to /usr/X11 BTW).
Seems to be ok: mackeunnen:~ jbeckers$ ls /usr/X11/include/X11/ CallbackI.h IntrinsicP.h VarargsI.h Xfuncproto.h Xthreads.h Composite.h Object.h Vendor.h Xfuncs.h Xtos.h CompositeP.h ObjectP.h VendorP.h Xlib.h Xtrans ConstrainP.h PM X.h XlibConf.h Xutil.h Constraint.h PassivGraI.h X10.h Xlibint.h Xw32defs.h ConvertI.h RectObj.h XF86keysym.h Xlocale.h Xwindows.h Core.h RectObjP.h XKBlib.h Xmd.h Xwinsock.h CoreP.h ResConfigP.h XWDFile.h Xmu ap_keysym.h CreateI.h ResourceI.h Xalloca.h Xos.h bitmaps DECkeysym.h SM Xarch.h Xos_r.h cursorfont.h EventI.h SelectionI.h Xatom.h Xosdefs.h dri HPkeysym.h Shell.h Xauth.h Xpoll.h extensions HookObjI.h ShellI.h Xaw XprintAppUtil fonts ICE ShellP.h Xcms.h XprintUtil keysym.h ImUtil.h StringDefs.h Xcursor Xproto.h keysymdef.h InitialI.h Sunkeysym.h Xdefs.h Xprotostr.h xpm.h Intrinsic.h ThreadsI.h Xdmcp.h Xregion.h IntrinsicI.h TranslateI.h Xft Xresource.h
Do you have x11prefix set to /usr/X11 (or /usr/X11R6) in /opt/local/etc/macports/macports.conf ?
Yes I have. Joachim
On 04 Sep 2008, at 13:18, Joachim Beckers wrote:
Hi,
I'm having lots of problems when compiling various packages with macports, and they all come down to one issue: the X11 development headers seem to be missing.
I'm running 10.5.4 (upgraded from 10.5.2) with first Apple's X11 installed, then later upgraded to Xquartz 2.3.1rc1. I also have Xcode 3.1 installed (upgraded from 3.0). This should be enough for everything to work, right?
How can I check wether the headers are really missing, i.e. where should I look for them?
regards,
Joachim
This is an example logfile of what goes wrong: [Users/jbeckers] > install gst-plugins-base ---> Building gst-plugins-base with target all Error: Target org.macports.build returned: shell command " cd "/opt/ local/var/macports/build/ _opt_local_var_macports_sources_rsync .macports.org_release_ports_gnome_gst-plugins-base/work/gst-plugins- base-0.10.19" && make all " returned error 2 Command output: Making all in tcp make all-am make[4]: Nothing to be done for `all-am'. Making all in typefind make[3]: Nothing to be done for `all'. Making all in videotestsrc make[3]: Nothing to be done for `all'. Making all in videorate make[3]: Nothing to be done for `all'. Making all in videoscale make[3]: Nothing to be done for `all'. Making all in volume make[3]: Nothing to be done for `all'. make[3]: Nothing to be done for `all-am'. Making all in sys Making all in ximage /bin/sh ../../libtool --tag=CC --mode=link /usr/bin/gcc-4.0 -O2 -L/ opt/local/lib -o libgstximagesink.la -rpath /opt/local/lib/ gstreamer-0.10 -module -avoid-version -export-symbols-regex '^_*gst_plugin_desc$' -no-undefined libgstximagesink_la-ximagesink.lo libgstximagesink_la-ximage.lo ../../gst-libs/gst/interfaces/ libgstinterfaces-0.10.la ../../gst-libs/gst/video/libgstvideo-0.10.la - L/opt/local/lib -lgstbase-0.10 -lgstreamer-0.10 -lgobject-2.0 - lgmodule-2.0 -lgthread-2.0 -lxml2 -lpthread -lz -lm -lglib-2.0 -lintl - liconv -lX11 rm -fr .libs/libgstximagesink.exp generating symbol list for `libgstximagesink.la' /usr/bin/nm -p .libs/libgstximagesink_la-ximagesink.o .libs/ libgstximagesink_la-ximage.o | sed -n -e 's/^.*[ ]\([BCDEGRST] [BCDEGRST]*\)[ ][ ]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p' | /usr/ bin/sed 's/.* //' | sort | uniq > .libs/libgstximagesink.exp /usr/bin/grep -E -e "^_*gst_plugin_desc$" ".libs/libgstximagesink.exp"
".libs/libgstximagesink.expT" mv -f ".libs/libgstximagesink.expT" ".libs/libgstximagesink.exp" sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < .libs/ libgstximagesink.exp > .libs/libgstximagesink-symbols.expsym /usr/bin/gcc-4.0 -o .libs/libgstximagesink.so -bundle .libs/ libgstximagesink_la-ximagesink.o .libs/libgstximagesink_la-ximage.o - L/opt/local/lib ../../gst-libs/gst/interfaces/.libs/ libgstinterfaces-0.10.dylib /opt/local/lib/libz.dylib ../../gst-libs/ gst/video/.libs/libgstvideo-0.10.dylib /opt/local/lib/ libgstbase-0.10.dylib /opt/local/lib/libgstreamer-0.10.dylib /opt/ local/lib/libgobject-2.0.dylib /opt/local/lib/libgmodule-2.0.dylib / opt/local/lib/libgthread-2.0.dylib /opt/local/lib/libxml2.dylib - lpthread -lz -lm /opt/local/lib/libglib-2.0.dylib /opt/local/lib/ libintl.dylib /opt/local/lib/libiconv.dylib -lX11 ld: library not found for -lX11 collect2: ld returned 1 exit status make[3]: *** [libgstximagesink.la] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
Error: Status 1 encountered during processing. The problem is still there with XQuartz 2.3.1rc3 installed BTW. Joachim
+ Joachim Beckers <joachim.beckers@gmail.com>:
/usr/bin/gcc-4.0 -o .libs/libgstximagesink.so -bundle .libs/libgstximagesink_la-ximagesink.o .libs/libgstximagesink_la-ximage.o -L/opt/local/lib ../../gst-libs/gst/interfaces/.libs/libgstinterfaces-0.10.dylib /opt/local/lib/libz.dylib ../../gst-libs/gst/video/.libs/libgstvideo-0.10.dylib /opt/local/lib/libgstbase-0.10.dylib /opt/local/lib/libgstreamer-0.10.dylib /opt/local/lib/libgobject-2.0.dylib /opt/local/lib/libgmodule-2.0.dylib /opt/local/lib/libgthread-2.0.dylib /opt/local/lib/libxml2.dylib -lpthread -lz -lm /opt/local/lib/libglib-2.0.dylib /opt/local/lib/libintl.dylib /opt/local/lib/libiconv.dylib -lX11
What is conspicuously missing here is a -L/usr/X11/lib flag ...
ld: library not found for -lX11
... so this comes as no surprise. As to why that flag is missing, I don't know. If no one here knows, you may need to ask on some macports list. - Harald
Joachim Beckers wrote: []
I'm running 10.5.4 (upgraded from 10.5.2) with first Apple's X11 installed, then later upgraded to Xquartz 2.3.1rc1. I also have Xcode 3.1 installed (upgraded from 3.0). This should be enough for everything to work, right?
After these upgrades, do you still have /usr/X11/bin/xmkmf? It does not come with recent xquartz updates, and its absence would explain the error you are seeing. In the configure phase of the build you would then see a line Checking for X ... no The gst-plugins-base Portfile will have to be fixed (like thousands of others) to use the configure flags --x-includes=${x11prefix}/include --x-libraries=${x11prefix}/lib. -- Martin
On 05 Sep 2008, at 08:51, Martin Costabel wrote:
Joachim Beckers wrote:
I'm running 10.5.4 (upgraded from 10.5.2) with first Apple's X11 installed, then later upgraded to Xquartz 2.3.1rc1. I also have Xcode 3.1 installed (upgraded from 3.0). This should be enough for everything to work, right?
After these upgrades, do you still have /usr/X11/bin/xmkmf? It does not come with recent xquartz updates, and its absence would explain the error you are seeing.
mackeunnen:~ jbeckers$ ls /usr/X11/bin/xmkmf ls: /usr/X11/bin/xmkmf: No such file or directory So no, I don't have this file. Joachim
+ Joachim Beckers <joachim.beckers@gmail.com>:
On 05 Sep 2008, at 08:51, Martin Costabel wrote:
Joachim Beckers wrote:
I'm running 10.5.4 (upgraded from 10.5.2) with first Apple's X11 installed, then later upgraded to Xquartz 2.3.1rc1. [...]
After these upgrades, do you still have /usr/X11/bin/xmkmf?
So no, I don't have this file.
Strange. On my system, it came with Apple's X11: ; pkgutil --file-info /usr/X11/bin/xmkmf volume: / path: usr/X11/bin/xmkmf pkgid: com.apple.pkg.X11User pkg-version: 10.5.0.1.1.1192168948 install-time: 1196178097 uid: 0 gid: 0 mode: 100755 (ditto for /usr/X11/bin/imake, needed by xmkmf). Something must have deleted the file, and X11-2.3.1rc1 is not a likely culprit. - Harald
On 05 Sep 2008, at 19:30, Harald Hanche-Olsen wrote:
+ Joachim Beckers <joachim.beckers@gmail.com>:
On 05 Sep 2008, at 08:51, Martin Costabel wrote:
Joachim Beckers wrote:
I'm running 10.5.4 (upgraded from 10.5.2) with first Apple's X11 installed, then later upgraded to Xquartz 2.3.1rc1. [...]
After these upgrades, do you still have /usr/X11/bin/xmkmf?
So no, I don't have this file.
Strange. On my system, it came with Apple's X11:
; pkgutil --file-info /usr/X11/bin/xmkmf volume: / path: usr/X11/bin/xmkmf
pkgid: com.apple.pkg.X11User pkg-version: 10.5.0.1.1.1192168948 install-time: 1196178097 uid: 0 gid: 0 mode: 100755
(ditto for /usr/X11/bin/imake, needed by xmkmf).
Something must have deleted the file, and X11-2.3.1rc1 is not a likely culprit.
- Harald
Reinstalling Apple's X11 and upgrading to Xquartz 2.3.1rc5 fixed the issue. Thanks everyone! Joachim
participants (3)
-
Harald Hanche-Olsen
-
Joachim Beckers
-
Martin Costabel