- From: Andreas Jungmaier <ajung AT exp-math.uni-essen.de>
- To: Vinod Cherian Joseph <vinod AT corecess.com>, <discussion AT sctp.de>
- Subject: Re: [SCTP-Discussion] Error using SCTP.de Library Make
- Date: Thu Jun 19 08:36:52 2003
- List-id: SCTP Discussions <discussion.sctp.de>
- Organization: University Duisburg-Essen
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Vinod,
I am not sure, to which sctplib release version this error applies, usually
a ./configure; make (; make install) should work even on newer systems.
I do not personally use RedHat myself, but googling for the error
message, I came up with the following: When (*and if*) you run
autoconf/automake,
either autoconf or auotmake complains that some macros have already been
defined. The configure.in script was created for an older version of
autoconf, and newer versions of the autoconf/automake combo have changed some
things slightly. I have also run into this issue myself (constantly upgrading
my Mandrake system :-), so for the upcoming release I will have that fixed,
hopefully.
See below for what you might want to do, although I cannot promise
success. Please, if you try this, could you post how it worked ?!
From
http://mail.gnu.org/archive/html/autoconf/2001-07/msg00104.html :
_____________________________________________________________________
New Macros
- ----------
Because Autoconf has been dormant for years, Automake provided
Autoconf-like macros for a while. Autoconf 2.50 now provides better
versions of these macros, integrated in the `AC_' namespace, instead of
`AM_'. But in order to ease the upgrading via `autoupdate', bindings
to such `AM_' macros are provided.
Unfortunately Automake did not quote the name of these macros!
Therefore, when `m4' find in `aclocal.m4' something like
`AC_DEFUN(AM_TYPE_PTRDIFF_T, ...)', `AM_TYPE_PTRDIFF_T' is expanded,
replaced with its Autoconf definition.
Fortunately Autoconf catches pre-`AC_INIT' expansions, and will
complain, in its own words:
$ cat configure.in
AC_INIT
AM_TYPE_PTRDIFF_T
$ aclocal-1.4
$ autoconf
./aclocal.m4:17: error: m4_defn: undefined macro: _m4_divert_diversion
actypes.m4:289: AM_TYPE_PTRDIFF_T is expanded from...
./aclocal.m4:17: the top level
Future versions of Automake will simply no longer define most of
these macros, and will properly quote the names of the remaining macros.
But you don't have to wait for it to happen to do the right thing right
now: do not depend upon macros from Automake as it is simply not its job
to provide macros (but the one it requires by itself):
>
>> Vinod: Try this here:
$ cat configure.in
AC_INIT ....AM_bla...AM_bla..AM_foo...AM_bar...
............
$ rm aclocal.m4
$ autoupdate
autoupdate: `configure.in' is updated
$ cat configure.in
AC_INIT
......modified....AC_bla...AC_blubb...AC_foo....AC_bar
$ aclocal-1.4
$ autoconf
$ ./configure;make
-
------------------------------------------------------------------------------
Hope that helps...as I said, just for compiling, the configure script
originally distributed with the library should work alright (and if it
doesn't, and you never called automake or autoconf before compiling sctplib,
please state that. Thanks !)
Andreas
On Wednesday 18 June 2003 15:55, Vinod Cherian Joseph wrote:
>
Hi Andreas et al
>
>
I just downloaded the sctp library and socket library from www.sctp.de for
>
usage on Red Hat Linux 9 and got the following errors on make
>
>
aclocal.m4:550: error: m4_defn: undefined macro: _m4_divert_diversion
>
autoconf/lang.m4:172: AC_LANG_RESTORE is expanded from...
>
aclocal.m4:550: the top level
>
autom4te: /usr/bin/m4 failed with exit status: 1
>
make: *** [configure] Error 1
>
>
Please can you tell me what have i done wrong....
>
>
Thanks in advance
>
>
Vinod
>
>
_______________________________________________
>
discussion mailing list
>
discussion AT sctp.de
>
http://www.sctp.de/mailman/listinfo/discussion
- --
Dipl.-Ing. Andreas Jungmaier
Computer Networking Technology Group
University of Duisburg-Essen
http://www.exp-math.uni-essen.de/~ajung
My PGP Key-ID: D3824AC0
My PGP Key-Fingerprint: 228C 7C2C 3381 2DD4 9998 2812 5C0B 0B04 D382 4AC0
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+8CJPXAsLBNOCSsARAp32AKCd4ibOqIoj0z6m/4WY6VoPxcoYcgCdE5ld
xO3Zq/azfGnBEJBfxJMdKj4=
=c3Ku
-----END PGP SIGNATURE-----
Archive powered by MHonArc 2.6.19+.