Menu

#13 Doesn't want to install

open
nobody
None
2
2014-11-14
2014-04-23
No

Trying to compile in Oracle Enterprise Linux 6.4 64bit.
cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.4 (Santiago)

I've tried using the latest beta and some older versions with the same result.

yum list gdbm

Installed Packages
gdbm.i686 1.8.0-36.el6
gdbm.x86_64 1.8.0-36.el6

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)
make: *** [vacation] Error 1

Discussion

  • Frankie Alvarado

    Same result if I try to run "make" or "make install"

     
  • Chris Samuel

    Chris Samuel - 2014-04-24

    You need to make sure you have the gdbm-devel RPM installed, that is the one that includes the gdbm.h header file you seem to be missing.

    Hope that helps!
    Chris

     
  • Frankie Alvarado

    That resolved my issue.

     

Log in to post a comment.

MongoDB Logo MongoDB