logo       

Re: Compile problems under Solaris 9: msg#00036

file-systems.sfs.general

Subject: Re: Compile problems under Solaris 9

> From: Adam Sherman <adam@xxxxxxxxx>
> Date: Sat, 15 Mar 2003 17:07:48 -0500
>
> Tried with both GCC 2.95.3 & 3.2.1, I get the following error:
>
> authclnt.C: In function `bool validshell(const char *)':
> authclnt.C:102: implicit declaration of function `int setusershell(...)'
> authclnt.C:103: implicit declaration of function `int getusershell(...)'
> authclnt.C:103: assignment to `const char *' from `int' lacks a cast
> authclnt.C:105: implicit declaration of function `int endusershell(...)'
>
> Way over my head as to why this is happening.
>
> Any hints?

This is fixed in CVS, but you should be able patch the 0.7.2 sources
by adding the following three lines to the top of any .C file causing
such problems (e.g., authclnt.C):

extern "C" char *getusershell(void);
extern "C" void setusershell(void);
extern "C" void endusershell(void);

David



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise