Author Topic: [PARTIALLY SOLVED]Error while compiling from the source  (Read 1647 times)

Offline rat-network

  • Full Member
  • ***
  • Posts: 112
  • 100% normal
    • CS2D Version Downloads
[PARTIALLY SOLVED]Error while compiling from the source
« on: November 03, 2009, 05:04:40 AM »
Hi! I'm having a trouble trying to make programs install from the source. No matter what program i try, i always get this error:
-------------------
checking how to run the C preprocessor... /lib/cpp
configure: error: in `/home/normal/Desktop/warzone2100-2.2.4':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
--------------------

I always get this error when i run "./configure". I don't know what that means, but i tried everything i know, and everything i didn't know.
Hope you can help me!

Thank you!   :-X

EDIT: Here is the full output if i missed something:
Quote from: konsole
[normal@localhost ~]$ cd ./Desktop/warzone2100-2.2.4
[normal@localhost warzone2100-2.2.4]$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... 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 ISO C89... none needed
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
checking for ranlib... ranlib
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for bison... bison -y
checking for bison >= 1.31... found 2.4.1, ok
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... none needed
checking whether yytext is a pointer... no
checking for flex >= 2.5.33... found 2.5.33, ok
checking for flex != 2.5.34... not found, good
checking whether perl executable path has been provided... no
checking for perl... /usr/bin/perl
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for perl version... 5.10.1
checking for gawk... (cached) gawk
checking how to run the C preprocessor... /lib/cpp
configure: error: in `/home/normal/Desktop/warzone2100-2.2.4':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
[normal@localhost warzone2100-2.2.4]$
« Last Edit: November 04, 2009, 10:43:42 AM by rat-network »
New to Linux

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6245
Re: Error while compiling from the source
« Reply #1 on: November 03, 2009, 06:19:59 AM »
You need to install glibc-headers-devel package.
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline rat-network

  • Full Member
  • ***
  • Posts: 112
  • 100% normal
    • CS2D Version Downloads
Re: Error while compiling from the source
« Reply #2 on: November 03, 2009, 06:29:16 AM »
You need to install glibc-headers-devel package.
Thanks! It did the trick. But now its complaining about SDL:

Quote from: konsole
checking for SDL... configure: error: Package requirements (sdl >= 1.2) were not met:

No package 'sdl' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables SDL_CFLAGS
and SDL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
New to Linux

Offline rat-network

  • Full Member
  • ***
  • Posts: 112
  • 100% normal
    • CS2D Version Downloads
Re: Error while compiling from the source
« Reply #3 on: November 03, 2009, 06:45:29 AM »
Install libSDL-devel and try again.
When i tried to mark it this is what i got:

libSDL-devel:
 Depends: devel(libaa)  but it is not installable
 Depends: devel(libgpm)  but it is not installable
 Depends: devel(libslang)  but it is not installable

Like destiny hates me  ;D
New to Linux

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6245
Re: Error while compiling from the source
« Reply #4 on: November 03, 2009, 06:56:00 AM »
somebody from up above could be looking out for you and putting all these obstacles to protect you from what lies ahead .. :D :D :D

did you click "refresh" before attempting to install that package? ..if yes, then that package is broken and you can report it as such in the broken package area and what for it to be fixed ..

what program are you trying to compile from source? ..you can request it in request section to help others who may want to run it in the future
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline rat-network

  • Full Member
  • ***
  • Posts: 112
  • 100% normal
    • CS2D Version Downloads
Re: Error while compiling from the source
« Reply #5 on: November 03, 2009, 07:10:09 AM »
Wow, dependencies hell in full glory :) Haven't see this in a while...What if you try to install libSDL-devel from command line?
Quote
apt-get install libSDL-devel

edit: wait a sec, I think I remember Tex saying something about SDL being broken.....?

Quote from: terminal
Reading Package Lists... Done
Building Dependency Tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or that some of the repositories
in use are in an inconsistent state at the moment.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  libSDL-devel: Depends: devel(libaa) but it is not installable
                Depends: devel(libgpm) but it is not installable
                Depends: devel(libslang) but it is not installable
E: Broken packages

somebody from up above could be looking out for you and putting all these obstacles to protect you from what lies ahead .. :D :D :D

did you click "refresh" before attempting to install that package? ..if yes, then that package is broken and you can report it as such in the broken package area and what for it to be fixed ..

what program are you trying to compile from source? ..you can request it in request section to help others who may want to run it in the future
I'm refreshing the repos all day  :D It still shows the same error. BTW, should i really report it? Tex said that some packages were pulled from the repos. Maybe i should wait a day, what do you think?

I'm trying to compile "Warzone2100" (a RTS game). The game exists in the repos, but its outdated so I'm trying to compile it.(. I already suggested it, but there are much more important packages that need to be updated, so mine is not a high priority update ;)
New to Linux

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: Error while compiling from the source
« Reply #6 on: November 03, 2009, 07:17:50 AM »
It has already been reported here:
http://www.pclinuxos.com/forum/index.php/topic,64576.0.html
and here:
http://www.pclinuxos.com/forum/index.php/topic,64574.0.html

Tex is aware of it.  It's getting worked on.
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline rat-network

  • Full Member
  • ***
  • Posts: 112
  • 100% normal
    • CS2D Version Downloads
Re: Error while compiling from the source
« Reply #7 on: November 03, 2009, 07:21:30 AM »
It has already been reported here:
http://www.pclinuxos.com/forum/index.php/topic,64576.0.html
and here:
http://www.pclinuxos.com/forum/index.php/topic,64574.0.html

Tex is aware of it.  It's getting worked on.

Oh, thanks for the warning. I was suspecting that was the problem, but... silly me  :D

EDIT: Ok, packages are now uploaded to the repos, and i continued my compiling "warzone2100". It asked me 4 packages to install by now, but i found them with no trouble.

I will post any errors i encounter ;)

EDIT2: Found it out

EDIT3: Well, I've managed to make a rpm with "checkinstall" but it's not working (running it, not installing it).
I got his error:

[normal@localhost ~]$ warzone2100
warzone2100: error while loading shared libraries: libGLC.so.0: cannot open shared object file: No such file or directory
[normal@localhost ~]$
« Last Edit: November 04, 2009, 10:43:17 AM by rat-network »
New to Linux

Offline Chomp

  • Full Member
  • ***
  • Posts: 173
Re: [PARTIALLY SOLVED]Error while compiling from the source
« Reply #8 on: November 13, 2009, 01:32:21 AM »
Have you tried using djl?  It's in the repos, it's a game manager for linux.  It will download and install the game for you.

Offline rat-network

  • Full Member
  • ***
  • Posts: 112
  • 100% normal
    • CS2D Version Downloads
Re: [PARTIALLY SOLVED]Error while compiling from the source
« Reply #9 on: November 14, 2009, 04:01:18 AM »
Have you tried using djl?  It's in the repos, it's a game manager for linux.  It will download and install the game for you.
Thanks! Its really good game manager, The problem is that it complains about something.

But that's not a problem anymore because I fixed the problem about libGLC. I had to add a path to specific file. I don't remember anymore :P
Also, I noticed that its really lagging all the time. The version in the repos didn't lag at all.

Really weird...
New to Linux