bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hi! freebsd 4.7 problem with protftpd 1.2.8rc2 configure.


From: Akim Demaille
Subject: Re: hi! freebsd 4.7 problem with protftpd 1.2.8rc2 configure.
Date: Wed, 26 Feb 2003 11:28:21 +0100
User-agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2


Please, report this to the package maintainers, as it's a configure.ac
problem.  The Autoconf 2.57 doc says:

      Previous versions of Autoconf merely checked whether the header was
   accepted by the preprocessor.  This was changed because the old test was
   inappropriate for typical uses.  Headers are typically used to compile,
   not merely to preprocess, and the old behavior sometimes accepted
   headers that clashed at compile-time.  If you need to check whether a
   header is preprocessable, you can use `AC_PREPROC_IFELSE' (*note
   Running the Preprocessor::).
   
      This scheme, which improves the robustness of the test, also requires
   that you make sure that headers that must be included before the
   HEADER-FILE be part of the INCLUDES, (*note Default Includes::).  If
   looking for `bar.h', which requires that `foo.h' be included before if
   it exists, we suggest the following scheme:
   
   
   AC_CHECK_HEADERS([foo.h])
   AC_CHECK_HEADERS([bar.h], [], [],
   [#if HAVE_FOO_H
   # include <foo.h>
   # endif
   ])

Thanks!

| Hi.
| I'am Download 1.2.8rc2 proftpd version from http://protftpd.org.
| My OS is: FreeBSD 4.7 (updated from 4.5 by cvs).
| When I type "./configure" two errors are shows:
| 
| configure: WARNING: sys/mount.h: present but cannot be compiled
| configure: WARNING: sys/mount.h: check for missing prerequisite headers?
| configure: WARNING: sys/mount.h: proceeding with the preprocessor's result
| configure: WARNING:     ## ------------------------------------ ##
| configure: WARNING:     ## Report this to address@hidden ##
| configure: WARNING:     ## ------------------------------------ ##
| 
| 
| configure: WARNING: sys/statvfs.h: present but cannot be compiled
| configure: WARNING: sys/statvfs.h: check for missing prerequisite headers?
| configure: WARNING: sys/statvfs.h: proceeding with the preprocessor's result
| configure: WARNING:     ## ------------------------------------ ##
| configure: WARNING:     ## Report this to address@hidden ##
| configure: WARNING:     ## ------------------------------------ ##
| 
| 
| I know that I don't have this libraries but if you do something for
| FreeBSD (new) you must do it well.
| Others people doesn't have this libraries too.
| 
| 
| And other big problem with this proftpd version.
| After Configure when I type make I have too many errors:
| 
| 
| # make
| echo \#define BUILD_STAMP \"`date`\" >include/buildstamp.h
| cd lib/ && make lib
| gcc  -DFREEBSD4_7 -DFREEBSD4 -I.. -I../include -O2 -Wall -c pr_fnmatch.c
| In file included from ../include/conf.h:125,
|                  from pr_fnmatch.c:38:
| /usr/include/sys/socket.h:54: warning: useless keyword or type name in
| empty declaration
| /usr/include/sys/socket.h:54: warning: empty declaration
| gcc  -DFREEBSD4_7 -DFREEBSD4 -I.. -I../include -O2 -Wall -c strsep.c
| In file included from ../include/conf.h:125,
|                  from strsep.c:24:
| /usr/include/sys/socket.h:54: warning: useless keyword or type name in
| empty declaration
| /usr/include/sys/socket.h:54: warning: empty declaration
| gcc  -DFREEBSD4_7 -DFREEBSD4 -I.. -I../include -O2 -Wall -c vsnprintf.c
| In file included from ../include/conf.h:125,
|                  from vsnprintf.c:23:
| /usr/include/sys/socket.h:54: warning: useless keyword or type name in
| empty declaration
| /usr/include/sys/socket.h:54: warning: empty declaration
| gcc  -DFREEBSD4_7 -DFREEBSD4 -I.. -I../include -O2 -Wall -c glibc-glob.c
| gcc  -DFREEBSD4_7 -DFREEBSD4 -I.. -I../include -O2 -Wall -c
| glibc-mkstemp.c
| In file included from ../include/conf.h:125,
|                  from glibc-mkstemp.c:21:
| /usr/include/sys/socket.h:54: warning: useless keyword or type name in
| empty declaration
| /usr/include/sys/socket.h:54: warning: empty declaration
| gcc  -DFREEBSD4_7 -DFREEBSD4 -I.. -I../include -O2 -Wall -c pr-syslog.c
| In file included from ../include/conf.h:125,
|                  from pr-syslog.c:30:
| /usr/include/sys/socket.h:54: warning: useless keyword or type name in
| empty declaration
| /usr/include/sys/socket.h:54: warning: empty declaration
| gcc  -DFREEBSD4_7 -DFREEBSD4 -I.. -I../include -O2 -Wall -c pwgrent.c
| In file included from ../include/conf.h:125,
|                  from pwgrent.c:24:
| /usr/include/sys/socket.h:54: warning: useless keyword or type name in
| empty declaration
| /usr/include/sys/socket.h:54: warning: empty declaration
| gcc  -DFREEBSD4_7 -DFREEBSD4 -I.. -I../include -O2 -Wall -c getopt.c
| gcc  -DFREEBSD4_7 -DFREEBSD4 -I.. -I../include -O2 -Wall -c getopt1.c
| ar rc libsupp.a pr_fnmatch.o strsep.o vsnprintf.o glibc-glob.o
| glibc-mkstemp.o pr-syslog.o pwgrent.o getopt.o getopt1.o
| ranlib libsupp.a
| cd src/ && make src
| gcc  -DFREEBSD4_7 -DFREEBSD4 -I.. -I../include -O2 -Wall -c main.c
| In file included from ../include/conf.h:125,
|                  from main.c:32:
| /usr/include/sys/socket.h:54: warning: useless keyword or type name in
| empty declaration
| /usr/include/sys/socket.h:54: warning: empty declaration
| In file included from main.c:38:
| /usr/include/getopt.h:95: redefinition of `struct option'
| *** Error code 1
| 
| Stop in /root/tmp/packages/proftpd-1.2.8rc2/src.
| *** Error code 1
| 
| Stop in /root/tmp/packages/proftpd-1.2.8rc2.
| 
| 
| 
| I have this libraries from cvsup ..and other packages compile well.
| If you have good libraries please (if you want) send me (this missing
| libraries and this good).
| 
| And do something like libraries check:
| 
| 
| #include <stdio.h>
| #include <stdlib.h>
| 
| char *firstlib = "/usr/include/sys/mount.h";
| 
| void check(char *p)
| {
| int fr;
| fr = open(p, O_RDONLY);
| if (fr < 0) {
| printf("This lib doesn't exist...\n");
| exit(0);
| }
| close(fr);
| printf("OK! this lib exist...\n");
| fflush(stdout);
| }
| 
| 
| int main() {
| 
| printf("Checking for libs...\n");
| check(firstlib);
| 
| }
| 
| You know... something like this for FreeBSD and other system's with this
| problem!
| 
| 
|                                                         Bye.
|                                                               Ha2r4s
| 
| 
| please Replay.
| 
| 
| 
| 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]