Opened 4 years ago

Last modified 17 months ago

#40862 new defect

tightvnc @1.3.10: fatal error: ' X11 .rules' file not found

Reported by: dylanryan@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: mavericks yosemite elcapitan Cc: sck@…, bukovskiy.k@…, brian.wix@…, cooljeanius (Eric Gallager), stannous@…, nathanielbailey@…, ryandesign (Ryan Schmidt), yangtj207@…, diekhans (Mark Diekhans), richardfalley@…, MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), kristian.peters@…, jschewe@…, Dmole (Tim), barron@…, jcezanna56@…, hgonzale (Humberto Gonzalez), rkaartikeyan@…, myb121@…
Port: tightvnc

Description

Rebuilding port tree after installing mavericks.

tightvnc is failing to build very early on. Build log included. Relevant part appears to be:

--->  Configuring tightvnc
mv -f Makefile Makefile.bak
imake -DUseInstalled -I/opt/local/lib/X11/config
In file included from Imakefile.c:15:
/opt/local/lib/X11/config/Imake.tmpl:2144:10: fatal error: ' X11 .rules' file not found
#include ProjectRulesFile
         ^
/opt/local/lib/X11/config/Imake.tmpl:2142:35: note: expanded from macro 'ProjectRulesFile'
# define ProjectRulesFile       Concat3(<,TopLevelProject,.rules>)
                                        ^
/opt/local/lib/X11/config/Imake.rules:256:23: note: expanded from macro 'Concat3'
#define Concat3(a,b,c)a/**/b/**/c
                      ^
1 error generated.
imake: Exit code 1.
  Stop.

Attachments (4)

main.log (47.6 KB) - added by dylanryan@… 4 years ago.
main.log.7z (15.1 KB) - added by Dmole (Tim) 3 years ago.
patch-patch-Xvnc.diff.diff (339 bytes) - added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) 21 months ago.
Portfile.diff (914 bytes) - added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) 21 months ago.

Download all attachments as: .zip

Change History (40)

Changed 4 years ago by dylanryan@…

comment:1 Changed 4 years ago by sck@…

  • Cc sck@… added

Cc Me!

comment:2 Changed 4 years ago by ryandesign (Ryan Schmidt)

  • Cc bukovskiy.k@… added
  • Keywords mavericks added

Has duplicate #41222.

comment:3 Changed 4 years ago by brian.wix@…

  • Cc brian.wix@… added

Cc Me!

comment:4 Changed 4 years ago by cooljeanius (Eric Gallager)

  • Cc egall@… added

Cc Me!

comment:5 Changed 4 years ago by stannous@…

  • Cc stannous@… added

Cc Me!

comment:6 Changed 4 years ago by chihangli@…

  • Cc chihangli@… added

Cc Me!

comment:7 Changed 4 years ago by ryandesign (Ryan Schmidt)

  • Summary changed from tightvnc fails to install on Mavericks to tightvnc @1.3.10: fatal error: ' X11 .rules' file not found

comment:8 Changed 4 years ago by mf2k (Frank Schima)

  • Cc macsforever2000@… added

Cc Me!

comment:9 Changed 4 years ago by chihangli@…

  • Cc chihangli@… removed

Cc Me!

comment:10 follow-up: Changed 4 years ago by nathanielbailey@…

OSX Mavericks no longer supports X11 -- you need Xquartz

Apple Documentation http://support.apple.com/kb/ht5293

Main Website: http://xquartz.macosforge.org/landing/

-=-=-

tightvnc now runs for me using my old build of it. However I have other new issues that could just be related to not all my ports being updated.

port outdated:
tightvnc                       1.3.10_1 < 1.3.10_1  (platform darwin 11 != darwin 13)
Last edited 4 years ago by ryandesign (Ryan Schmidt) (previous) (diff)

comment:11 in reply to: ↑ 10 ; follow-up: Changed 4 years ago by dylanryan@…

I've had xquartz installed (and kept up to date) for a long time (... Lion? Earlier?). No help for me. Tried reinstalling it for kicks. No luck.

I suspect the problem is that it is looking for " X11 .rules" (note the leading space, and space before the period!). tightvnc comes with a "X11.rules" (no spaces), but it is looking for it with a space. Based on the macro noted in my OP, my guess is that it is expecting the comments in Concat3 to be replaced with the empty string, but instead they are being replaced with whitespace.

Last edited 4 years ago by dylanryan@… (previous) (diff)

comment:12 Changed 4 years ago by nathanielbailey@…

Yeah.. I'm getting a different issue all together when I upgrade so I will be opening another ticket. Sorry I couldn't help.

comment:13 in reply to: ↑ 11 Changed 4 years ago by ryandesign (Ryan Schmidt)

  • Cc nathanielbailey@… ryandesign@… added

Replying to nathanielbailey@…:

OSX Mavericks no longer supports X11 -- you need Xquartz

That has nothing to do with this ticket.

Replying to dylanryan@…:

I suspect the problem is that it is looking for " X11 .rules" (note the leading space, and space before the period!). tightvnc comes with a "X11.rules" (no spaces), but it is looking for it with a space. Based on the macro noted in my OP, my guess is that it is expecting the comments in Concat3 to be replaced with the empty string, but instead they are being replaced with whitespace.

Yes, the problem is that clang's cpp (which is the only cpp available as of Xcode 5) does not handle this antique build system the way gcc's cpp did. We need to either fix the build system (in all the (thankfully few) ports still using imake) to work with clang's cpp or instruct them not to use clang's cpp.

Replying to nathanielbailey@…:

Yeah.. I'm getting a different issue all together when I upgrade so I will be opening another ticket. Sorry I couldn't help.

Your ticket #41830 shows exactly the same error as this ticket.

