Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

transfig failed to build on 10.8.2 #18440

Closed
johnbent opened this Issue · 9 comments

3 participants

@johnbent

I'm pretty sure the problem is that xmkmf is no longer part of imake and transfig is trying to use it. Here's the gist:

https://gist.github.com/johnbent/5147288

Thanks,

John

@johnbent

A bit more info.

This is clearly related to #15687

So I tried to reinstall imake both with and without the "--use-llvm-gcc-4.2" option and in both cases they make this symlink:

/usr/local/bin/xmkmf@ -> ../Cellar/imake/1.0.5/bin/xmkmf

And /usr/local/Cellar/imake/1.0.5/bin/xmkmf is an empty file.

@Yann-R

Hi @johnbent

As explained on #15687 , to get a correctly installed and working 'imake' (with no 0 bytes binaries in /Cellar/imake/1.0.5/bin from dir brew --prefix ) just type:

$ brew install --env=std imake

(Don't know why a standard brew install imake builds a few empty binaries and others that are correct).
Nevertheless, unlike my previous post on #15687 , I can't get transfig + xfig installed now on a fresh homebrew installation with the 6-step solution that worked before.
Does it still work for you?

What I get is a failure during the next step, installing transfig:

$ brew install https://raw.github.com/bender007/homebrew/xfig_mountainlion/Library/Formula/transfig.rb
==> Downloading http://downloads.sourceforge.net/mcj/transfig.3.2.5d.tar.gz
==> Patching
patching file fig2dev/dev/readpng.c
==> env
==> chmod u+rw fig2dev/test.ps
==> chmod -R u+rw fig2dev/dev/*
==> make clean
==> xmkmf
#define Concat3(a,b,c)a/**/b/**/c
                      ^
1 warning and 1 error generated.
imake: Exit code 1.

Using gcc like this give exactly the same error:

$ brew install https://raw.github.com/Homebrew/homebrew-dupes/master/apple-gcc42.rb
$ brew install --use-gcc https://raw.github.com/bender007/homebrew/xfig_mountainlion/Library/Formula/transfig.rb

And using llvm give another error:

$ brew install --use-llvm https://raw.github.com/bender007/homebrew/xfig_mountainlion/Library/Formula/transfig.rb
[...]
==> xmkmf
==> make Makefiles
==> make CC=llvm
making all in ./fig2dev...
make[1]: *** No rule to make target `all'.  Stop.
making all in ./transfig...
make[1]: *** No rule to make target `all'.  Stop.
make: *** [all] Error 2

Don't know how to make this formula for transfig work back again...

@Yann-R

@bender007 maybe have you any idea to help us using your adapted formula for transfig from your git-hub repository in the xfig_mountainlion branch?

@jacknagel
Owner

imake issues should be resolved in core, closing.

@jacknagel jacknagel closed this
@johnbent

I'm afraid I'm still seeing an error trying to install transfig. But perhaps that's not exactly related to this issue:

brew install --use-gcc https://raw.github.com/bender007/homebrew/xfig_mountainlion/Library/Formula/transfig.rb
######################################################################## 100.0%
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
==> Downloading http://downloads.sourceforge.net/mcj/transfig.3.2.5d.tar.gz
Already downloaded: /Library/Caches/Homebrew/transfig-3.2.5d.tar.gz
==> Patching
patching file fig2dev/dev/readpng.c
==> env
==> chmod u+rw fig2dev/test.ps
==> chmod -R u+rw fig2dev/dev/*
==> make clean
==> xmkmf
Failed to execute: xmkmf

@Yann-R

Yes, the problem for transfig is still here.
As I wrote above, the problem for transfig formula was twofold:

1) A problem while building imake formula, that did not fail but resulted in 3 empty binaries among 9.
The current solution is not perfect but there is a fix now: #18841
@johnbent I am quite sure that your error "Failed to execute: xmkmf" is a result that you still have a "broken" installed imake package, with an empty xmkmf binary.
=> Try brew reinstall imake to get this new fix and a working xmkmf... But now you should fall in the next step ;-)

2) @jacknagel thank you for integrating the quick fix #18841 in imake formula.
Nevertheless, as detailed in my message above #18440 (comment) ,
=> even using a working xmkmf, it seems to be impossible to finish the build of transfig with any of the three C-compilers whereas it worked (for me) a few months ago (see #15687 )...

So, due to failing step 2, I'm afraid this ticket about transfig cannot be closed consequently to closing imake problem, please let this ticket open to give a chance to get a solution...

@johnbent

@Yann-R Thank you so much for your reply. But unfortunately it didn't work for me. In addition to doing the brew reinstall, I also tried brew uninstall, checked that the xmkmf was removed, then the brew install, and in both cases, the xmkmf binary was empty:

>>brew reinstall imake
Uninstalling /usr/local/Cellar/imake/1.0.5...
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
==> Downloading http://xorg.freedesktop.org/releases/individual/util/imake-1.0.5
######################################################################## 100.0%
==> Patching
patching file configure
==> ./configure --prefix=/usr/local/Cellar/imake/1.0.5
==> make install
==> Downloading http://xorg.freedesktop.org/releases/individual/util/xorg-cf-fil
######################################################################## 100.0%
==> ./configure --with-config-dir=/usr/local/Cellar/imake/1.0.5/lib/X11/config
==> make install
/usr/local/Cellar/imake/1.0.5: 143 files, 1.5M, built in 14 seconds

>>rehash

>>brew install transfig
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
==> Downloading http://downloads.sourceforge.net/mcj/transfig.3.2.5d.tar.gz
Already downloaded: /Library/Caches/Homebrew/transfig-3.2.5d.tar.gz
==> Patching
patching file fig2dev/dev/readpng.c
==> env
==> chmod u+rw fig2dev/test.ps
==> chmod -R u+rw fig2dev/dev/*
==> make clean
==> xmkmf
Failed to execute: xmkmf

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting

>>locate xmkmf
/usr/local/Cellar/imake/1.0.5/bin/xmkmf
/usr/local/Cellar/imake/1.0.5/share/man/man1/xmkmf.1
/usr/local/bin/xmkmf
/usr/local/share/man/man1/xmkmf.1

>>ls -l /usr/local/bin/xmkmf
lrwxr-xr-x  1 bentj  admin  31 May 20 19:23 /usr/local/bin/xmkmf@ -> ../Cellar/imake/1.0.5/bin/xmkmf     

>>ls -l /usr/local/Cellar/imake/1.0.5/bin/xmkmf 
-r--r--r--  1 bentj  admin  0 May 20 19:23 /usr/local/Cellar/imake/1.0.5/bin/xmkmf
@Yann-R

@johnbent reading the first and the last lines of your last post:
brew reinstall imake
...
-r--r--r-- 1 bentj admin 0 May 20 19:23 /usr/local/Cellar/imake/1.0.5/bin/xmkmf
I can only admit that your imake installation has failed again, in spite of the recent fix (@jacknagel), since the resulting binary is empty (0 bytes) for xmkmf.

Due to this failure, it's quite normal that installing transfig is also failing, but I can't say why reinstalling imake doesn't result in a correctly working xmkmf binary for you.

Then your situation for installing transfig is worse than mine ;-) I can have imake correctly installed, but not transfig.
Both are failing for you...
I let the gurus tell us why...
(maybe is it that the quick fix for imake, see #18841, assuming that compiling in the user env instead of the super env is the solution is too weak... and some user env, like yours, react as super env... a better fix for imake formula would then be to have imake formula work with super env...)

@johnbent

:(

sh-3.2# port install transfig
---> Computing dependencies for transfig
---> Dependencies to be installed: libpng zlib netpbm jasper jpeg jbigkit libxml2 libiconv xz gettext expat ncurses tiff xpm xorg-libXext xorg-libX11 xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-libxcb python27 bzip2 db46 db_select libedit openssl python_select sqlite3 xorg-libpthread-stubs xorg-xcb-proto xorg-xextproto xorg-libXt xorg-libsm xorg-libice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.