|
From: Mojca M. <moj...@gm...> - 2006-11-12 13:51:42
|
Hello,
Despite of so many suggestions to use MinGW (I tried it, compiled
gnuplot successfully, but still had many other problems), I'm still
using MS Visual Studio. When I try to compile, I get a few hundred
lines of warnings which "make no sense" (I only don't see the serios
warnings then):
Here are some examples:
# 4113 - ..\\term\metapost.trm(973) : warning C4113: 'void (__cdecl
*)()' differs in parameter lists from 'void (__cdecl *)(void)'
# 4996 - term.c(1455) : warning C4996: 'strcpy' was declared deprecated
# Message: 'This function or variable may be unsafe. Consider using
strcpy_s instead. To disable deprecation, use
_CRT_SECURE_NO_DEPRECATE. See online help for details.'
# term.c(369) : warning C4996: 'stricmp' was declared deprecated
# C:\Program Files\Microsoft Visual Studio
8\VC\INCLUDE\string.h(213) : see declaration of 'stricmp'
# Message: 'The POSIX name for this item is deprecated.
Instead, use the ISO C++ conformant name: _stricmp. See online help
for details.'
Adding
/wd4113 /wd4996 /D_CRT_SECURE_NO_DEPRECATE
(wd means ignore the warning) succesfully removes those errorrs.
I know that noone of you is using that, but it would really help if
someone who wrote that makefile or at least contributed to it could
take a look.
The next problem is with
CBASEFLAGS =3D /G5 /GX /GR /MD /O2 /nologo
# cl : Command line warning D9035 : option 'GX' has been deprecated
and will be removed in a future release
# cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
# cl : Command line warning D9002 : ignoring unknown option '/G5'
I replaced /GX with EHsc (althoug I have no idea what it means) and deleted=
/G5.
There are many other problems, but at least the first three options to
supress false alarms in warnings would already help a lot.
OK, so let's move to linux/unix then. I have no idea what I'm dong
wrong, but I only ever managed to compile gnuplot on a single linux
box. I tried on 4 other systems (debian, fedora, suse - old version
worked, after tring to compile with wxt it failed, Mac OS X) and never
managed to get any further.
I'm currently trying to compile on Mac OS X. autoconf results in the follow=
ing:
configure.in:1: error: possibly undefined macro: dnl
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.in:102: error: possibly undefined macro: AC_MSG_RESULT
configure.in:253: error: possibly undefined macro: AC_MSG_WARN
and after running ./configure:
./configure: line 14693: syntax error near unexpected token `CAIROPANGO,'
./configure: line 14693: ` PKG_CHECK_MODULES(CAIROPANGO, cairo >=3D
0.9.0 pango >=3D 1.10 pangocairo >=3D 1.10,'
I have the following versions installed
autoconf (GNU Autoconf) 2.60
automake (GNU automake) 1.9.6
Timoth=E9e suggested to take a look into the version of
automake/autoconf. I also installed SDL and libtool (althogh I have no
idea what they were used for), and here is what aclocal returns:
/sw/share/aclocal/libtool.m4:25: warning: underquoted definition of
AC_PROG_LIBTOOL
run info '(automake)Extending aclocal'
or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
/sw/share/aclocal/libtool.m4:55: warning: underquoted definition of
AC_LIBTOOL_SETUP
/sw/share/aclocal/libtool.m4:135: warning: underquoted definition of
AC_LIBTOOL_DLOPEN
/sw/share/aclocal/libtool.m4:138: warning: underquoted definition of
AC_LIBTOOL_WIN32_DLL
/sw/share/aclocal/libtool.m4:144: warning: underquoted definition of
AC_ENABLE_SHARED
/sw/share/aclocal/libtool.m4:170: warning: underquoted definition of
AC_DISABLE_SHARED
/sw/share/aclocal/libtool.m4:177: warning: underquoted definition of
AC_ENABLE_STATIC
/sw/share/aclocal/libtool.m4:203: warning: underquoted definition of
AC_DISABLE_STATIC
...
etc
An this is what I get under Debian:
configure.in:7: error: possibly undefined macro: AM_CONFIG_HEADER
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.in:15: error: possibly undefined macro: AM_INIT_AUTOMAKE
configure.in:25: error: possibly undefined macro: AM_C_PROTOTYPES
configure.in:75: error: possibly undefined macro: AM_CONDITIONAL
configure.in:243: error: possibly undefined macro: AC_MSG_WARN
autoconf (GNU Autoconf) 2.59
automake (GNU automake) 1.4-p6
Am I really the only one with installation problems?
Thanks a lot for help,
Mojca
|