This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
About makeinfo under WIN32
- To: egcs at egcs dot cygnus dot com
- Subject: About makeinfo under WIN32
- From: Christian Jönsson FOA 72 <chj at lin dot foa dot se>
- Date: Mon, 15 Mar 1999 08:46:26 +0100
Hello all!
Perhaps this is not the correct place to send comments like this, but I do it
anyway and if someone thinks I shouldn't, please let me know. I'm not sure if
the makeinfo part is built under win32 environments. If it isn't, and we would
like to see it, perhaps someone could look at the work available with xemacs
for NT.
OK, I should perhaps take it on myself, but you know... Anyway, I wanted to
mention this possibility. Hopefully it's usable and someone's got the time...
This was also fed, by the original e-mailer, to the texinfo-bugs mail list.
Is the egcs dev tree following the texinfo/makeinfo development? Are there
``snapshots'' available of texinfo/makeinfo? If so, to what ``audience''?
/ChJ
- To: Texinfo Bugs <bug-texinfo at gnu dot org>
- Subject: [PATCH] makeinfo/makeinfo.c (for WIN32) and po/ Problem
- From: Adrian Aichner <aichner at ecf dot teradyne dot com>
- Date: 13 Mar 1999 22:31:03 +0100
- Cc: XEmacs NT List <xemacs-nt at xemacs dot org>
Hello Texinfo Developers!
Thanks for providing this great package. I need it to build XEmacs
packages (specifically info files from texi files) from sources.
Let me report what I found while I tried to build 3.12 from sources
under Windows NT.
First, here is a patch to make makeinfo/makeinfo.c compile with
-DWIN32:
1999-03-13 Adrian Aichner <aichner@ecf.teradyne.com>
* makeinfo\makeinfo.c (find_and_load): Declare and initialize n
(for WIN32).
(full_pathname): Move #endif /* not WIN32 */ to correct place.
cd d:\export\home\tmp\texinfo-3.12-good\makeinfo\
diff -u makeinfo.c.orig makeinfo.c
Compilation started at Sat Mar 13 20:55:49 1999
--- makeinfo.c.orig Wed Feb 25 21:36:28 1998
+++ makeinfo.c Fri Mar 12 01:19:29 1999
@@ -1236,7 +1236,7 @@
{
struct stat fileinfo;
long file_size;
- int file = -1, count = 0;
+ int file = -1, count = 0, n = 0;
char *fullpath, *result, *get_file_info_in_path ();
result = fullpath = (char *)NULL;
@@ -1606,8 +1606,8 @@
strcpy (result, user_entry->pw_dir);
strcat (result, &filename[i]);
}
- }
#endif /* not WIN32 */
+ }
return (result);
}
Compilation exited abnormally with code 1 at Sat Mar 13 20:55:49
Furthermore, the Makefile in po or the directory content seem to be
incorrect as you can see below from my bash session log.
In po, make first removes texinfo.pot, which is present in the
distribution.
Then it attempts to move texinfo.po (which does not come with the
distribution!) to texinfo.pot.
rm -f ./texinfo.pot
mv texinfo.po ./texinfo.pot
Is this because I don't have autoconf?
Best regards and thanks!
Adrian
bash.exe-2.02$ CONFIG_SHELL=bash
bash.exe-2.02$ export CONFIG_SHELL
bash.exe-2.02$ bash configure
creating cache ./config.cache
checking for a BSD compatible install... //e/cygnus/cygwin-b20/H-i586-cygwin32/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... configure: ac_maketemp=""make"": command not found
no
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
<lines deleted by Adrian>
creating ./config.status
creating Makefile
creating doc/Makefile
creating info/Makefile
creating intl/Makefile
creating lib/Makefile
creating makeinfo/Makefile
creating po/Makefile.in
creating util/Makefile
creating config.h
linking ./intl/libgettext.h to intl/libintl.h
bash.exe-2.02$ make --unix -e SHELL=bash CFLAGS="-g -O2 -DWIN32"
make all-recursive
Making all in intl
gcc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DGNULOCALEDIR=\"/usr/local/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/share/locale:.\" -DHAVE_CONFIG_H -I.. -I. -I../intl -I../lib -g -O2 -DWIN32 intl-compat.c
gcc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DGNULOCALEDIR=\"/usr/local/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/share/locale:.\" -DHAVE_CONFIG_H -I.. -I. -I../intl -I../lib -g -O2 -DWIN32 bindtextdom.c
gcc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DGNULOCALEDIR=\"/usr/local/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/share/locale:.\" -DHAVE_CONFIG_H -I.. -I. -I../intl -I../lib -g -O2 -DWIN32 dcgettext.c
gcc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DGNULOCALEDIR=\"/usr/local/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/share/locale:.\" -DHAVE_CONFIG_H -I.. -I. -I../intl -I../lib -g -O2 -DWIN32 dgettext.c
gcc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DGNULOCALEDIR=\"/usr/local/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/share/locale:.\" -DHAVE_CONFIG_H -I.. -I. -I../intl -I../lib -g -O2 -DWIN32 gettext.c
gcc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DGNULOCALEDIR=\"/usr/local/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/share/locale:.\" -DHAVE_CONFIG_H -I.. -I. -I../intl -I../lib -g -O2 -DWIN32 finddomain.c
gcc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DGNULOCALEDIR=\"/usr/local/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/share/locale:.\" -DHAVE_CONFIG_H -I.. -I. -I../intl -I../lib -g -O2 -DWIN32 loadmsgcat.c
gcc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DGNULOCALEDIR=\"/usr/local/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/share/locale:.\" -DHAVE_CONFIG_H -I.. -I. -I../intl -I../lib -g -O2 -DWIN32 localealias.c
gcc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DGNULOCALEDIR=\"/usr/local/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/share/locale:.\" -DHAVE_CONFIG_H -I.. -I. -I../intl -I../lib -g -O2 -DWIN32 textdomain.c
gcc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DGNULOCALEDIR=\"/usr/local/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/share/locale:.\" -DHAVE_CONFIG_H -I.. -I. -I../intl -I../lib -g -O2 -DWIN32 l10nflist.c
gcc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DGNULOCALEDIR=\"/usr/local/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/share/locale:.\" -DHAVE_CONFIG_H -I.. -I. -I../intl -I../lib -g -O2 -DWIN32 explodename.c
rm -f libintl.a
ar cru libintl.a intl-compat.o bindtextdom.o dcgettext.o dgettext.o gettext.o finddomain.o loadmsgcat.o localealias.o textdomain.o l10nflist.o explodename.o
ranlib libintl.a
Making all in lib
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -g -O2 -DWIN32 -c getopt.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -g -O2 -DWIN32 -c getopt1.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -g -O2 -DWIN32 -c xmalloc.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -g -O2 -DWIN32 -c xstrdup.c
rm -f libtxi.a
ar cru libtxi.a getopt.o getopt1.o xmalloc.o xstrdup.o
ranlib libtxi.a
Making all in info
gcc -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -DWIN32 -c dir.c
gcc -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -DWIN32 -c display.c
gcc -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -DWIN32 -c makedoc.c
gcc -g -O2 -DWIN32 -o makedoc makedoc.o ../lib/libtxi.a -ltermcap ../intl/libintl.a
./makedoc ./session.c ./echo-area.c ./infodoc.c ./m-x.c ./indices.c ./nodemenu.c ./footnotes.c ./variables.c
gcc -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -DWIN32 -c doc.c
gcc -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -DWIN32 -c dribble.c
gcc -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -DWIN32 -c echo-area.c
gcc -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -DWIN32 -c filesys.c
gcc -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -DWIN32 -c footnotes.c
gcc -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -DWIN32 -c gc.c
gcc -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -DWIN32 -c indices.c
gcc -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -DWIN32 -c info-utils.c
gcc -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -DWIN32 -c info.c
gcc -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -DWIN32 -c infodoc.c
gcc -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -DWIN32 -c infomap.c
gcc -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -DWIN32 -c m-x.c
gcc -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -DWIN32 -c man.c
gcc -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -DWIN32 -c nodemenu.c
gcc -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -DWIN32 -c nodes.c
gcc -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -DWIN32 -c search.c
gcc -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -DWIN32 -c session.c
gcc -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -DWIN32 -c signals.c
gcc -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -DWIN32 -c terminal.c
gcc -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -DWIN32 -c tilde.c
gcc -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -DWIN32 -c variables.c
gcc -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -DWIN32 -c window.c
gcc -g -O2 -DWIN32 -o ginfo dir.o display.o doc.o dribble.o echo-area.o filesys.o footnotes.o gc.o indices.o info-utils.o info.o infodoc.o infomap.o m-x.o man.o nodemenu.o nodes.o search.o session.o signals.o terminal.o tilde.o variables.o window.o ../lib/libtxi.a -ltermcap ../intl/libintl.a
Making all in makeinfo
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../intl -DLOCALEDIR=\"/usr/local/share/locale\" -g -O2 -DWIN32 -c makeinfo.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../intl -DLOCALEDIR=\"/usr/local/share/locale\" -g -O2 -DWIN32 -c multi.c
gcc -g -O2 -DWIN32 -o makeinfo makeinfo.o multi.o ../lib/libtxi.a ../intl/libintl.a
Making all in po
PATH=../src:$PATH : --default-domain=texinfo --directory=.. \
--add-comments --keyword=_ --keyword=N_ \
--files-from=./POTFILES.in
rm -f ./texinfo.pot
mv texinfo.po ./texinfo.pot
mv: texinfo.po: No such file or directory
make[2]: *** [texinfo.pot] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2
bash.exe-2.02$
--
Adrian Aichner Teradyne GmbH, European Design Center
Integra Test Division Telephone +49/89/41861(0)-208
Dingolfinger Strasse 2 Fax +49/89/41861-217 (What is a Fax?)
D-81673 MUENCHEN E-mail adrian.aichner@teradyne.com