RE: Problems compiling/creating ethereal-tap-register.c

"Bill Florac" <[email protected]>
Newsgroups gmane.network.ethereal.devel
Message-ID <[email protected]>
Problem fix, had different version of grep in path....

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Bill Florac
Sent: Thursday, April 27, 2006 10:32 AM
To: [email protected]
Subject: [Ethereal-dev] Problems compiling/creating
ethereal-tap-register.c


When I attempt to make ethereal I'm getting the following errors:

Making ethereal-tap-register.c
        cl -DWIN32 -DNULL=0 -D_MT -D_DLL -DHAVE_CONFIG_H /I..
/I../wiretap    /IC:\ethereal-win32-libs\WPdpack\WPCAP\LIB
PCAP /IC:\ethereal-win32-libs\WPdpack\WPCAP\LIBPCAP\bpf
/IC:\ethereal-win32-libs\WPdpack\WPCAP\LIBPCAP\lbl  /IC:\ethere
al-win32-libs\WPdpack\include
/IC:\ethereal-win32-libs\net-snmp-5.2.2\include
/IC:\ethereal-win32-libs\net-snmp-5.2.2\w
in32 /Zm800 -D_U_="" -D_NEED_VAR_IMPORT_ /Zi /W3  -Fd.\ -c
ethereal-tap-register.c Microsoft (R) 32-bit C/C++ Optimizing Compiler
Version 12.00.8168 for 80x86 Copyright (C) Microsoft Corp 1984-1998. All
rights reserved.

ethereal-tap-register.c
ethereal-tap-register.c(5) : error C2182: 'File' : illegal use of type
'void'
ethereal-tap-register.c(5) : error C2146: syntax error : missing ';'
before identifier 'STDIN'
ethereal-tap-register.c(5) : error C2059: syntax error : ';'
ethereal-tap-register.c(6) : error C2146: syntax error : missing ';'
before identifier 'STDIN'
ethereal-tap-register.c(6) : error C2059: syntax error : ')' ...

I tracked this down to a malformed ethereal-tap-register.c file which
looks like this....

/* Do not modify this file.  */
/* It is created automatically by the Makefile.  */
#include "register.h"
void register_all_tap_listeners(void) {
  { extern void File STDIN: (void);
    File STDIN: ();}
  { extern void unmatched (void);
    unmatched ();}
  { extern void File STDIN: (void);
    File STDIN: ();}
  { extern void unmatched (void);
    unmatched ();}
  { extern void File STDIN: (void);
...

I have the exact same release of code (18015) on another PC that works
fine so I assume it is some envionment problem. Any ideas.  Deleted the
ethereal-tap-register.c file and the make-tapreg.dotc file recreates it
the same way each time.

Bill Florac
Senior Technical Product Specialist
[email protected] m
Electronic Theatre Controls, Inc.


_______________________________________________
Ethereal-dev mailing list
[email protected]
http://www.ethereal.com/mailman/listinfo/ethereal-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.