LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-29-2004, 03:01 AM   #1
trotters78
LQ Newbie
 
Registered: Aug 2004
Location: Japan
Distribution: Fedora Core 2/ FreeBSD 4.9
Posts: 12

Rep: Reputation: 0
what is db_185.h ?


Dear all,

I am working on Fedora Core 2 platform.

When i "man dbopen", i get the man page for berkeley db's dbopen.
It was clearly written that the I need to include the <db.h> to use the function.

However, the linking failed even when i tried to link with "-ldb" flag.

I checked the usr/include/db.h and could not find "dbopen" in the db.h file.
instead I found it declared in usr/include/db_185.h

When i used "db_185.h" instead, everything compiled fine.

Does anyone know what is db_185.h used for?
Is it safe for me to use it instead of db.h?

Thank you in advance

Daryl
 
Old 06-16-2020, 12:14 PM   #2
ozanbaba
Member
 
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 14.1
Posts: 679

Rep: Reputation: 95
Well, this is very old message but I was looking for similar information and came by it. I'm going to drop all the information here for future reference.
So I was reading some source code which uses makemap or dbload. So I looked for the information and here's the deal:
db.h comes from Berkeley Database Libraries. Years ago, those Berkeley DB library api provided by the GLibc itself but they removed it. They used head file db.h for it. Right now however the API is provided by seperate library called libdb (Debian package name is libdb-dev for the headers) and it turned to db_185.h. I don't know the reason why and the debian package also provides db.h header as well.
I hope someone can provide more information about the history here and header's status on other systems as well.

Regards,
Ozan
 
Old 06-22-2020, 03:00 PM   #3
SoftSprocket
Member
 
Registered: Nov 2014
Posts: 305

Rep: Reputation: Disabled
I'm not sure exactly what you're looking for but Berkeley DB was written originally by some people at UC Berkeley. They went on to found Sleepycat Software to support it. They were purchased by Oracle who now owns the rights to it. I imagine the 185 refers to version 18.5 of the software and the header is for internal versioning purposes.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration