aseek-devel  

Re: [aseek-devel] compiling cvs source

Kir Kolyshkin
Fri, 14 Sep 2001 08:18:46 -0700

Matt, can you explain the tail of the patch (the changes in src/resolve.cpp)?

Matt Sullivan ΠΙΣΑΜ(Α):
> 
> On Fri, 7 Sep 2001, Brian wrote:
> 
> > Hi,
> >
> > I just got the cvs source and tried to compile it, but got the following errors:
> >
> > btherl@btherl:~/aspdev/aspseek$ ./cvsprep
> > aclocal
> > libtoolize --force --copy
> > You should update your `aclocal.m4' by running aclocal.
> > Putting files in AC_CONFIG_AUX_DIR, `misc'.
> > autoheader
> > autoheader2.50: No template for symbol `HAVE_GETHOSTBYNAME_R'
> > autoheader2.50: No template for symbol `HAVE_ORACLE8'
> > automake --add-missing --copy
> > configure.in: 7: required file `include/aspseek-cfg.h.in' not found
> > autoconf --localdir=misc
> > configure.in:6: error: possibly undefined macro: AM_INIT_AUTOMAKE
> > configure.in:7: error: possibly undefined macro: AM_CONFIG_HEADER
> > configure.in:22: error: possibly undefined macro: AM_SANITY_CHECK
> > configure.in:32: error: possibly undefined macro: AC_LIBTOOL_DLOPEN
> > configure.in:33: error: possibly undefined macro: AM_DISABLE_STATIC
> > configure.in:34: error: possibly undefined macro: AM_PROG_LIBTOOL
> > configure.in:397: error: possibly undefined macro: AM_CONDITIONAL
> >
> >  --==*** You need to run ./configure now ***==--
> >                  Happy hacking, btherl!
> >
> > btherl@btherl:~/aspdev/aspseek$
> >
> >
> > Can you tell me what's wrong?  It's making aclocal.m4, but it's not making
> > include/aspseek-cfg.h.in
> 
> Try the following small patch and re-run ./cvsprep.  Problem is with newer
> autoconf/automake (you must be running Debian sid?).
> 
> diff -r -u -2 aspseek-1.2.4a.dist/acconfig.h aspseek-1.2.4a/acconfig.h
> --- aspseek-1.2.4a.dist/acconfig.h     Tue Jul  3 18:38:00 2001
> +++ aspseek-1.2.4a/acconfig.h  Tue Sep  4 12:11:04 2001
> @@ -13,4 +13,7 @@
>  #undef HAVE_SOCKLEN_T
> 
> +/* Define if you have gethostbyname_r function */
> +#undef HAVE_GETHOSTBYNAME_R
> +
>  /* Define if you have glibc2 style gethostbyname_r */
>  #undef HAVE_GLIBC2_STYLE_GETHOSTBYNAME_R
> @@ -57,5 +60,5 @@
> 
>  /* Define if you want to use Oracle 8i SQL Server */
> -#undef HAVE_ORACLE8I
> +#undef HAVE_ORACLE8
> 
>  /* @BOTTOM@ */
> 
> diff -r -u -2 aspseek-1.2.4a.dist/src/resolve.cpp
> aspseek-1.2.4a/src/resolve.cpp
> --- aspseek-1.2.4a.dist/src/resolve.cpp Tue Jul  3 18:38:01 2001
> +++ aspseek-1.2.4a/src/resolve.cpp      Tue Sep  4 12:40:49 2001
> @@ -62,4 +62,7 @@
>  #endif /* defined(_AIX) || defined(HAVE_GLIBC2_STYLE_GETHOSTBYNAME_R) */
> 
> +// Broken my_gethostbyname_r
> +#undef HAVE_GETHOSTBYNAME_R
> +
>  char *h_err_str[] = {
>        "Host not found",

-- 
[EMAIL PROTECTED]  ICQ 7551596  Phone +7 903 6722750
Reality always seems harsher in the early morning.
--