Re: `@' sign in path not treated properly

2003-02-15 Thread Thomas Esser
   I've tried to compile current TeTex on Tru64Unix 5.1A with latest
 version of compilers from Compaq/HP, and I got the error below. Please, cc
 me in any replies.

The fix suggested by Albert Chin looks ok. Olaf Weber (web2c + kpathsea
maintainer) has decided to use % as separator instead as a short-term
solution and to get rid of that code in the long term.

 Please note, that configure forced usage CFLAGS -Olimit 1000 -std1 .
 -std1 makes cc into more strict mode, although it is sometimes better
 than standard -std. I'm not sure about limiting the optimization by
 default. I don't think it's a good idea and I as a user did not ask for
 it either.

That optimization limit was added to work around some compiler bugs
which produced incorrect code with higher optimization. That -std1
was needed, too at some point.

 sign. Maybe this is the same problem, I don't know, maybe it's enough to
 recreate configure with never auto* tools.

No, since automake is not used and the code in question is used in
some Makefile.in.

Thanks for your report.

Thomas



Re: `@' sign in path not treated properly

2003-02-13 Thread Albert Chin
On Mon, Feb 10, 2003 at 06:40:59PM +0100, Martin MOKREJ? wrote:
   I've tried to compile current TeTex on Tru64Unix 5.1A with latest
 version of compilers from Compaq/HP, and I got the error below. Please, cc
 me in any replies.
 
 [build errors snipped]
 
 The @sys is AFS kernel variable, which is not expanded by shell, by kernel
 itself. However, it broke configure. I know automake has been fixed
 recently to treat properly this variable (actually not to break on `@'
 sign. Maybe this is the same problem, I don't know, maybe it's enough to
 recreate configure with never auto* tools.

We also build with @sys (for a customer). Try the patch below.

-- 
albert chin ([EMAIL PROTECTED])

-- snip snip
--- texk/kpathsea/Makefile.in.orig  Mon Feb  3 08:24:08 2003
+++ texk/kpathsea/Makefile.in   Tue Feb  4 00:32:26 2003
@@ -123,8 +116,8 @@
sed -e 's/%.*//' -e 's/^[   ]*//' -e 's/[   ]*$$//' texmf.cnf \
| grep '^[  ]*[A-Z0-9_]*[   =]' \
| sed '/^$$/d' \
-   | sed 's/^\([^  =]*\)[  ]*=*[   ]*\(.*\)/#ifndef DEFAULT_\1@#define DEFAULT_\1 
\2@#endif/' \
-   | tr '@' '\012' \
+   | sed 's/^\([^  =]*\)[  ]*=*[   ]*\(.*\)/#ifndef DEFAULT_\1~#define DEFAULT_\1 
+\2~#endif/' \
+   | tr '~' '\012' \
| sed -e 's%\$$TEXMFMAIN%$(texmf)%g' \
  -e 's%\$$TEXMF%$(texmf)%g' \
  -e 's%\$$VARTEXFONTS%$(vartexfonts)%g' \



`@' sign in path not treated properly

2003-02-10 Thread Martin MOKREJ
Hi,
  I've tried to compile current TeTex on Tru64Unix 5.1A with latest
version of compilers from Compaq/HP, and I got the error below. Please, cc
me in any replies.

cc tex-file.c -DHAVE_CONFIG_H -I. -I. -I.. -I./.. -I/software/@sys/usr/include 
-I/usr/local/include -I/usr/local/openssl/include -O2 -arch ev56 -Olimit 1000 -std1 -c 
-o STATIC/tex-file.o
cc: Error: ../kpathsea/paths.h, line 4: Missing ;. (nosemi)
sys/usr/share/texmf
---^
cc: Error: ../kpathsea/paths.h, line 4: An unexpected newline character is present in 
a string literal. (nlstring)
sys/usr/share/texmf
---^
cc: Error: ../kpathsea/paths.h, line 8: An unexpected newline character is present in 
a string literal. (nlstring)
sys/usr/share/texmf-local
-^
cc: Error: ../kpathsea/paths.h, line 114: An unexpected newline character is present 
in a string literal. (nlstring)
sys/usr/etc
---^
cc: Error: ../kpathsea/paths.h, line 118: An unexpected newline character is present 
in a string literal. (nlstring)
sys/usr/etc
---^
cc: Error: ../kpathsea/paths.h, line 162: An unexpected newline character is present 
in a string literal. (nlstring)
sys/usr/share/texmf/web2c
-^
cc: Error: ../kpathsea/str-llist.h, line 40: Invalid declarator. (declarator)
};
^
cc: Error: ../kpathsea/paths.h, line 160: An unexpected newline character is present 
in a string literal. (nlstring)
#define DEFAULT_TEXMFCNF 
{$SELFAUTOLOC,$SELFAUTODIR,$SELFAUTOPARENT}{,{/share,}/texmf{-local,}/web2c}:$TETEXDIR:/software/
-^
make[2]: *** [tex-file.lo] Error 1
make[2]: Leaving directory `/usr/local/scratch/tetex/tetex-src-2.0/texk/kpathsea'


Please note, that configure forced usage CFLAGS -Olimit 1000 -std1 .
-std1 makes cc into more strict mode, although it is sometimes better
than standard -std. I'm not sure about limiting the optimization by
default. I don't think it's a good idea and I as a user did not ask for
it either.

The reason for my problems is, that I've configured with

  --prefix=/software/@sys/usr

The @sys is AFS kernel variable, which is not expanded by shell, by kernel
itself. However, it broke configure. I know automake has been fixed
recently to treat properly this variable (actually not to break on `@'
sign. Maybe this is the same problem, I don't know, maybe it's enough to
recreate configure with never auto* tools.

The generated paths.h looks like:

  1 /* paths.h: Generated from texmf.cnf. */
  2 #ifndef DEFAULT_TEXMFMAIN
  3 #define DEFAULT_TEXMFMAIN /software/
  4 sys/usr/share/texmf
  5 #endif
  6 #ifndef DEFAULT_TEXMFLOCAL
  7 #define DEFAULT_TEXMFLOCAL /software/
  8 sys/usr/share/texmf-local
  9 #endif
 10 #ifndef DEFAULT_HOMETEXMF
 11 #define DEFAULT_HOMETEXMF $HOME/texmf
 12 #endif
 13 #ifndef DEFAULT_TEXMF
 14 #define DEFAULT_TEXMF 
{$HOMETEXMF,!!/software/@sys/usr/share/texmfLOCAL,!!/software/@sys/usr/share/texmf}
 15 #endif
 16 #ifndef DEFAULT_SYSTEXMF
 17 #define DEFAULT_SYSTEXMF /software/@sys/usr/share/texmf
 18 #endif
 19 #ifndef DEFAULT_VARTEXFONTS
 20 #define DEFAULT_VARTEXFONTS /var/tmp/texfonts
 21 #endif


-- 
Martin Mokrejs [EMAIL PROTECTED], [EMAIL PROTECTED]
PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs
MIPS / Institute for Bioinformatics http://mips.gsf.de
GSF - National Research Center for Environment and Health
Ingolstaedter Landstrasse 1, D-85764 Neuherberg, Germany
tel.: +49-89-3187 3683 , fax:+49-89-3187 3585