[MacPorts] #17558: connection errors when macports libs are used with Tiger X11 headers
MacPorts
noreply at macports.org
Wed Jan 7 00:03:07 PST 2009
#17558: connection errors when macports libs are used with Tiger X11 headers
----------------------------------+-----------------------------------------
Reporter: vinc17@… | Owner: jeremyhu@…
Type: defect | Status: reopened
Priority: High | Milestone: Port Bugs
Component: ports | Version: 1.6.0
Resolution: | Keywords: crash
Port: xorg |
----------------------------------+-----------------------------------------
Comment(by jeremyhu@…):
> I configured the /opt/local-test installation to use the modified ports
tree I use for building releases, except that I took out the --x-includes
and --x-libraries stuff. I didn't want to complicate the test but without
the patch cairo doesn't honor important universal flags like -isysroot and
will link against the 10.5 SDK regardless. (To see the patch I used, run
{{{svn cat
svn://svn.insecure.org/zenmap/install_scripts/macosx/macports-1.8.0-universal.diff@11598}}}
and remove the --x-includes and --x-libraries bits.)
Ok, but what's the login and pass that I should use?
> Finally I ran {{{sudo /opt/local-test/bin/port -d install gtk2}}}.
(Actually I did this twice. The first time I forgot to patch cairo, so had
to remove cairo and build again.) gtk2 quit in a failure I haven't seen
before:
>
> {{{
> libtool: compile: /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I../..
-DG_LOG_DOMA
> IN=\"Gdk\" -DGDK_COMPILATION -I../.. -I../../gdk -I../../gdk
-DG_DISABLE_CAST_CH
> ECKS -D_REENTRANT -I/opt/local-test/include/glib-2.0 -I/opt/local-
test/lib/glib-
> 2.0/include -I/opt/local-test/include -I/opt/local-
test/include/pango-1.0 -I/opt
> /local-test/include/cairo -I/opt/local-test/include/pixman-1 -I/opt
/local-test/include/freetype2 -I/opt/local-test/include/libpng12
-I/usr/X11/include -I/opt/lo
> cal-test/include -no-cpp-precomp -DX_LOCALE -isysroot
/Developer/SDKs/MacOSX10.5
> .sdk -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES
-DGDK_PIXBUF_DISA
> BLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -I/usr/X11/include
-DGDK_PIXBU
> F_DISABLE_DEPRECATED -O2 -funroll-loops -fstrict-aliasing -isysroot
/Developer/S
> DKs/MacOSX10.5.sdk -arch ppc -arch i386 -mmacosx-version-min=10.4 -Wall
-c gdkev
> ents-x11.c -fno-common -DPIC -o .libs/gdkevents-x11.o
> gdkevents-x11.c: In function 'gdk_event_translate':
> gdkevents-x11.c:2110: error: 'RRNotify' undeclared (first use in this
function)
> gdkevents-x11.c:2110: error: (Each undeclared identifier is reported
only once
> gdkevents-x11.c:2110: error: for each function it appears in.)
> ...
> }}}
That's because the protocol headers in the 10.4u SDK are not as up to date
as gtk needs. Maybe try installing xorg-randrproto first.
> I'll try your suggestion from comment 46. Am I supposed to put that code
in the portfiles in place of --x-includes and --x-libraries?
Yes.
--
Ticket URL: <http://trac.macports.org/ticket/17558#comment:48>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list