[nycbug-talk] Re: pkgsrc on FreeBSD

Jed Davis jdev
Fri Jun 24 18:46:42 EDT 2005


In article <20050624211731.GA20205 at ixeon.local>,
George Georgalis <george at galis.org> wrote:
> gcc -g -O2 -I. -I./.. -I. -I.. -I./../libedit  -I./../libnetbsd -c chared.c
> In file included from chared.c:36:
> ./../tnftp.h:316: error: conflicting types for 'dirname'
> /usr/include/libgen.h:39: error: previous declaration of 'dirname' was here
> ./../tnftp.h:316: error: conflicting types for 'dirname'
> /usr/include/libgen.h:39: error: previous declaration of 'dirname' was here
[]
> But this "patch" fixed it for me...
> 
> > diff -du /usr/pkgsrc/net/tnftp/files/tnftp.h.orig  /usr/pkgsrc/net/tnftp/files/tnftp.h
> --- /usr/pkgsrc/net/tnftp/files/tnftp.h.orig    Fri Jun 10 01:06:25 2005
> +++ /usr/pkgsrc/net/tnftp/files/tnftp.h Fri Jun 24 17:04:46 2005
> @@ -313,7 +313,7 @@
>  #endif
>  
>  #if ! HAVE_DIRNAME
> -char   *dirname(char *);
> +/* char        *dirname(char *); */
>  #endif
>  
>  #if ! HAVE_ERR

This looks a lot like something I saw on tech-pkg at netbsd a couple weeks
ago, in the context of OS X: the configure script was expecting dirname
to be defined in libgen.{a,so,dylib,whatever} or not be present at all;
instead it was defined in libc and declared in libgen.h, with results
pretty much like the above.  I don't recall what happened to it as far a
committed fix, though.

-- 
(let ((C call-with-current-continuation)) (apply (lambda (x y) (x y)) (map
((lambda (r) ((C C) (lambda (s) (r (lambda l (apply (s s) l))))))  (lambda
(f) (lambda (l) (if (null? l) C (lambda (k) (display (car l)) ((f (cdr l))
(C k)))))))    '((#\J #\d #\D #\v #\s) (#\e #\space #\a #\i #\newline)))))





More information about the talk mailing list