Re: Problem with Makefiles...

From: Steffen A. Bass (bass@phy.duke.edu)
Date: Wed Jul 01 1998 - 16:05:32 MEST


Hello Gunay and all other rooters!
Thanks a lot for the help.
Here come some more problems...

> > ...
> > gcc -g -Wall -fPIC -DR__GLIBC -c C_mvalloc.c
> > C_mvalloc.c:35: conflicting types for `getpagesize'
> > /usr/include/unistd.h:561: previous declaration of `getpagesize'
> > make: *** [C_mvalloc.o] Error 1
> 
> in C_mvalloc.c :35 
> extern int getpagesize PARAMS ((void));
> to
> extern size_t  getpagesize PARAMS ((void));

A similar modification  is necessary in C_mmapsup.c (preprocessor
directives). 

I get then a couple of warnings like
*** Datamember TLeafB::fValue: pointer to fundamental type (need manual
intervention)
*** Datamember TLeafI::fValue: pointer to fundamental type (need manual
intervention)
*** Datamember TLeafF::fValue: pointer to fundamental type (need manual
intervention)
*** Datamember TLeafS::fValue: pointer to fundamental type (need manual
intervention)
*** Datamember TLeafD::fValue: pointer to fundamental type (need manual
intervention)
*** Datamember TLeafC::fValue: pointer to fundamental type (need manual
intervention)

which I ignore for the time being.
However, the compilation now terminates in UNIX_UnixSystem.cxx:

g++ -g -Wall -fPIC -I/include -DR__GLIBC -c UNIX_UnixSystem.cxx
UNIX_UnixSystem.cxx: In method `class TInetAddress
TUnixSystem::GetSockName(int)':
UNIX_UnixSystem.cxx:1253: `socklen_t' undeclared (first use this function)
UNIX_UnixSystem.cxx:1253: (Each undeclared identifier is reported only 
once
UNIX_UnixSystem.cxx:1253: for each function it appears in.)
UNIX_UnixSystem.cxx:1253: parse error before `='
UNIX_UnixSystem.cxx:1258: `len' undeclared (first use this function)
UNIX_UnixSystem.cxx: In method `class TInetAddress
TUnixSystem::GetPeerName(int)':
UNIX_UnixSystem.cxx:1291: `socklen_t' undeclared (first use this function)
UNIX_UnixSystem.cxx:1291: parse error before `='
UNIX_UnixSystem.cxx:1296: `len' undeclared (first use this function)
UNIX_UnixSystem.cxx: In method `int TUnixSystem::GetSockOpt(int, int, int
*)':
UNIX_UnixSystem.cxx:1615: `socklen_t' undeclared (first use this function)
UNIX_UnixSystem.cxx:1615: parse error before `='
UNIX_UnixSystem.cxx:1622: `optlen' undeclared (first use this function)
make: *** [UNIX_UnixSystem.o] Error 1

Is there something missing on my system?
Thanks for the help,
	Steffen



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:34 MET