LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-29-2006, 02:22 PM   #1
gaddargarson
LQ Newbie
 
Registered: Sep 2004
Location: izmir
Distribution: mandrake,GBL,fedora core,slackware
Posts: 26

Rep: Reputation: 15
Unhappy can't compile kdevelop from source


Hi everybody,
I can't compile kdevelop 3.3.2 and 3.3.3 from source.The error message is the same."configure" step is successful but I get this error at "make" step;


Quote:

catalog.cpp:36:2: #error "BDB Version 4 required."
catalog.cpp: In member function `void Catalog::addIndex(const QCString&)':
catalog.cpp:205: error: invalid conversion from `int' to `DBTYPE'
catalog.cpp:205: error: too many arguments to function
catalog.cpp: In member function `virtual void Catalog:pen(const QString&)':
catalog.cpp:273: error: invalid conversion from `int' to `DBTYPE'
catalog.cpp:273: error: too many arguments to function
catalog.cpp: In member function `QValueList<Tag> Catalog::query(const
QValueList<QPair<QCString, QVariant> >&)':
catalog.cpp:434: warning: comparison between signed and unsigned integer
expressions
make[3]: *** [catalog.lo] Hata 1
make[3]: Leaving directory `/home/onur/Indirilenler/kde3.5.2/kdevelop-3.3.3/lib/catalog'
make[2]: *** [all-recursive] Hata 1
make[2]: Leaving directory `/home/onur/Indirilenler/kde3.5.2/kdevelop-3.3.3/lib'
make[1]: *** [all-recursive] Hata 1
make[1]: Leaving directory `/home/onur/Indirilenler/kde3.5.2/kdevelop-3.3.3'
make: *** [all] Hata 2
It seems like a code bug.But I'm not good at cpp.
 
Old 06-29-2006, 04:42 PM   #2
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
did you install 'db'? dont know what distro this question is regarding, but from slackware, only -current includes it.

so maybe you dont have that isntalled or the correct version. check out the other requirements here and make sure youv met them.
 
Old 06-29-2006, 04:47 PM   #3
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
as nandroj sais: you'll need to install db4.
you can find it in the pasture directory of slackware.

here's a mirror : ftp://ftp.nluug.nl/pub/os/Linux/distr/slackware/

egag
 
Old 06-30-2006, 06:18 AM   #4
gaddargarson
LQ Newbie
 
Registered: Sep 2004
Location: izmir
Distribution: mandrake,GBL,fedora core,slackware
Posts: 26

Original Poster
Rep: Reputation: 15
I've looked at requirements of kdevelop 3.3.x. It says that;
Berkley DB >= 3.0 and <= 4.1 is needed. My system have these packages;
* db31-3.1.17-i486-1.tgz
* db3-3.3.11-i486-4.tgz
* db4-4.4.16-i486-1.tgz
Package descriptions of them say that they are "Berkeley Database libraries".
Aren't these packages enough to compile kdevelop?

NOTE: When I looked at home page of Berkelery DB, there was 4.4.20 version and tar.gz size of the package was 7.9 Mb.Packages in my system aren't more than 2.7 Mb.
 
Old 06-30-2006, 06:36 AM   #5
dunric
Member
 
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498

Rep: Reputation: 100Reputation: 100
Does gcc have properly set search path for include files ? Try bellow code, rerun ./configure and make and let us know if it did helped.
Code:
[ -z ${C_INCLUDE_PATH} ] && export C_INCLUDE_PATH=/usr/include/db4 || export C_INCLUDE_PATH=/usr/include/db4:${C_INCLUDE_PATH}
If you have installed headers of BDB4 in another place, tweak it to appropriate include paths.
 
Old 06-30-2006, 07:08 AM   #6
evilDagmar
Member
 
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480

Rep: Reputation: 31
Just to be elegant about it... (and since we have bash for sure)

C_INCLUDE_PATH=${C_INCLUDE_PATH:+$C_INCLUDE_PATH:}/usr/include/db4

(advantage: no external calls to /usr/bin/test) The whole slew of ${blah:funnychar blah} constructs in bash are pretty handy.

It's almost certainly the package being dim-witted, but Patrick puts the db.h from BerkleyDB v3 in /usr/include (as a symlink) so it should have been able to detect it that way.

You also might want to look at http://www.linuxquestions.org/questi...d.php?t=427945 for more hints. They had essentially the same problem.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kdevelop saying I can't compile C++ programs tmchardy Programming 6 03-08-2006 09:45 PM
Kdevelop newbie compile problems blastradius Programming 4 10-28-2005 05:19 PM
odd kdevelop compile error shishimo Linux - Software 0 01-27-2005 02:44 PM
kdevelop compile problems Phalloides Linux - Software 0 01-22-2005 10:04 AM
kdevelop doesn't run the programs I compile frogbert Linux - Software 2 12-10-2004 05:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:58 AM.

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
Open Source Consulting | Domain Registration