LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 03-13-2005, 02:13 AM   #1
cyborg_jt
Member
 
Registered: Jan 2004
Location: New Zealand
Distribution: 2.6.11-gentoo-r3
Posts: 120

Rep: Reputation: 15
Trying to compile dclib


dclib0.37 trying to compile for dcgui
but I get this message and its not telling me anything

[freeman@localhost dclib-0.3.7]$ ./configure
./configure: line 1150: config.log: Permission denied
[freeman@localhost dclib-0.3.7]$ su
Password:
[root@localhost dclib-0.3.7]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking whether g++ supports -Wundef... no
checking whether g++ supports -Wno-long-long... no
checking whether g++ supports -Wnon-virtual-dtor... no
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
 
Old 03-13-2005, 03:34 AM   #2
cyborg_jt
Member
 
Registered: Jan 2004
Location: New Zealand
Distribution: 2.6.11-gentoo-r3
Posts: 120

Original Poster
Rep: Reputation: 15
Ok so I'v tried to compile xmms and superKaramba and it brings up the same message.
Damn I wish I had irc, can't atm because wireless doesn't let me do it.
 
Old 03-13-2005, 09:54 AM   #3
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Why not use the URPMI sources instead?

All of this is already available in Mandrakeified form...

BTW: You are probably missing some developement libs.
 
Old 03-13-2005, 09:53 PM   #4
cyborg_jt
Member
 
Registered: Jan 2004
Location: New Zealand
Distribution: 2.6.11-gentoo-r3
Posts: 120

Original Poster
Rep: Reputation: 15
because I like doing it this way even if its harder, just means that I know how to do it

How can I tell which ones I need? docs have pretty much said what I need but I got em
 
Old 03-14-2005, 01:11 AM   #5
cyborg_jt
Member
 
Registered: Jan 2004
Location: New Zealand
Distribution: 2.6.11-gentoo-r3
Posts: 120

Original Poster
Rep: Reputation: 15
and I think its also the reason why I can't run java anymore
 
Old 03-14-2005, 01:53 AM   #6
bunnadik
Member
 
Registered: Jan 2005
Location: Övik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30
Your problem seems to be cpp to begin with.
Do a 'cpp --version' and check which version of cpp you have installed.
Does that match your gcc version ('gcc --version')?

In MDK10.1 there are three different versions (3.4, 3.3 and 2.96) and I'm not sure
if a cpp-2.96 works with gcc-3.3 for instance.

It might also be a symlink problem. In MDK10.1 /lib/cpp is a symlink to /etc/alternatives/lib_cpp
which in turn links to /usr/bin/cpp-3.4.1. Perhaps you have a broken link somewhere.

- Peder
 
Old 03-15-2005, 01:05 AM   #7
cyborg_jt
Member
 
Registered: Jan 2004
Location: New Zealand
Distribution: 2.6.11-gentoo-r3
Posts: 120

Original Poster
Rep: Reputation: 15
both are the same version and I checked the links and it seems to be pointing to cpp-3.4.1 fine.
Im stuck real bad and im not gona give up
 
Old 03-15-2005, 01:24 AM   #8
bunnadik
Member
 
Registered: Jan 2005
Location: Övik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30
Ahhh, the cpp stuff was a red herring. dclib is written in C++ so you need g++ installed, which you don't have.

If you run MDK-10.0 do 'urpmi gcc3.4-c++' , in 10.1 do 'urpmi gcc-c++'

- Peder
 
Old 03-15-2005, 02:01 AM   #9
cyborg_jt
Member
 
Registered: Jan 2004
Location: New Zealand
Distribution: 2.6.11-gentoo-r3
Posts: 120

Original Poster
Rep: Reputation: 15
Ok I'll try that ( I don't have internet to linux yet)
When I enter that cpp error into the search otherpeople have the same problem, on one of them the solution was to install kernel-headers, but when I do a urpmi kernel-headers it goes everything installed, when I do a urpmq kernel-headers it says no such package
 
Old 03-15-2005, 03:23 AM   #10
bunnadik
Member
 
Registered: Jan 2005
Location: Övik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30
I don't think MDK has a kernel-headers package, you'd have to install the entire kernel source.
But I don't think that's your primary problem. As seen in your first post configure is trying to find
a variety of c++ compilers and find none.

- Peder
 
Old 03-15-2005, 04:08 AM   #11
cyborg_jt
Member
 
Registered: Jan 2004
Location: New Zealand
Distribution: 2.6.11-gentoo-r3
Posts: 120

Original Poster
Rep: Reputation: 15
for some reason mandrake 10.1 doesn't have gcc-c++ or gcc3.4-c++
I'll download them
 
Old 03-15-2005, 04:56 PM   #12
cyborg_jt
Member
 
Registered: Jan 2004
Location: New Zealand
Distribution: 2.6.11-gentoo-r3
Posts: 120

Original Poster
Rep: Reputation: 15
Tried to find it, can't

Note: I don't have internet
 
Old 03-15-2005, 07:20 PM   #13
cyborg_jt
Member
 
Registered: Jan 2004
Location: New Zealand
Distribution: 2.6.11-gentoo-r3
Posts: 120

Original Poster
Rep: Reputation: 15
and gcc-c++ isn't on the disks for some reason
 
Old 03-15-2005, 11:24 PM   #14
cyborg_jt
Member
 
Registered: Jan 2004
Location: New Zealand
Distribution: 2.6.11-gentoo-r3
Posts: 120

Original Poster
Rep: Reputation: 15
Damn
My Gcc version is 3.4.1-3mdk as well as ccp

I need gcc-c++3.4.1-3mdk which I cannot find!
 
Old 03-16-2005, 01:04 AM   #15
bunnadik
Member
 
Registered: Jan 2005
Location: Övik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30
Ahh, you have MDK 10.1 Community Edition, right? The gcc in the Official Edition is version gcc-3.4.1-4mdk not 3mdk.
CE probably lacks the c++ package.

See if you can get a hold of OE and do an upgrade.

- Peder
 
  


Reply



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
anyone with deb for dclib-0.3.7? kb_ganesh Ubuntu 1 09-12-2005 03:44 AM
What to Compile Next? AxXium Slackware 6 07-06-2005 09:32 AM
ntop compile/post-compile problem? tjb Linux - Software 3 12-28-2004 04:22 PM
2.6.5 compile - i just don't get it bugsbunny Slackware 27 06-18-2004 09:55 AM
Compile help Twiggy794 Linux - Software 1 12-03-2003 01:53 AM

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

All times are GMT -5. The time now is 08:51 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
Open Source Consulting | Domain Registration