From owner-freebsd-questions@FreeBSD.ORG Mon May 3 09:45:09 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6041F106566C for ; Mon, 3 May 2010 09:45:09 +0000 (UTC) (envelope-from perikillo@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1BEDD8FC08 for ; Mon, 3 May 2010 09:45:08 +0000 (UTC) Received: by gyh20 with SMTP id 20so1148634gyh.13 for ; Mon, 03 May 2010 02:45:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=/jK0jgHajYVyZPupNZQzR0Za0MD03FOON7iQ2Yag3Xc=; b=B+qipUjSgj8gwYqPMF6qIMApT/ZVRhF4BwyoRMMGjTAy0PcgzZ+9SPECeElfKwY81C ob/YWHkmLx7S5a54IeEbDI2z1vxPEfEg/mpF0dbYGsqLfX8+h/uuq7Q4NLzqhDJC/GTJ U7fiX7KwVEw2I3ENcy1DcF2KNMuhGyZwEPqDc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=RYvW4s579laHUxvq+JMSt3y/7dhSlQhq5/9PWRLLcZE0QOLb4i6r0EzAOHe0Dw0RF/ NQzuQIl2Uf+jG2Zq1i+RDqK7sCh28iF1i3VH9f1en7tIWsu7XBIbkIzfMCXleAxy5tvH EcFX1ICeYGWIJwq9HwP293EhthI7ErGmnTY7Q= MIME-Version: 1.0 Received: by 10.150.214.17 with SMTP id m17mr10500860ybg.74.1272879899823; Mon, 03 May 2010 02:44:59 -0700 (PDT) Received: by 10.150.225.6 with HTTP; Mon, 3 May 2010 02:44:59 -0700 (PDT) Date: Mon, 3 May 2010 02:44:59 -0700 Message-ID: From: perikillo To: FreeBSD Mailing List Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: FreeBSD 8: gdbm.h: No such file or directory 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: Mon, 03 May 2010 09:45:09 -0000 Hi. I want to install http://www.csamuel.org/software/vacation/ Version vacation-1.2.7.0, the INSTALL say: "under FreeBSD type 'gmake' to compile the program. To install it you will need to do (as root) 'make install' or, for FreeBSD, 'gmake install'." But went I run "gmake" i got: gcc -g -Wall -DMAIN -Xlinker -warn-common -D_PATH_VACATION=\"/usr/bin/vacation\" -o vacation vacation.c strlcpy.c strlcat.c rfc822.c -lgdbm *vacation.c:81:18: error: gdbm.h: No such file or directory* In file included from vacation.c:92: vacation.h:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'db' vacation.c: In function 'main': vacation.c:200: error: 'db' undeclared (first use in this function) vacation.c:200: error: (Each undeclared identifier is reported only once vacation.c:200: error: for each function it appears in.) vacation.c:200: warning: implicit declaration of function 'gdbm_open' vacation.c:200: error: 'GDBM_NEWDB' undeclared (first use in this function) vacation.c:200: error: 'GDBM_WRITER' undeclared (first use in this function) vacation.c:222: warning: implicit declaration of function 'gdbm_close' vacation.c: In function 'recent': vacation.c:529: error: 'datum' undeclared (first use in this function) vacation.c:529: error: expected ';' before 'key' vacation.c:533: error: 'key' undeclared (first use in this function) vacation.c:535: error: 'data' undeclared (first use in this function) vacation.c:535: warning: implicit declaration of function 'gdbm_fetch' vacation.c:535: error: 'db' undeclared (first use in this function) vacation.c: In function 'setinterval': vacation.c:567: error: 'datum' undeclared (first use in this function) vacation.c:567: error: expected ';' before 'key' vacation.c:569: error: 'key' undeclared (first use in this function) vacation.c:571: error: 'data' undeclared (first use in this function) vacation.c:573: warning: implicit declaration of function 'gdbm_store' vacation.c:573: error: 'db' undeclared (first use in this function) vacation.c:573: error: 'GDBM_REPLACE' undeclared (first use in this function) vacation.c: In function 'setreply': vacation.c:583: error: 'datum' undeclared (first use in this function) vacation.c:583: error: expected ';' before 'key' vacation.c:586: error: 'key' undeclared (first use in this function) vacation.c:589: error: 'data' undeclared (first use in this function) vacation.c:591: error: 'db' undeclared (first use in this function) vacation.c:591: error: 'GDBM_REPLACE' undeclared (first use in this function) gmake: *** [vacation] Error 1 I got gdbm from ports, The Makefile is: SHELL = /bin/sh CC = gcc ARCH = $(uname -m) OS = $(uname -s) # # Default CFLAGS for all builds, architecture flags get appended below. CFLAGS = $(RPM_OPT_FLAGS) -g -Wall -DMAIN ifeq "$(ARCH)" "x86_64" # Uncomment below for backwards compatibility of gdbm files. # CFLAGS = $(CFLAGS) -m32 else ifeq "$(ARCH)" "ppc" CFLAGS = $(CFLAGS) -fsigned-char else ifeq "$(ARCH)" "ppc64" CFLAGS = $(CFLAGS) -fsigned-char endif endif endif LFLAGS = -Xlinker -warn-common IFLAGS = LIBS = -lgdbm LINT = lint -abchuvx LLIBS = ifeq "$(OS)" "FreeBSD" # PREFIX for FreeBSD PREFIX = /usr/local IFLAGS = -I/usr/local/include LIBS = -L/usr/local/lib -lgdbm else # PREFIX for Linux PREFIX = /usr endif # where things go BINDIR = $(PREFIX)/bin VACATION = $(BINDIR)/vacation VACLOOK = $(BINDIR)/vaclook MANDIR = $(PREFIX)/man/man MANEXT1 = 1 VERSION = 1 SUBVERSION = 2 PATCHLEVEL = 7 # what are we making EXTRAS = strlcpy.c strlcat.c rfc822.c SRC = vacation.c $(EXTRAS) OBJ = vacation.o BIN = vacation HDR = vacation.h # what we are packaging PACKAGE = ChangeLog Makefile README tzfile.h \ vacation vacation.c vacation.h *.man COPYING rfc822.c \ contrib vacation-1.2.6.lsm patches OLD strlcpy.c strlcat.c TGZFILE = vacation-$(VERSION).$(SUBVERSION).$(PATCHLEVEL).tar.gz # rules all: $(BIN) install: all install -s -m 755 $(BIN) $(VACATION) install -m 755 vaclook $(VACLOOK) ./html2man.pl < vacation.html > $(MANDIR)$(MANEXT1)/vacation.$(MANEXT1) install -m 444 vaclook.man $(MANDIR)$(MANEXT1)/vaclook.$(MANEXT1) vacation: $(SRC) $(HDR) $(CC) $(CFLAGS) $(IFLAGS) $(PFLAGS) $(LFLAGS) -D_PATH_VACATION=\"$(VACATION)\" -o $(BIN) $(SRC) $(LIBS) courier: $(SRC) $(HDR) $(CC) $(CFLAGS) $(IFLAGS) $(PFLAGS) $(LFLAGS) -DCOURIER -D_PATH_VACATION=\"$(VACATION)\" -o $(BIN) $(SRC) $(LIBS) debug: $(SRC) $(HDR) $(CC) $(CFLAGS) $(IFLAGS) -DDEBUG $(LFLAGS) -o $(BIN) $(SRC) $(LIBS) clean: rm -f *.o core *.out *~ Makefile.old vacation clobber: clean rm -f $(BIN) package: all strip vacation tar cvf - $(PACKAGE) | gzip > ../$(TGZFILE) vacation.c Line 81: #include "In file included from vacation.c:92:" ===> static GDBM_FILE db; in vacation.h Now, I copy /usr/local/include/gdbm.h to /usr/include But now I got: gcc -g -Wall -DMAIN -Xlinker -warn-common -D_PATH_VACATION=\"/usr/bin/vacation\" -o vacation vacation.c strlcpy.c strlcat.c rfc822.c -lgdbm /usr/bin/ld: cannot find -lgdbm gmake: *** [vacation] Error 1 Perl is install with gdbm, what could cause the error? Thanks!!!