Re: FVWM: fvwm2 and hpux11.i

From: Dan Espen <dane_at_mk.telcordia.com>
Date: Sun, 22 Sep 2002 13:06:40 -0400

Frank Thyes <thyes_at_gmx.net> writes:
> +++ Dan Espen [Sun, Sep 22, 2002 at 01:37:29PM CEST]:
> > #include <sys/time.h>
> > #include <sys/types.h>
> > #include <unistd.h>
> > #include <sys/socket.h>
> > int
> > main ()
> > {
> > extern select (int,
> > fd_set *, fd_set *, fd_set *,
> > struct timeval *);
> > ;
> > return 0;
> > }
> >
> > Does this compile without errors for you? If not what
> > errors do you get?
>
> Hy Dan,
> thanks for spending your time... here is the output from the little
> program that i should compile.
>
> # cc -o test test
> # cd /tmp
> # cc -o test test.c
> (Bundled) cc: "test.c", line 9: error 1000: Unexpected symbol:
> "fd_set".
> (Bundled) cc: "test.c", line 9: error 1000: Unexpected symbol:
> "fd_set".
> (Bundled) cc: "test.c", line 9: error 1000: Unexpected symbol:
> "fd_set".
> (Bundled) cc: "test.c", line 8: error 1705: Function prototypes are
> an ANSI feature.
>
> What does it mean? My knowledge about programming is not realy big
> :(

Please continue to copy the fvwm list, there are other people
on the list, and if I go astray, one of them is sure to help.

I can reproduce this if I pass the arg "-Ac" or "-Aa" to the
compiler. Without the arg or with "-Ae" it compiles fine.

You apparently have a different version of the compiler installed
or somehow you are passing different args.

First check and make sure you don't have the environment variable
CCOPTS preset:

echo $CCOPTS

If it is set, unset it and try again.
If its not set, try this:

CCOPTS=-Xe;export CCOPTS

then try to compile the test program.

If that works, try configure.
If that doesn't work, try to find out more about your compiler:

man cc

-- 
Dan Espen                           E-mail: dane_at_mk.telcordia.com
444 Hoes Lane  Room RRC 1C-214      Phone: (732) 699-5570
Piscataway, NJ 08854
--
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 Sun Sep 22 2002 - 12:12:49 BST

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