From owner-freebsd-questions Tue Mar 5 12:47:34 2002 Delivered-To: freebsd-questions@freebsd.org Received: from uni-sb.de (uni-sb.de [134.96.252.33]) by hub.freebsd.org (Postfix) with ESMTP id 442A237B400 for ; Tue, 5 Mar 2002 12:47:28 -0800 (PST) Received: from cs.uni-sb.de (cs.uni-sb.de [134.96.252.31]) by uni-sb.de (8.12.2/2002020400) with ESMTP id g25KlNj14531; Tue, 5 Mar 2002 21:47:23 +0100 (CET) Received: from mail.cs.uni-sb.de (IDENT:NAJaYniiwVf1wjw9BSvf3SjrqQbmEfB7@mail.cs.uni-sb.de [134.96.254.200]) by cs.uni-sb.de (8.12.1/2001121800) with ESMTP id g25KlMM11545; Tue, 5 Mar 2002 21:47:22 +0100 (CET) Received: from wjpserver.cs.uni-sb.de (wjpserver.cs.uni-sb.de [134.96.247.42]) by mail.cs.uni-sb.de (8.12.2/2002011500) with ESMTP id g25KlKO16041; Tue, 5 Mar 2002 21:47:20 +0100 (CET) Received: (from schuerge@localhost) by wjpserver.cs.uni-sb.de (8.11.0/8.11.0/wjp-SVR4/1999052600) id g25KlKb13273; Tue, 5 Mar 2002 21:47:20 +0100 (MET) From: Thomas Schuerger Message-Id: <200203052047.g25KlKb13273@wjpserver.cs.uni-sb.de> Subject: Re: Problem with port editors/koffice (libz) In-Reply-To: <3C852249.2000400@owt.com> from Kent Stewart at "Mar 5, 2002 11:53:45 am" To: Kent Stewart Date: Tue, 5 Mar 2002 21:47:20 +0100 (MET) Cc: freebsd-questions@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL57 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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! > > > > I tried to compile the port editors/koffice and I get the following > > error messages (4.5-RELEASE): > > > > kqiodevicegzip.cc: In method `int KQIODeviceGZip::at() const': > > kqiodevicegzip.cc:93: implicit declaration of function `int gztell(...)' > > kqiodevicegzip.cc: In method `bool KQIODeviceGZip::at(int)': > > kqiodevicegzip.cc:100: implicit declaration of function `int gzseek(...)' > > kqiodevicegzip.cc: In method `bool KQIODeviceGZip::atEnd() const': > > kqiodevicegzip.cc:107: implicit declaration of function `int gzeof(...)' > > kqiodevicegzip.cc: In method `bool KQIODeviceGZip::reset()': > > kqiodevicegzip.cc:114: implicit declaration of function `int gzrewind(...)' > > kqiodevicegzip.cc: In method `int KQIODeviceGZip::getch()': > > kqiodevicegzip.cc:148: implicit declaration of function `int gzgetc(...)' > > kqiodevicegzip.cc: In method `int KQIODeviceGZip::putch(int)': > > kqiodevicegzip.cc:155: implicit declaration of function `int gzputc(...)' > > ---------------- > > > > I also tried to reinstall /usr/src/lib/libz, but that didn't make > > a difference. What am I doing wrong? What is missing on my system? > > Something is probably out of date, i.e., port tree or dependancy > ports. I cvsuped ports-all, rebuilt the INDEXs, and then rebuilt all > of kde-2.2.2 on 4 Mar and didn't have any problems building koffice. > There were some dependancy ports that had been updated such as > libxml2. I "pkg_delete -rf" deleted them. The -rf force removes ports > that depend on them and then I rebuilt kde-2.2.2 from scratch. You > only get one chance to build kde-2 right. It really doesn't allow > alternatives. > > One thing that you are doing different is saving the ports in an > alternate location. If I were to do that, I would create a /usr/ports > mount point and then mount it in /etc/fstab. I don't think this has > anything to do with your build problem. I do this with /usr/obj and > /usr/src. It is the only way I can do fast buildworlds. You were right. I had a very old version of the files zlib.h and zconf.h in /usr/local/include (zlib 1.0.4). The current header files for the library were in /usr/include, but editors/koffice puts /usr/local/include in the include path first. I removed both ancient files from /usr/local/include and it worked. :) Thanks! Greetings, Thomas. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message