From owner-freebsd-questions@FreeBSD.ORG Sat May 23 21:33:04 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ABA35106566C for ; Sat, 23 May 2009 21:33:04 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr15.xs4all.nl (smtp-vbr15.xs4all.nl [194.109.24.35]) by mx1.freebsd.org (Postfix) with ESMTP id 399D88FC1D for ; Sat, 23 May 2009 21:33:04 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr15.xs4all.nl (8.13.8/8.13.8) with ESMTP id n4NLX1h2004416; Sat, 23 May 2009 23:33:01 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id AD349BAC8; Sat, 23 May 2009 23:33:01 +0200 (CEST) Date: Sat, 23 May 2009 23:33:01 +0200 From: Roland Smith To: francis keyes Message-ID: <20090523213301.GB55269@slackbox.xs4all.nl> References: <20090520000137.3d46fcb2.freebsd@edvax.de> <4A135119.8010007@telenix.org> <20090520192011.GA97805@slackbox.xs4all.nl> <20090522075840.GA94412@slackbox.xs4all.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="MW5yreqqjyrRcusr" Content-Disposition: inline In-Reply-To: X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.19 (2009-01-05) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: Polytropon , Chuck Robey , freebsd-questions@freebsd.org Subject: Re: compiling FreeBSD date on Linux X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 May 2009 21:33:04 -0000 --MW5yreqqjyrRcusr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, May 23, 2009 at 05:00:08PM -0300, francis keyes wrote: > I added "#include " to date .c but still get some errors: >=20 > date.c: In function *setthetime*: > date.c:192: warning: assignment makes pointer from integer without a cast > /tmp/ccZTmvsY.o: In function `netsettime': > netdate.c:(.text+0x1f1): undefined reference to `strlcpy' > collect2: ld returned 1 exit status Try replacing strlcpy with strncpy. The latter is standard C, although somewhat less safe. Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --MW5yreqqjyrRcusr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEARECAAYFAkoYa40ACgkQEnfvsMMhpyWeswCeO90x5cmiKXrIEiJQnGmo4DCI hmYAnjXsKvQoT6G53RpXmA5mxNDAKU7X =190B -----END PGP SIGNATURE----- --MW5yreqqjyrRcusr--