Compiling Samba on Linux-FT 1.2.13: parse error compliling fault.c

Compiling Samba on Linux-FT 1.2.13: parse error compliling fault.c

Post by MrJEva » Mon, 09 Sep 1996 04:00:00



Dear Reader,

Could you possibly spare the time to help me out here ?
I've tried compiling several versions of Samba under Linux-FT 1.2.13, but
every time I am thwarted by the following while fault.c is being compiled
:

In file included from includes.h:221
                     from ./fault.c:26

/usr/include/string.h:48:parse error before '?'
/usr/include/string.h:183:parse error before '?'

Unfortunately I'm as yet not a C programmer and can't translate this.

Thanks for reading this plea. Even more thanks if you reply ! =:- }

Jason Evans

 
 
 

Compiling Samba on Linux-FT 1.2.13: parse error compliling fault.c

Post by Allin Cottrel » Sat, 14 Sep 1996 04:00:00


Quote:> I've tried compiling several versions of Samba under Linux-FT 1.2.13, but
> every time I am thwarted by the following while fault.c is being compiled
> :

> In file included from includes.h:221
>                      from ./fault.c:26

> /usr/include/string.h:48:parse error before '?'
> /usr/include/string.h:183:parse error before '?'

Hmm.  The C header files in /usr/include are a basic
part of the apparatus for compiling C programs, and
if the compiler is complaining about a parse error
is string.h, that suggests that the headers are
somehow corrupted, or the compiler wrongly installed,
or perhaps that there is some version incompatibility
between the two.  I would recommend a re-installation
of the compiler and its associated "include" files,
unless somebody else thinks of something smarter :^).

Allin Cottrell

 
 
 

Compiling Samba on Linux-FT 1.2.13: parse error compliling fault.c

Post by Martin Tome » Tue, 17 Sep 1996 04:00:00




Quote:> > I've tried compiling several versions of Samba under Linux-FT 1.2.13,
but
> > every time I am thwarted by the following while fault.c is being
compiled
> > :

> > In file included from includes.h:221
> >                      from ./fault.c:26

> > /usr/include/string.h:48:parse error before '?'
> > /usr/include/string.h:183:parse error before '?'

> Hmm.  The C header files in /usr/include are a basic
> part of the apparatus for compiling C programs

Agreed, but they do differ don't they :-(

You need to make the first #if look like this and define LINUXFT
on the compiler command line...

#if defined(LINUX) && !defined(LINUXFT)
#define __KERNEL__
#endif

Martin Tomes

 
 
 

1. Samba 1.9.14 fails on Slackware 3.0 (Linux 1.2.13)

As said, the error message I got is:

        access.c In function 'fromhost'
        access.c: 331: Warning: passing arg 2 of 'StrnCpy' discards 'const'
        from pointer target type.

I believe the gcc is v2.7.0 for ELF.  Other than this warning message,
everything else appears to be fine.  However, both smbd and nmbd refused to
run as daemons.  The error log files contain the following lines:

...from log.smb....
adding printer service lp
adding IPC service
10/11/95 12:52:08 loaded services
10/11/95 12:52:08 becoming a daemon
bind failed on port 139 <---- ???
Closing connections
10/11/95 12:52:08 Server exit  (normal exit)

...from log.nmb...
Dumped names
10/12/95 12:40:48 becoming a daemon
bind failed on port 137  <---- ???
bind succeeded on port 138

Can anyboby help?

--

Raytheon Engineers and Constructors, Philadelphia, PA 19101

2. BIND listening with other ip's

3. Samba 1.9.15p8 + linux 1.2.13 + ~50 users = CRASH!

4. Cannot open the money program

5. ksmbfs,smbfs + linux 1.2.13

6. IDL crashes ... short of memory?

7. Unable to compile 1.9.08 fault.c (Linux 1.1.59/gcc 2.5.8)

8. Epson 740 Printing Envelopes help

9. samba samba 1.9.18p10 seg faults on linux 2.0.34

10. Compiling Samba 1.9.13 on HPUX 7.02

11. Problems Compiling Samba ...12,13,14 for SunOS4.1.3

12. Unable to compile with VC++ and a Samba 1.9.13 drive

13. Samba 1.9.13 compile for HPUX 9.0 needed