#12490 closed defect (fixed)
gtk2 won't build on 10.5 due to 'echo' syntax change
Reported by: | bbyer@… | Owned by: | nox@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | cups gtk2 leopard | Cc: | |
Port: |
Description
The gtk+ port fails to build on recent builds of OS X 10.5.
The error message is:
gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../.. -I../../../gtk -I../../../gtk -I../../../gdk -I../../../gdk -DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED -D_REENTRANT -DPNG_NO_MMX_CODE -DXTHREADS -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pango-1.0 -I/opt/local/include/cairo -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11/include -I/opt/local/include/atk-1.0 -DG_DISABLE_CAST_CHECKS -I/opt/local/include -no-cpp-precomp -DX_LOCALE -I/opt/local/include -I/usr/X11/include -DG_DISABLE_DEPRECATED -O3 -funroll-loops -fstrict-aliasing -O2 -Wall -MT gtkprintbackendcups.lo -MD -MP -MF .deps/gtkprintbackendcups.Tpo -c gtkprintbackendcups.c -fno-common -DPIC -o .libs/gtkprintbackendcups.o gtkprintbackendcups.c: In function 'cups_dispatch_watch_check': gtkprintbackendcups.c:531: error: dereferencing pointer to incomplete type make[4]: *** [gtkprintbackendcups.lo] Error 1
A little digging shows that that error comes from
#ifdef HAVE_CUPS_API_1_2 dispatch->data_poll->fd = httpGetFd (dispatch->request->http); #else dispatch->data_poll->fd = dispatch->request->http->fd; #endif
... the ifdef test is failing, so the else clause is being evaluated.
The config.log file says this:
CUPS_API_MAJOR='-n 1' CUPS_API_MINOR='3' CUPS_CFLAGS='' CUPS_CONFIG='/usr/bin/cups-config' CUPS_LIBS='-lcups -weak_framework Kerberos -framework CoreFoundation -framework Security -lz -lpthread -framework CoreFoundation'
It looks like configure is barfing because it reads "-n 1" as 0.
Change History (6)
comment:1 Changed 17 years ago by nox@…
Version: | 1.5.0 |
---|
comment:2 Changed 17 years ago by nox@…
Cc: | bbyer@… added |
---|
comment:3 Changed 17 years ago by jmroot (Joshua Root)
Cc: | bbyer@… removed |
---|---|
Owner: | changed from macports-tickets@… to nox@… |
Assigning to maintainer.
comment:4 Changed 17 years ago by jmroot (Joshua Root)
Is this still an issue with the current version? It seems to build fine on 10.5 for me.
comment:5 Changed 17 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Assuming this was fixed upstream at some point.
Note: See
TracTickets for help on using
tickets.
I think you should report this upstream.