Opened 19 years ago

Closed 6 years ago

#4167 closed defect (fixed)

BUG: tk installs X11 headers

Reported by: ghenshaw@… Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc: landonf@…, darwinports-bugs@…, opendarwin-2006@…, yves@…, markd@…, chrstphrchvz (Christopher Chavez)
Port: tk

Description (last modified by mf2k (Frank Schima))

In the course of trying to install ethereal...

--->  Fetching xrender
--->  Attempting to fetch libXrender-0.8.4.tar.bz2 from http://xlibs.freedesktop.org/release/
--->  Verifying checksum(s) for xrender
--->  Extracting xrender
--->  Configuring xrender
--->  Building xrender with target all
Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/
file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_x11_xrender/
work/libXrender-0.8.4" && make all" returned error 2
Command output: make  all-am
if /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.    -I/opt/local/include   -I/usr/
X11R6/include -DXTHREADS -g -O2 -MT Color.lo -MD -MP -MF ".deps/Color.Tpo" \
  -c -o Color.lo `test -f 'Color.c' || echo './'`Color.c; \
then mv -f ".deps/Color.Tpo" ".deps/Color.Plo"; \
else rm -f ".deps/Color.Tpo"; exit 1; \
fi
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/local/include -I/usr/X11R6/include -DXTHREADS -g -O2 -MT 
Color.lo -MD -MP -MF .deps/Color.Tpo -c Color.c  -fno-common -DPIC -o .libs/Color.o
In file included from Xrenderint.h:32,
                 from Color.c:25:
/usr/X11R6/include/X11/Xlibint.h:69: error: redefinition of 'struct _XDisplay'
In file included from Xrenderint.h:32,
                 from Color.c:25:
/usr/X11R6/include/X11/Xlibint.h:1226: error: parse error before "XConnectionWatchProc"
/usr/X11R6/include/X11/Xlibint.h:1226: warning: no semicolon at end of struct or union
/usr/X11R6/include/X11/Xlibint.h:1229: error: parse error before '}' token
make[1]: *** [Color.lo] Error 1
make: *** [all] Error 2

Change History (22)

comment:1 Changed 19 years ago by blb@…

Builds fine here. What else can you tell me about your system (full OS version, result from 'gcc -- version', result from 'port installed')?

comment:2 Changed 19 years ago by ghenshaw@…

I'm using a relatively pristine OSX 10.4.2 install, the machine is only a week old.

$ gcc --version powerpc-apple-darwin8-gcc-4.0.0 (GCC) 4.0.0 20041026 (Apple Computer, Inc. build 4061)

$ port installed The following ports are currently installed:

apr 0.9.6_1+darwin_8 (active) apr-util 0.9.6_1 (active) atk 1.9.1_0 (active) bzip2 1.0.3_0 (active) coreutils 5.2.1_3 (active) db4 4.3.28_0+darwin_8 (active) dejagnu 1.4.4_0 (active) expat 1.95.8_1 (active) fftw-3 3.0.1-fma_3 (active) fontconfig 2.2.3_1 (active) freetype 2.1.9_1 (active) gcc34 3.4.4_0+darwin_8 (active) gd2 2.0.33_2 (active) gettext 0.14.3_1 (active) gimp 1.2.5_2 (active) glib1 1.2.10_4 (active) glib2 2.6.5_0 (active) glut 3.7_0 (active) gnughostscript 7.07_0 (active) gnupg 1.4.1_1 (active) gnuplot 4.0.0_1+darwin_8 (active) gsl 1.6_0 (active) gtk1 1.2.10_6 (active) guile 1.6.7_0 (active) hdf5 1.6.4_0 (active) ImageMagick 6.2.0-6_0 (active) jpeg 6b_1 (active) libiconv 1.9.2_1 (active) libnet11 1.1.2.1_0 (active) libpcap 0.8.3_3+darwin_8 (active) libpng 1.2.8_2+darwin_8 (active) libtool 1.5.18_0 (active) logsentry 1.1.1_0 (active) maxima 5.9.1_0+test (active) neon 0.24.7_0 (active) octave 2.1.71_0+test (active) openmcl 0.14.3_0 (active) openssl 0.9.8_0 (active) pcre 6.1_0 (active) pdflib 6.0.1_1 (active) pkgconfig 0.17.2_1 (active) qt3-mac 3.3.4_1+darwin_8 (active) readline 5.0.005_0+darwin_8 (active) render 0.8_2 (active) snort 2.3.3_0 (active) subversion 1.2.1_0 (active) tcl 8.4.11_2 (active) teTeX 3.0_0 (active) texi2html 1.76_3 (active) texinfo 4.8_0 (active) TeXmacs 1.0.5_0 (active) TeXShop 2.03_1 (active) tiff 3.7.1_0 (active) tk 8.4.11_2+macosx (active) tripwire 2.3.1-2_0 (active) zlib 1.2.2_2 (active)

comment:3 Changed 19 years ago by ghenshaw@…

If I first do

$ export CC=/opt/local/bin/gcc-dp-3.4 $ export CXX=/opt/local/bin/g++-dp-3.4

it builds fine, so it appears that the problem is that it won't build with gcc 4.0. Should this be a port dependency?

Incidentally, in continuing to try to install ethereal, port Xft2 also won't build with gcc 4.0.

comment:4 Changed 19 years ago by ghenshaw@…

