ports/dns/sheerdns build problem

Ilker OZUPAK ilker.ozupak at emu.edu.tr
Thu Aug 12 09:58:48 PDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[maintainer cc'ed]

===>  Extracting for sheerdns-1.0.1
>> Checksum OK for sheerdns-1.0.1.tar.gz.
===>  Patching for sheerdns-1.0.1
===>  Applying FreeBSD patches for sheerdns-1.0.1
===>   sheerdns-1.0.1 depends on executable: gmake - found
===>  Configuring for sheerdns-1.0.1
===>  Building for sheerdns-1.0.1
gcc -O3 -pipe -march=pentium4 -Wall -ansi -pedantic -c dir.c
dir.c: In function `directory_lookup':
dir.c:95: warning: implicit declaration of function `string_wash'
gcc -O3 -pipe -march=pentium4 -Wall -ansi -pedantic -c hash.c
gcc -O3 -pipe -march=pentium4 -Wall -ansi -pedantic -c sheerdns.c
sheerdns.c: In function `main':
sheerdns.c:182: warning: 'current_time' might be used uninitialized in this 
function
gcc -O3 -pipe -march=pentium4 -Wall -ansi -pedantic -c sockutil.c
gcc -O3 -pipe -march=pentium4 -Wall -ansi -pedantic -c strutil.c
gcc -o sheerdns dir.o hash.o sheerdns.o sockutil.o strutil.o
gcc -O3 -pipe -march=pentium4 -Wall -ansi -pedantic -o sheerdnshash hash.c  
- -DSTANDALONE -Wall
hash.c: In function `main':
hash.c:28: warning: implicit declaration of function `mkdir'
- ---------------------------------------------------------------------------------------------------------

after applying this patch it did build

<patch>
- --- hash.c.orig Sat Apr 12 11:04:59 2003
+++ hash.c      Thu Aug 12 10:05:56 2004
@@ -4,6 +4,8 @@
 #include <assert.h>
 #include <string.h>
 #include <time.h>
+#include <sys/types.h>
+#include <sys/stat.h>
 #include "hash.h"
 #include "dir.h"
 
@@ -25,7 +27,7 @@
        unsigned char *s;
        s = (unsigned char *) hex_hash ((unsigned char *) argv[1]);
        snprintf (buf, sizeof (buf), SHEERDNS_DIR "/%s/%s", s, argv[1]);
- -       mkdir (buf);
+       mkdir (buf, 0700);
        l = strlen ((char *) s);
        write (1, s, l);
        write (1, "\n", 1); }
</patch>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFBG6FnvxSBSqT0G9ARAnFSAKCVG1yevIsN8Exg9XcEyZ0z0GRa6ACg/ie2
6/AUCpyPA5TjdNDd4tqVQMw=
=VSy6
-----END PGP SIGNATURE-----


More information about the freebsd-ports mailing list