LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-14-2005, 02:14 AM   #1
Hosiah
Member
 
Registered: Sep 2004
Location: Des Moines, Iowa
Distribution: Slackware, Mandriva, Debian derivatives, +BSD/ Solaris/ Minix/ plan9/ GNU/HURD...
Posts: 185

Rep: Reputation: 30
Mandriva 10.1 missing include (.h) files?


So I go to download/gunzip/untar/compile the extension packs for Blackbox , and the configure script stopped dead in it's tracks saying it couldn't find the X header files.

I checked in /usr/include, and sure enough, no X11 folder. I checked my Slackware drive, and it has a softlink /usr/include/X11 -> /usr/X11R6/include/X11. So I put that in Mandriva's /usr/include, and tried it again with the same error. I check the folder - and it has nothing but pixmaps/bitmaps in it, no include files!

So, are they hidden somewhere else, or do I have to download them? Where can I get them free? (Mandriva page I found charges for them.)

For that matter, I seem to be missing GTK and SDL headers, too. I have all the libraries, because I've run proggies in Mandriva which use those libraries, without a hitch. Just can't compile more of the same.

EDIT: I just checked things on my Slackware drive, and an SDL and an X11 program compiled without a hitch. Now these two drives live on the same computer, and it's been slow going getting each system to access the other's drive. I keep running into permission problems left and right, but I'm working them out one by one. Anyway, I found X11.h and all it's friends on the Slack system.

My question now: could I simply softlink from one drive to the library files of the other? Or could I copy Slackware's headers over to Mandriva's drive? My main concern is breaking something with incompatabilities, and make and configure being so doggone *picky*...


Last edited by Hosiah; 07-14-2005 at 02:36 AM.
 
Old 07-14-2005, 05:03 AM   #2
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
Let me get this straight: you have been able to *run precompiled* programs that depend on SDL/X/..., but not compile them yourself.

That sounds like a classic case of the .so being in one package and the .h in another.

In debian, the .h-packages are called developer- (or just -dev)-packages; I would suspect they're called something similar in your distro.

Install them. All the worlds problems should now be solved

hth --Jonas
 
Old 07-14-2005, 04:34 PM   #3
Hosiah
Member
 
Registered: Sep 2004
Location: Des Moines, Iowa
Distribution: Slackware, Mandriva, Debian derivatives, +BSD/ Solaris/ Minix/ plan9/ GNU/HURD...
Posts: 185

Original Poster
Rep: Reputation: 30
thanks, anyway, jonas, but I don't think Debian advice is likely to help with this Mandriva question.

I have groveled through all three free disks of the Mandriva install - no X11-devel anything to be found. Ditto any other package containing header files.

They're all present on both my Fedora and Slackware installs, so I'm going to try to port the headers to Mandriva, or download a fresh supply from X's home site. Surely, somebody, somewhere in the Mandriva world has run into this situation before? Installing something via source tarball is still the de facto standard methods of aquiring new programs in Linux, isn't it?

Not that I mean to make a stink about it, but doesn't the GPL require a distro to supply some kind of source code gratis?
 
Old 07-14-2005, 08:48 PM   #4
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
blackbox is in the main repository. If you don't have the full main repos head over to http://easyurpmi.zarb.org and configure your sources.

If for some reason you still want to compile it yourself then you should know that Mandrake uses x.org not X11. The headers for that appear to be in libxorg-x11-devel which is in the main repos as well.

If you have a download (or 'discovery') version of mandrake it doesn't include the entire main repos (its over 3500 packages) so you might not have all the -devel packages on your CDs or DVD, which is why you need to setup the repos at easyurpmi.
 
Old 07-14-2005, 08:55 PM   #5
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
Quote:
thanks, anyway, jonas, but I don't think Debian advice is likely to help with this Mandriva question.
... I think it's similar on Red Hat's distros, so it's not completely debian-specific.

Quote:
I have groveled through all three free disks of the Mandriva install - no X11-devel anything to be found. Ditto any other package containing header files.
Does mandrake provide a way of looking up from file name -> package name? Then use that.
It's possible you searched for the `wrong' phrases; my search for "X dev" turned up the following interesting package names: x-dev, x-window-system-dev, xlibs-dev, libx11-dev, plus some extensions for input, printing, ...

Quote:
They're all present on both my Fedora and Slackware installs, so I'm going to try to port the headers to Mandriva, or download a fresh supply from X's home site. Surely, somebody, somewhere in the Mandriva world has run into this situation before?
Well, try using the headers from your other installs--but be *very* careful to check the X versions against each other. A falsely declarated function might lead to hard-to-pin-down bugs. And obvious bugs (i.e. segfaults) if functions are falsely declared to recieve non-pointers.

Quote:
Installing something via source tarball is still the de facto standard methods of aquiring new programs in Linux, isn't it?
I wouldn't know. I only have experince with to GNU/Linux distros:
1) rh6.2, where I only installed what was on the (two) CDs (long ago).
2) (current) Debian GNU/Linux, where I # apt-get install irssi-text --and it Just Works.
(from time to time I use Synaptic (GUI frontend) instead; that Just Works too).

I always recommend to grab the binary packages from your distros repositories; that's what I know, and that works for me. I've heard it works for other distros too, but it remains to be investigated how many of those are debian-based

Quote:
Not that I mean to make a stink about it, but doesn't the GPL require a distro to supply some kind of source code gratis?
Quote:
(from the GPL)
3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:

a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,

b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,

c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)

The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.

If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.
hth --Jonas
 
Old 07-14-2005, 09:25 PM   #6
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Quote:
Does mandrake provide a way of looking up from file name -> package name? Then use that
In the install software GUI in the Mandrake Control Centre you can search for package names (urpmq is the command line equivalent). The urpmf command can search for which package provides a particular file wether that file exists or not and wether the package is installed or not.

Quote:
A falsely declarated function might lead to hard-to-pin-down bugs. And obvious bugs (i.e. segfaults) if functions are falsely declared to recieve non-pointers.
Too right, installing the wrong version of the X headers is so easy to do - you can't just download them off the site. He's letting himself in for a whole world of trouble when it would be simple just to look for the correct RPM

Quote:
I always recommend to grab the binary packages from your distros repositories
Exactly - installing RPMs written for Mandriva is the way that software is meant to be installed on Mandriva, and I guess the same with Debian and their DEB packages through apt-get. No one using these 2 distros installs vanilla tar balls unless they have a good reason too, its not a good way of installing software at all.

Hosiah please setup your repositories at easyurpmi then learn to use either the urpmi commands or the software install/remove GUIs in the Mandrake Control Centre. This will avoid all this trouble and make your installation of blackbox incredibly easy.

Last edited by tkedwards; 07-14-2005 at 09:28 PM.
 
Old 07-17-2005, 10:01 PM   #7
Hosiah
Member
 
Registered: Sep 2004
Location: Des Moines, Iowa
Distribution: Slackware, Mandriva, Debian derivatives, +BSD/ Solaris/ Minix/ plan9/ GNU/HURD...
Posts: 185

Original Poster
Rep: Reputation: 30
Quote:
Hosiah please setup your repositories at easyurpmi then learn to use either the urpmi commands or the software install/remove GUIs in the Mandrake Control Centre. This will avoid all this trouble and make your installation of blackbox incredibly easy.
I thought I owed everybody an explanation/followup, since I left the thread hanging here. Thank you all for your knowledgable help, as always.

My one machine that dual-boots Mandriva/Slackware is not online. So anything that I get onto it has to be downloaded to my Fedora/Win-duhs dual-booter, then ported. So, no live updating where the operating system has to talk directly to an online repository.

In the meantime, I've gone back over to the Slackware side of the drive, where I now have a four-way *box manager system going with Blackbox, Fluxbox, FVWM, and Window Manager all inter-connected (switch from one to the other at a click), and all the trimmings for each system!

Quote:
No one using these 2 distros installs vanilla tar balls unless they have a good reason too, its not a good way of installing software at all.
Well, Dunno what to think of it. After all, every program starts life out as source code, you know. The whole point of Linux is open source - what good is source your machine can't handle? Show me a site like http://dockapps.org that doesn't release most of it's material in raw code.

Anyway, it isn't just a matter of missing header files, the entire programming infrastructure simply isn't there in Mandriva, thought I notice it still supports light stuff like Python/Bash/Perl/etc. But after all, I picked Mandriva to go with Slackie specifically because I wanted two distros at the opposite ends of the spectrum, as different from each other as they could be, and I picked right!
 
Old 07-17-2005, 10:15 PM   #8
Hosiah
Member
 
Registered: Sep 2004
Location: Des Moines, Iowa
Distribution: Slackware, Mandriva, Debian derivatives, +BSD/ Solaris/ Minix/ plan9/ GNU/HURD...
Posts: 185

Original Poster
Rep: Reputation: 30
Before anybody jumps me - don't get me wrong, I'm not knocking Mandriva! Mandriva impressed me with it's easy install, it auto-detected every stick of my hardware without my having to configure *anything*, and it comes with all the best games and killer multimedia apps. So you see, Mandriva is the play-distro for the kid in me, Slackware is the work-distro for the boring adult in me!
 
Old 07-17-2005, 11:06 PM   #9
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Quote:
programming infrastructure simply isn't there in Mandriva
Yes in the download edition its not included on the CDs. Its all still there in the powerpack editions or for free in the repositories. If you don't have your mandriva machine connected to the net you could always download the files you need from the repo (they're just FTP or HTTP sites) or use a program like fmirror to sync it all across. Then you can just copy the files over to your Mandriva machine however you normally do this.
 
  


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
Want to compile kernel, missing include/linux/autoconf.h pjz Linux - Software 4 06-17-2005 08:06 AM
\X Windows include files missing GNUROCKS Linux - Newbie 3 06-10-2005 07:26 PM
Can't compile wireless driver - missing include file?! soultaco Linux - Laptop and Netbook 1 05-12-2004 11:14 PM
/include/linux/version.h is missing!!! eisheth.zenunim Linux From Scratch 2 03-23-2004 05:32 PM
X include files evian Linux - General 6 03-25-2003 03:53 PM

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

All times are GMT -5. The time now is 10:33 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