[Nix-dev] Compilation of TexLive does not find Xm/Xm.h

Michael Raskin 7c6f434c at mail.ru
Thu Jan 8 17:36:49 CET 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Valentin David wrote:
> I am trying to add something in the stratego buildfarm. But I have for
> the moment a failure locally. I have a build dependency to
> pkgs.texlive (tetex is not good for this package). But when it tries
> to compile texlive, it fails finding Xm/Xm.h when building xdvi. The
> only thing I did locally on nixpkgs was to update ed to 1.1 (which
> compiled successfully, 0.9 is removed from mirrors), but I do not
> think it had impact.

Ed is updated in NixPkgs for quite some time already. So, what version
of NixPkgs do you have? Did you try SVN head?

> [...]
> make[3]: Entering directory
> `/tmp/nix-build-1fb6jjk8yvsw5r2w5g6xxsi6j0n5v2j8-texlive-core-2007.drv-0/texlive-bin-2007.dfsg.1/build/source/texk/xdvik/gui'
> building help-window.o
> gcc -DHAVE_CONFIG_H  -I. -I. -I../.. -I../.. -W -Wall -Wunused
> -I.. -I./.. -I/usr/include  -DPS_GS  -DXSERVER_INFO  -g -O2  -c
> help-window.c -o help-window.o
> In file included from help-window.c:29:
> ../xdvi.h:776:19: error: Xm/Xm.h: No such file or directory
> In file included from help-window.c:29:
> ../xdvi.h:777: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'G_charset'
> help-window.c:38:22: error: Xm/Form.h: No such file or directory
> help-window.c:39:23: error: Xm/Frame.h: No such file or directory
> help-window.c:40:22: error: Xm/Text.h: No such file or directory
> help-window.c:41:27: error: Xm/Protocols.h: No such file or directory
> [...]

What OS and CPU architecture do you use? I use i686-linux (NixOS), I
have TeXLive installed and xdvi working, but I have no dependencies from
TeXLive on Xm/Xm.h. Xm/Xm.h is present in lesstif. Try adding it as a
dependency for TeXLive (and, correspondingly, as a buildInput inside the
expression). It should fix your immediate compilation problem.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQEcBAEBAgAGBQJJZiugAAoJEE6tnN0aWvw3J1IH/jlaYCTnuaYkcvsWTflsqf8z
F3DffV/ncjD3f1WaqNfye67CgC11Xnzh2PvjG039nQwF+qrD7ywO6nBFaTsvzrv+
bPylwRzym8o+OPcDyj5Pvmxo85riiS2ug4tHPQlkIpq7xCPop3o8Nrd+KNTIOUJb
dZFKlTWkECcAvCODPHPaLB92MvDoYEd1sfVStGt2vLs5WKvncD1kRGpfXRPNAuFU
+MhkDToMbFSj2AaI7sOaC6rMBFVVQmT4O+rJgLsyPPNRCiV0WDCtbfKiPWKca4PV
N7/IfFOsEy/aFFIY+T9/I0VE+YXGC60awXZiJgdQ311FdKPCxPHLUMZQNbEzbyI=
=kirE
-----END PGP SIGNATURE-----



More information about the nix-dev mailing list