From owner-freebsd-questions Thu Aug 8 20:59:37 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7864837B400 for ; Thu, 8 Aug 2002 20:59:35 -0700 (PDT) Received: from eng-ser1.erg.cuhk.edu.hk (eng-ser1.erg.cuhk.edu.hk [137.189.94.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7390543E72 for ; Thu, 8 Aug 2002 20:59:34 -0700 (PDT) (envelope-from joel@ie.cuhk.edu.hk) Received: from eng-ser4.erg.cuhk.edu.hk (eng-ser4 [137.189.94.4]) by eng-ser1.erg.cuhk.edu.hk (8.9.2/8.9.2) with ESMTP id LAA26566 for ; Fri, 9 Aug 2002 11:59:33 +0800 (HKT) From: joel@ie.cuhk.edu.hk Received: from eng-ser4.erg.cuhk.edu.hk (localhost [127.0.0.1]) by eng-ser4.erg.cuhk.edu.hk (8.12.1/8.12.1) with ESMTP id g793xWWe008124 for ; Fri, 9 Aug 2002 11:59:32 +0800 (HKT) Received: (from nobody@localhost) by eng-ser4.erg.cuhk.edu.hk (8.12.1/8.12.1/Submit) id g793xW9m008123 for freebsd-questions@FreeBSD.org; Fri, 9 Aug 2002 11:59:32 +0800 (HKT) X-Authentication-Warning: eng-ser4.erg.cuhk.edu.hk: nobody set sender to joel@ie.cuhk.edu.hk using -f To: freebsd-questions@FreeBSD.org Subject: Problem using fopen with ip_dummynet.c Message-ID: <1028865572.3d533e24d682a@eng-ser4.erg.cuhk.edu.hk> Date: Fri, 09 Aug 2002 11:59:32 +0800 (HKT) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: IMP/PHP IMAP webmail program 2.2.8 X-Originating-IP: 137.189.97.253 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi all!! I am trying to monitor the buffer size by using ipfw and I am modifying the ip_dummynet.c file. I have included #include at the top of the code. Then,I have file and started logging information in it. But when i want to compile I get the following error message : ip_dummynet.o: In function `move_pkt': ip_dummynet.o(.text+0x51d): undefined reference to `fopen' ip_dummynet.o(.text+0x531): undefined reference to `__sF' ip_dummynet.o(.text+0x536): undefined reference to `fprintf' ip_dummynet.o(.text+0x5ac): undefined reference to `fprintf' ip_dummynet.o(.text+0x5b8): undefined reference to `fclose' Can anyone explain me the reason of this problem? I would be extremely grateful. Best regards, Joel To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message