lazy_directories.patch

James Peach jpeach at sgi.com
Wed Aug 18 23:10:31 GMT 2004


On Wed, Aug 18, 2004 at 01:27:58PM -0500, Mark Nehemiah wrote:
> Hi James,
> 
>    I am the one with the KIP powerprint problems.  I'm obviously not much
> of a programer, as I'm having trouble with compiling.  I applied your
> patch against 3.0.6rc2 and found I didn't have a 'pathname.h',  wasn't
> sure where to go.  downloaded a pathname.h from fsf.org.  tried to
> compile and I get
> 
> Linking bin/smbd
> smbd/dir.o(.text+0x2156): In function `ReadDirName':
> : undefined reference to `ISDOT'
> smbd/dir.o(.text+0x2162): In function `ReadDirName':
> : undefined reference to `ISDOTDOT'
> collect2: ld returned 1 exit status
> gmake: *** [bin/smbd] Error 1
> 
> Any idea where I should get pathname.h from or if I'm missing something else.

Oops, pathname.h must ba an IRIX-ism .. something like this is ok for
the definition of ISDOT and ISDOTDOT:

http://ftp.lug.udel.edu/pub/OpenBSD/src/usr.bin/make/util.c:
...
#define ISDOT(c) ((c)[0] == '.' && ((c)[1] == '\0' || (c)[1] == '/'))
#define ISDOTDOT(c) ((c)[0] == '.' && ISDOT(&((c)[1])))

-- 
James Peach | jpeach at sgi.com | SGI Australian Software Group
I don't speak for SGI.


More information about the samba-technical mailing list