Re: FVWM: configure fails at "argument types of select()"

From: Michael Hamlin <hamlin_at_pa.msu.edu>
Date: Fri, 1 Jun 2001 19:31:33 -0400 (EDT)

Here's a follow up with more information to anyone who can help.
Again, please copy any replies to hamlin_at_pa.msu.edu.

pavo:~/bin/fvwm-2.2.5>uname -a
SunOS pavo 5.7 Generic_106541-11 sun4u sparc SUNW,Ultra-1
pavo:~/bin/fvwm-2.2.5>gcc -v
Reading specs from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2.2/specs
gcc version 2.7.2.2

I wouldn't know what is interesting enough to post to the list; except
perhaps for one thing:
  fvwm-2.2.5 managed to finish the configure, but fvwm-2.3.32 did NOT.

configure: failed program was:
#line 5031 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
int main() {
extern select (int,
 fd_set *, fd_set *, fd_set *,
 struct timeval *);
; return 0; }

I went and looked in the header files to find the source of the errors.

/usr/include/sys/siginfo.h:74: parse error before `pthread_attr_t'
/usr/include/sys/siginfo.h:74: warning: no semicolon at end of struct or
union
/usr/include/sys/siginfo.h:76: parse error before `}'

063: /*
064: * The sigevent structure is also defined in <time.h> as per X/Open
065: * and POSIX requirements.
066: */
067: #ifndef _SIGEVENT
068: #define _SIGEVENT
069: struct sigevent {
070: int sigev_notify; /* notification mode */
071: int sigev_signo; /* signal number */
072: union sigval sigev_value; /* signal value */
073: void (*sigev_notify_function)(union sigval);
074: pthread_attr_t *sigev_notify_attributes;
075: int __sigev_pad2;
076: };
077: #endif /* _SIGEVENT */


/usr/include/sys/socket.h:47: parse error before `sa_family_t'
/usr/include/sys/socket.h:47: warning: data definition has no type or
storage class

045: #ifndef _SA_FAMILY_T
046: #define _SA_FAMILY_T
047: typedef uint16_t sa_family_t;
048: #endif


Appears as a syntax issue in the first one (semicolon to end the union
definition BEFORE the close parenthesis?). The second looks like a
missing definition of "uint16_t". The next error in socket.h is caused
by similar missing symbol "uint32_t", and later errors appear to be
problems with these data typedefs that failed in the first two errors.

There follows many pages of the same "parse errors" in siginfo.h
and socket.h, every time configure tries to compile something.

I went back and configured fvwm-2.2.5 from scratch and examined the
log, and found the -same- errors.. so why was 2.2.5 able to build,
but not 2.3.32 ?

thanks for your time.

michael
hamlin_at_pa.msu.edu

----
"I don't believe violent video games lead to violence, but this was different. 
They'd play these games for hours and hours and hours," Baumgart said.
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Fri Jun 01 2001 - 18:31:30 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:51 BST