comment:14 Changed 4 years ago by nathanielbailey@…

Well -- thanks for getting back to us. I thought X11 and compiler issues were two different issues so I was just being due diligent and trying to post what I had. Now "looking" at his updated log file (which I forgot to do) -- your right it does show the same 'xmkmf' error I was getting.

I assume updating to clang would be easier considering that's what apple is moving forward to and you don't want to start using deprecated stuff hehe.

-=-=-

I use this for work and "thankfully" tighvnc still works for me, it just won't update. I hope this gets updated asap so I can keep everything up to date and working.

This is the only port I have installed that won't update, and of course its the one I use like 50 times a day.

comment:15 Changed 4 years ago by stannous@…

Not a real workaround for tightvnc lovers, but will keep you going without resorting to "chicken": just install vnc. I tried tigervnc but my mouse didn't seem to work. Tried real vnc (port install vnc) and that worked fine. Didn't have to change any of my config.

comment:16 follow-up: Changed 4 years ago by nathanielbailey@…

The "main" reason I need tightvnc is because of the '-via' option. This creates SSH tunneling and vncviewer via tighvnc can be run via command line script and not from an SSH window. I work on multiple servers a day and having a script and using the -via option is pretty much the only way to go without running a linux box in order to run tightvnc.

I found this project: http://www.karlrunge.com/x11vnc/ssvnc.html

But I'm not sure if this works. I don't want to ruin my current install of tighvnc to try something that may not work and not be able to get work done.

Any suggestions?

comment:17 in reply to: ↑ 16 Changed 4 years ago by ryandesign (Ryan Schmidt)

Replying to nathanielbailey@…:

The "main" reason I need tightvnc is because of the '-via' option. This creates SSH tunneling and vncviewer via tighvnc can be run via command line script and not from an SSH window. I work on multiple servers a day and having a script and using the -via option is pretty much the only way to go without running a linux box in order to run tightvnc.

I found this project: http://www.karlrunge.com/x11vnc/ssvnc.html

But I'm not sure if this works.

Well you could try it out. I was not familiar with ssvnc but from what I can tell it is a patched version of tightvnc and wrapper scripts distributed as a precompiled binary that you can put on a USB stick or other convenient location. As such, it should not affect anything you do with MacPorts.

They also provide a source distribution from which we could attempt to make a port in MacPorts. However according to the readme it still uses imake so it would also suffer from the problem reported in this ticket.

I don't want to ruin my current install of tighvnc to try something that may not work and not be able to get work done.

As long as you don't run "sudo port uninstall tightvnc", your old tightvnc installation should continue to exist.

Any suggestions?

We need to either fix this port and other imake-using ports to work with clang's cpp, or make them depend on and use e.g. gcc-4.8's cpp instead.

comment:18 Changed 4 years ago by yangtj207@…

  • Cc yangtj207@… added

Cc Me!

comment:19 Changed 4 years ago by diekhans (Mark Diekhans)

  • Cc markd@… added

Cc Me!

comment:20 Changed 4 years ago by wf@…

comment:21 Changed 4 years ago by cooljeanius (Eric Gallager)

#42547 has a proposed fix for using imake with clang, not sure if that fixes this, as well (but I guess that it should)...

Last edited 4 years ago by cooljeanius (Eric Gallager) (previous) (diff)

comment:22 Changed 4 years ago by mf2k (Frank Schima)

  • Cc macsforever2000@… removed

comment:23 Changed 4 years ago by mf2k (Frank Schima)

  • Cc richardfalley@… added

Has duplicate #43908.

comment:24 Changed 3 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

  • Cc mcalhoun@… added

Cc Me!

comment:25 Changed 3 years ago by larryv (Lawrence Velázquez)

  • Cc kristian.peters@… added

Has duplicate #45487.

comment:26 Changed 3 years ago by mf2k (Frank Schima)

  • Cc jschewe@… added

Has duplicate #46282.

comment:27 Changed 3 years ago by ryandesign (Ryan Schmidt)

Although we fixed the problem with the imake port, tightvnc is special in that it includes its own private copy of imake which has not been fixed yet. Duplicate #46282 has more information.

comment:28 Changed 3 years ago by Dmole (Tim)

  • Cc elatllat@… added

Cc Me!

Changed 3 years ago by Dmole (Tim)

comment:31 Changed 3 years ago by Dmole (Tim)

Error: org.macports.build for port tightvnc returned: command execution failed
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port tightvnc failed

but no error in the log...

comment:32 Changed 3 years ago by mf2k (Frank Schima)

  • Cc barron@… added

Cc reporter of duplicate #46726.

comment:33 Changed 2 years ago by ryandesign (Ryan Schmidt)

  • Cc jcezanna56@… added
  • Keywords yosemite elcapitan added

Has duplicate #48248.

comment:34 Changed 2 years ago by hgonzale (Humberto Gonzalez)

  • Cc hgonzale@… added

Cc Me!

comment:35 Changed 22 months ago by ryandesign (Ryan Schmidt)

  • Cc rkaartikeyan@… added

Has duplicates #50714, #50715.

comment:36 follow-up: Changed 21 months ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

I was able to get past the cpp problems with the attached patch files, but tightvnc still fails to compile.
Others seem to have run into similar problems.

Changed 21 months ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Changed 21 months ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

comment:37 in reply to: ↑ 36 Changed 17 months ago by myb121@…

Replying to mcalhoun@…:

I was able to get past the cpp problems with the attached patch files, but tightvnc still fails to compile.
Others seem to have run into similar problems.

Were you able to fix the problem with the patch? If so could you explain how to apply patch?

comment:38 Changed 17 months ago by myb121@…

  • Cc myb121@… added

Cc Me!

Note: See TracTickets for help on using tickets.