From owner-freebsd-questions@FreeBSD.ORG Sat May 23 20:00:09 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 49C961065672 for ; Sat, 23 May 2009 20:00:09 +0000 (UTC) (envelope-from fkeymo@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.246]) by mx1.freebsd.org (Postfix) with ESMTP id E680E8FC13 for ; Sat, 23 May 2009 20:00:08 +0000 (UTC) (envelope-from fkeymo@gmail.com) Received: by an-out-0708.google.com with SMTP id c3so1401299ana.13 for ; Sat, 23 May 2009 13:00:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=3J+Iv8fEBTISHXVk/zdH55pKJh2tWaiWtwC+WtlEYOI=; b=jD5IT8rSTPkbE74I2HKhCD8OX8cO7cGTd+hCx3CSEuyY9dUECZ2vxYE9j0GEvwI7vF iW74ZqHPSjnRepcO9iREcwxLQ9WxAM4Xv29lXQk1oEEnwO4P7DSEEgfAlqrSzrjmkdxd vn+jYTKZSFtmrKQAbv6Xu8sb3kL+XEeAHNcJQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Bc8wHVmv7qZRTSldRfxgx3s2ZQapouj9gQN6Z9uZi93hvcUUzxFJp/PAdAUhREzOnc VXGzk3PAR9zO09kKEhYV945t6tJYPAd1kLd/AKmtoByv7ykbYoXTLzvf+Qor77kiYY8V uznD/CmPpKE7suCfrb5ji6oydeeosazzJvZpE= MIME-Version: 1.0 Received: by 10.100.131.13 with SMTP id e13mr9827321and.93.1243108808323; Sat, 23 May 2009 13:00:08 -0700 (PDT) In-Reply-To: <20090522075840.GA94412@slackbox.xs4all.nl> References: <20090520000137.3d46fcb2.freebsd@edvax.de> <4A135119.8010007@telenix.org> <20090520192011.GA97805@slackbox.xs4all.nl> <20090522075840.GA94412@slackbox.xs4all.nl> Date: Sat, 23 May 2009 17:00:08 -0300 Message-ID: From: francis keyes To: Roland Smith Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 20:00:09 -0000 I added "#include " to date .c but still get some errors: date.c: In function =91setthetime=92: 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 I tried downloading the source to strlcpy and compiling with everything else: gcc -o date date.c netdate.c vary.c strlcpy.c It compiles now with the warning: date.c: In function =91setthetime=92: date.c:192: warning: assignment makes pointer from integer without a cast ... but it doesn't work. The output of "./date" is: %+ I'm going to keep playling with it... On Fri, May 22, 2009 at 4:58 AM, Roland Smith wrote: > On Thu, May 21, 2009 at 09:08:31PM -0300, francis keyes wrote: > > I patched date.c and tried to compile but I get a few errors, as you > suspected: > > > > In file included from date.c:59: > > vary.h:35: warning: *struct tm* declared inside parameter list > > vary.h:35: warning: its scope is only this definition or declaration, > which is probably not what > > you want > > date.c: In function *main*: > > date.c:85: error: storage size of *lt* isn*t known > > Add "#include " to date.c. > > Roland > -- > 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) >