From owner-freebsd-ports Wed Jul 3 12: 0:29 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C0F837B400 for ; Wed, 3 Jul 2002 12:00:18 -0700 (PDT) Received: from c003.snv.cp.net (h024.c003.snv.cp.net [209.228.32.238]) by mx1.FreeBSD.org (Postfix) with SMTP id ECC1C43E58 for ; Wed, 3 Jul 2002 12:00:16 -0700 (PDT) (envelope-from cworrell@telocity.com) Received: (cpmta 20324 invoked from network); 3 Jul 2002 12:00:15 -0700 Received: from 65.185.255.19 (HELO homepc) by smtp.telocity.com (209.228.32.238) with SMTP; 3 Jul 2002 12:00:15 -0700 X-Sent: 3 Jul 2002 19:00:15 GMT From: "Cameron Worrell" To: "'Edwin Groothuis'" Cc: , Subject: RE: FreeBSD Port: apcupsd-3.8.5_1 Date: Wed, 3 Jul 2002 15:00:54 -0400 Message-ID: <000001c222c3$f5f868e0$fdc8a8c0@homepc> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal In-Reply-To: <20020703132132.E558@k7.mavetju> Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Thanks, that worked. Guess I am out of luck for USB support in apcupsd since it is linux-centric. Have to wait for the serial cable from APC. It is a little frustrating as FreeBSD picks up the UPS over usb instantly... uhid0: American Power Conversion Back-UPS 350 FW: 5.4.D USB FW: c1 , rev 1.10/1.00, addr 2, iclass 3/0 Oh well... Thanx for the assistance. Cameron Worrell -----Original Message----- From: Edwin Groothuis [mailto:edwin@mavetju.org] Sent: Tuesday, July 02, 2002 11:22 PM To: Cameron Worrell Cc: Lars.Koeller@Uni-Bielefeld.de; ports@FreeBSD.org Subject: Re: FreeBSD Port: apcupsd-3.8.5_1 On Tue, Jul 02, 2002 at 10:50:51PM -0400, Cameron Worrell wrote: > Apologies in advance for the Spam. I read through a thread on the > dev-group and was wondering if there was a patch to correct the issues > with any version greater than 3.9.4. I have a CS 350 /USB that > requires it. The only version I have successfully compiled is 3.8.5. > > 3.9.4 and 3.9.8 fail with the following... > > (internal libintl disabled) > gcc -DHAVE_CONFIG_H -c -I. -I./include -g -O2 apcupsd.c > gcc -DHAVE_CONFIG_H -c -I. -I./include -g -O2 apcnet.c > apcnet.c: In function `send_to_slave': > apcnet.c:274: `ETIME' undeclared (first use in this function) > apcnet.c:274: (Each undeclared identifier is reported only once > apcnet.c:274: for each function it appears in.) ETIME is a linux-ism(*). Seen how it is further used in the code (quick grep on it), I think you can safely replace it with ETIMEDOUT. (*) defined in /usr/include/asm/errno.h but not in the errno man-page. Edwin -- Edwin Groothuis | Personal website: http://www.MavEtJu.org edwin@mavetju.org | Interested in MUDs? Visit Fatal Dimensions: bash$ :(){ :|:&};: | http://www.FatalDimensions.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message