pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

x11/tk build problems on Mac OS X



Hello,

   While attempting to build devel/doxygen on:

   $ uname -a
   Darwin farrah.local 12.2.1 Darwin Kernel Version 12.2.1: Thu Oct 18
16:32:48 PDT 2012; root:xnu-2050.20.9~2/RELEASE_X86_64 x86_64

   .. x11/tk fails with:

------------------------------------------
===> Building for tk-8.5.13nb1
gcc -c -pipe -O2 -I/Users/jan/pkg/include -I/usr/include
-I/opt/X11/include -I/opt/X11/include/freetype2 -Os -pipe -O2
-I/Users/jan/pkg/include -I/usr/include -I/opt/X11/include
-I/opt/X11/include/freetype2 -pipe  -isystem /usr/include
-I/Users/jan/pkg/include -I/usr/include -I/opt/X11/include
-I/opt/X11/include/freetype2 -Wall -fno-common
-I/Users/jan/pkgsrc/x11/tk/work/tk8.5.13/unix/../unix
-I/Users/jan/pkgsrc/x11/tk/work/tk8.5.13/unix/../generic
-I/Users/jan/pkgsrc/x11/tk/work/tk8.5.13/unix/../bitmaps
-I/Users/jan/pkg/lib/../include/tcl/generic
-I/Users/jan/pkg/include/tcl/unix
-I/Users/jan/pkgsrc/x11/tk/work/tk8.5.13/unix/../macosx
-I/Users/jan/pkgsrc/x11/tk/work/tk8.5.13/unix/../xlib
-DPACKAGE_NAME=\"tk\" -DPACKAGE_TARNAME=\"tk\" -DPACKAGE_VERSION=\"8.5\"
-DPACKAGE_STRING=\"tk\ 8.5\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_LIMITS_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1
-DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 -DHAVE_PTHREAD_GET_STACKSIZE_NP=1
-DTCL_THREADS=1 -DMODULE_SCOPE=extern\
__attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DMAC_OSX_TCL=1
-DHAVE_COREFOUNDATION=1 -DHAVE_CAST_TO_UNION=1
-DTCL_SHLIB_EXT=\".dylib\" -DNDEBUG=1 -DTCL_CFG_OPTIMIZED=1
-DTCL_WIDE_INT_IS_LONG=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1
-DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DHAVE_PW_GECOS=1
-DHAVE_AVAILABILITYMACROS_H=1 -DHAVE_WEAK_IMPORT=1 -D_DARWIN_C_SOURCE=1
-DMAC_OSX_TK=1       -DTCL_NO_DEPRECATED -std=gnu99 -x objective-c
-fobjc-gc -DUSE_TCL_STUBS
/Users/jan/pkgsrc/x11/tk/work/tk8.5.13/unix/../generic/tk3d.c
In file included from
/Users/jan/pkgsrc/x11/tk/work/tk8.5.13/unix/../macosx/tkMacOSXPort.h:71,
                 from
/Users/jan/pkgsrc/x11/tk/work/tk8.5.13/unix/../generic/tkPort.h:28,
                 from
/Users/jan/pkgsrc/x11/tk/work/tk8.5.13/unix/../generic/tkInt.h:25,
                 from
/Users/jan/pkgsrc/x11/tk/work/tk8.5.13/unix/../generic/tk3d.c:14:
/Users/jan/pkgsrc/x11/tk/work/tk8.5.13/unix/../generic/tkIntXlibDecls.h:748:
error: conflicting types for 'XKeycodeToKeysym'
/Users/jan/pkgsrc/x11/tk/work/.buildlink/include/X11/Xlib.h:1703: error:
previous declaration of 'XKeycodeToKeysym' was here
/Users/jan/pkgsrc/x11/tk/work/tk8.5.13/unix/../generic/tkIntXlibDecls.h:780:
error: conflicting types for 'XChangeProperty'
/Users/jan/pkgsrc/x11/tk/work/.buildlink/include/X11/Xlib.h:2085: error:
previous declaration of 'XChangeProperty' was here
/Users/jan/pkgsrc/x11/tk/work/tk8.5.13/unix/../generic/tkIntXlibDecls.h:786:
error: conflicting types for 'XChangeWindowAttributes'
/Users/jan/pkgsrc/x11/tk/work/.buildlink/include/X11/Xlib.h:2098: error:
previous declaration of 'XChangeWindowAttributes' was here
/Users/jan/pkgsrc/x11/tk/work/tk8.5.13/unix/../generic/tkIntXlibDecls.h:792:
error: conflicting types for 'XConfigureWindow'
/Users/jan/pkgsrc/x11/tk/work/.buildlink/include/X11/Xlib.h:2177: error:
previous declaration of 'XConfigureWindow' was here
[---]
------------------------------------------

   I tried a trivial hack (simply don't include tkIntXlibDecls.h in
macosx/tkMacOSXPorts.h). This does indeed allow the build to continue,
but it fails soon after with:

