Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Aug 2004 19:57:01 +0300
From:      Ilker OZUPAK <ilker.ozupak@emu.edu.tr>
To:        ports@freebsd.org
Cc:        bkhl@elektrubadur.se
Subject:   ports/dns/sheerdns build problem
Message-ID:  <200408121957.25627.ilker.ozupak@emu.edu.tr>

next in thread | raw e-mail | index | archive | help
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[maintainer cc'ed]

=3D=3D=3D> =A0Extracting for sheerdns-1.0.1
>> Checksum OK for sheerdns-1.0.1.tar.gz.
=3D=3D=3D> =A0Patching for sheerdns-1.0.1
=3D=3D=3D> =A0Applying FreeBSD patches for sheerdns-1.0.1
=3D=3D=3D> =A0 sheerdns-1.0.1 depends on executable: gmake - found
=3D=3D=3D> =A0Configuring for sheerdns-1.0.1
=3D=3D=3D> =A0Building for sheerdns-1.0.1
gcc -O3 -pipe -march=3Dpentium4 -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=3Dpentium4 -Wall -ansi -pedantic -c hash.c
gcc -O3 -pipe -march=3Dpentium4 -Wall -ansi -pedantic -c sheerdns.c
sheerdns.c: In function `main':
sheerdns.c:182: warning: 'current_time' might be used uninitialized in this=
=20
function
gcc -O3 -pipe -march=3Dpentium4 -Wall -ansi -pedantic -c sockutil.c
gcc -O3 -pipe -march=3Dpentium4 -Wall -ansi -pedantic -c strutil.c
gcc -o sheerdns dir.o hash.o sheerdns.o sockutil.o strutil.o
gcc -O3 -pipe -march=3Dpentium4 -Wall -ansi -pedantic -o sheerdnshash hash.=
c =20
=2D -DSTANDALONE -Wall
hash.c: In function `main':
hash.c:28: warning: implicit declaration of function `mkdir'
=2D -----------------------------------------------------------------------=
=2D---------------------------------

after applying this patch it did build

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

iD8DBQFBG6FnvxSBSqT0G9ARAnFSAKCVG1yevIsN8Exg9XcEyZ0z0GRa6ACg/ie2
6/AUCpyPA5TjdNDd4tqVQMw=3D
=3DVSy6
=2D----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408121957.25627.ilker.ozupak>