...but then ethereal won't build with gcc-3.4, and if I build it with gcc-4.0 it fails to run. The solution, it seems, is to get xrender to build with gcc-4.0. Help!

comment:5 Changed 19 years ago by yves@…

Cc: landonf@… added

I got the bad boy !

tk 8.4.11_2+macosx

Don't ask me why though. I diffed the failing build's config.log with the succeeding one's are both are identical. I can use a failed build"s configure to build successfully, as long as I uninstall tk (deactivate should do it with less pain). This really happens somewhere between the Makefile and gcc, most probably in the #include chain.

comment:6 Changed 19 years ago by ksahr@…

I tried 'port deactivate tk' and then both xrender and Xft2 built with no problems (as did pango, which was also failing for me). Many thanks!!!!

comment:7 Changed 19 years ago by yves@…

Cc: yves@… added

tk is blocking many other builds : windowmaker, enlightenment, xchat2, xpdf

isn't it strange for a port to install many X11 include duplicates ?

yves$ port contents tk

[...] /opt/local/include/X11/cursorfont.h /opt/local/include/X11/keysym.h /opt/local/include/X11/keysymdef.h /opt/local/include/X11/X.h /opt/local/include/X11/Xatom.h /opt/local/include/X11/xbytes.h /opt/local/include/X11/Xfuncproto.h /opt/local/include/X11/Xlib.h /opt/local/include/X11/Xutil.h

comment:8 Changed 19 years ago by pguyot (Paul Guyot)

Cc: darwinports-bugs@… added
Owner: changed from darwinports-bugs@… to landonf@…
Summary: xrender build failstk installs X11 headers

comment:9 Changed 19 years ago by opendarwin-2006@…

Cc: opendarwin-2004@… added

comment:10 Changed 19 years ago by cssdev@…

I ran into this problem as well. I was going crazy wondering why all my visualization builds that worked fine last week suddenly broke. It was only when I noticed X11 headers in /opt/local that I tracked down the problem to Tk (which I just installed other night as part of a dependency.) Once I deactivated the port, then everything proceeded without any trouble. The Tk port's X11 headers create a lot of problems for my code outside DarwinPorts, so maybe a more detailed comparison is needed between the versions provided by the port and by Apple's X11?

comment:11 Changed 19 years ago by yves@…

Fixed long ao, BTW

comment:12 Changed 19 years ago by mww@…

Summary: tk installs X11 headersBUG: tk installs X11 headers

comment:13 Changed 19 years ago by markd@…

Cc: markd@… added

(In reply to comment #9)

Fixed long ao, BTW

That means this bug can be closed, correct?

comment:14 Changed 19 years ago by yves@…

correct !

comment:15 Changed 19 years ago by markd@…

Resolution: fixed
Status: newclosed

comment:16 Changed 6 years ago by elfprince13 (Thomas Dickerson)

Resolution: fixed
Status: closedreopened

This appears to have resurfaced:

--->  Activating xorg-libX11 @1.6.7_0+universal
Error: Failed to activate xorg-libX11: Image error: /opt/local/include/X11/Xlib.h is being used by the active tk port.  Please deactivate this port first, or use 'port -f activate xorg-libX11' to force the activation.
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_xorg-libX11/xorg-libX11/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.

port contents tk yields:

Port tk contains:
  /opt/local/bin/wish
  /opt/local/bin/wish8.6
  /opt/local/include/X11/X.h.mp_1551809211
  /opt/local/include/X11/Xatom.h.mp_1551809211
  /opt/local/include/X11/Xfuncproto.h.mp_1551809211
  /opt/local/include/X11/Xlib.h
  /opt/local/include/X11/Xutil.h
  /opt/local/include/X11/cursorfont.h
  /opt/local/include/X11/keysym.h.mp_1551809211
  /opt/local/include/X11/keysymdef.h.mp_1551809211
  /opt/local/include/X11/xbytes.h
  /opt/local/include/tk.h
  /opt/local/include/tkDecls.h
  /opt/local/include/tkIntXlibDecls.h
  /opt/local/include/tkMacOSX.h
  /opt/local/include/tkPlatDecls.h
  ...

comment:17 Changed 6 years ago by mf2k (Frank Schima)

Description: modified (diff)
Owner: changed from landonf@… to MarcusCalhoun-Lopez
Port: tk added
Status: reopenedassigned

comment:18 Changed 6 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:19 Changed 6 years ago by mf2k (Frank Schima)

What is the output of the following?

port installed xorg-libX11 tk

comment:20 in reply to:  16 Changed 6 years ago by chrstphrchvz (Christopher Chavez)

I believe there were changes made within the past several months that might have addressed this: https://github.com/macports/macports-ports/commit/a11b15ca0f (#56531) and https://github.com/macports/macports-ports/commit/d907eeeef7 .

On my system, tk @8.6.9_1+x11 does not install any X11 headers, and tk @8.6.9_1+quartz puts X11 headers under its own directory /opt/local/include/X11_tk/, so xorg-libX11 @1.6.7_0 seems to coexist fine with these.

comment:21 Changed 6 years ago by chrstphrchvz (Christopher Chavez)

Cc: chrstphrchvz added

comment:22 Changed 6 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: fixed
Status: assignedclosed

As noted by others, this problem should have been fixed for a few months now.
Since there has been no response to the request for further information, I will close this again.

Note: See TracTickets for help on using tickets.