------------------------------------------
[---]
gcc -c -pipe -O2 -I/Users/jan/pkg/include -I/usr/include
-I/opt/X11/include -I/opt/X11/include/freetype2 -Os -pipe -O2
-I/Users/jan/pkg/include -I/usr/include -I/opt/X11/include
-I/opt/X11/include/freetype2 -pipe  -isystem /usr/include
-I/Users/jan/pkg/include -I/usr/include -I/opt/X11/include
-I/opt/X11/include/freetype2 -Wall -fno-common
-I/Users/jan/pkgsrc/x11/tk/work/tk8.5.13/unix/../unix
-I/Users/jan/pkgsrc/x11/tk/work/tk8.5.13/unix/../generic
-I/Users/jan/pkgsrc/x11/tk/work/tk8.5.13/unix/../bitmaps
-I/Users/jan/pkg/lib/../include/tcl/generic
-I/Users/jan/pkg/include/tcl/unix
-I/Users/jan/pkgsrc/x11/tk/work/tk8.5.13/unix/../macosx
-I/Users/jan/pkgsrc/x11/tk/work/tk8.5.13/unix/../xlib
-DPACKAGE_NAME=\"tk\" -DPACKAGE_TARNAME=\"tk\" -DPACKAGE_VERSION=\"8.5\"
-DPACKAGE_STRING=\"tk\ 8.5\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_LIMITS_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1
-DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 -DHAVE_PTHREAD_GET_STACKSIZE_NP=1
-DTCL_THREADS=1 -DMODULE_SCOPE=extern\
__attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DMAC_OSX_TCL=1
-DHAVE_COREFOUNDATION=1 -DHAVE_CAST_TO_UNION=1
-DTCL_SHLIB_EXT=\".dylib\" -DNDEBUG=1 -DTCL_CFG_OPTIMIZED=1
-DTCL_WIDE_INT_IS_LONG=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1
-DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DHAVE_PW_GECOS=1
-DHAVE_AVAILABILITYMACROS_H=1 -DHAVE_WEAK_IMPORT=1 -D_DARWIN_C_SOURCE=1
-DMAC_OSX_TK=1       -DTCL_NO_DEPRECATED -std=gnu99 -x objective-c
-fobjc-gc -DUSE_TCL_STUBS
/Users/jan/pkgsrc/x11/tk/work/tk8.5.13/unix/../generic/tkWindow.c
/Users/jan/pkgsrc/x11/tk/work/tk8.5.13/unix/../generic/tkWindow.c: In
function 'Tk_DefineCursor':
/Users/jan/pkgsrc/x11/tk/work/tk8.5.13/unix/../generic/tkWindow.c:2097:
error: 'XCursor' undeclared (first use in this function)
/Users/jan/pkgsrc/x11/tk/work/tk8.5.13/unix/../generic/tkWindow.c:2097:
error: (Each undeclared identifier is reported only once
/Users/jan/pkgsrc/x11/tk/work/tk8.5.13/unix/../generic/tkWindow.c:2097:
error: for each function it appears in.)
/Users/jan/pkgsrc/x11/tk/work/tk8.5.13/unix/../generic/tkWindow.c:2097:
error: expected ';' before 'cursor'
/Users/jan/pkgsrc/x11/tk/work/tk8.5.13/unix/../generic/tkWindow.c: In
function 'Initialize':
/Users/jan/pkgsrc/x11/tk/work/tk8.5.13/unix/../generic/tkWindow.c:3243:
error: dereferencing pointer to incomplete type
*** Error code 1

Stop.
bmake: stopped in /Users/jan/pkgsrc/x11/tk/work/tk8.5.13/unix
*** Error code 1
------------------------------------------

   At this point I'd like to consult someone with slightly stronger tk/X
Fu. I've been looking for some kind of XCursor in my system, but to no
avail. Should I have it somewhere among my X11 headers?

   Setting:

   PKG_OPTIONS.tk = -xft2

   .. allows the package to build, but I assume that it's supposed to
build with xft2(?).

   /Jan


Home | Main Index | Thread Index | Old Index