Scons can't find boost serialization

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Message
Author
User avatar
loonycyborg
Compilation Expert
Posts: 219
Joined: Thu Jul 06, 2006 10:30 pm
Location: Russia/Moscow

Re: Scons can't find boost serialization

#46 Post by loonycyborg »

yoshi wrote:ok which package has gl?
Package of your videocard's driver, e.g. nvidia-glx-dev for nvidia.
In Soviet Russia, forum posts YOU!!

User avatar
OndrejR
Space Dragon
Posts: 339
Joined: Thu Oct 02, 2008 11:00 pm
Location: Slovakia

Re: Scons can't find boost serialization

#47 Post by OndrejR »

IConrad wrote:Alright, my VM efforts have failed me for now...

I'm still stuck in the same position I was before. Would not having libc6 version 2.7 really cause me to have the issue of scons not being able to find libboost_serialization when attempting to compile FreeOrion itself, while not having that issue w/ GG?

I tried to use the boost_lib_suffix advice from loonycyborg but my library seems to have no special suffix? :?
If you have file

Code: Select all

/usr/lib/libboost_serialization-mt.so
Then your suffix is mt. Could you try scons --clean first, then configure with suffix and then scons with suffix(and post your log with error)?

yoshi
Space Squid
Posts: 50
Joined: Wed Oct 24, 2007 7:17 pm

Re: Scons can't find boost serialization

#48 Post by yoshi »

your kidding me i have to risk buggering my video settings in order to install this game?


i do have the non dev version of that package installed

User avatar
IConrad
Space Kraken
Posts: 163
Joined: Mon Nov 10, 2008 5:55 pm

Re: Scons can't find boost serialization

#49 Post by IConrad »

Then your suffix is mt. Could you try scons --clean first, then configure with suffix and then scons with suffix(and post your log with error)?
I have both with and without the -mt.

I'm still erroring out of the scons configure.

Config.log as follows:

Code: Select all

file /home/ian/freeorion/FreeOrion/SConstruct,line 185:
	Configure(confdir = .sconf_temp)
scons: Configure: Checking for Py_Initialize() in C library python2.5... 
.sconf_temp/conftest_0.c <-
  |
  |
  |#include "Python.h"
  |
  |int
  |main() {
  |  Py_Initialize();
  |return 0;
  |}
  |
gcc -o .sconf_temp/conftest_0.o -c -I/usr/include/python2.5 .sconf_temp/conftest_0.c
close failed: [Errno 9] Bad file descriptor
gcc -o .sconf_temp/conftest_0 .sconf_temp/conftest_0.o -L/usr/lib -lpython2.5
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for pkg-config... 
pkg-config --atleast-pkgconfig-version 0.15.0
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for GiGiSDL >= 0.6.0... 
pkg-config GiGiSDL --atleast-version 0.6.0
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for C++ header file boost/shared_ptr.hpp... 
.sconf_temp/conftest_3.cpp <-
  |
  |#include "boost/shared_ptr.hpp"
  |
  |
g++ -o .sconf_temp/conftest_3.o -c -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/python2.5 -I/usr/local/include -I/usr/include/SDL -I/usr/include/boost .sconf_temp/conftest_3.cpp
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking Boost version >= 1.36... 
scons: Configure: (cached) yes

scons: Configure: Checking for C++ header file boost/graph/dijkstra_shortest_paths.hpp... 
.sconf_temp/conftest_4.cpp <-
  |
  |#include <boost/graph/dijkstra_shortest_paths.hpp>
  |
  |
g++ -o .sconf_temp/conftest_4.o -c -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/python2.5 -I/usr/local/include -I/usr/include/SDL -I/usr/include/boost .sconf_temp/conftest_4.cpp
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for boost::archive::binary_iarchive::is_saving() in C++ library boost_serialization-mt... 
.sconf_temp/conftest_5.cpp <-
  |
  |
  |#include "boost/archive/binary_iarchive.hpp"
  |
  |int
  |main() {
  |  boost::archive::binary_iarchive::is_saving();
  |return 0;
  |}
  |
g++ -o .sconf_temp/conftest_5.o -c -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/python2.5 -I/usr/local/include -I/usr/include/SDL -I/usr/include/boost .sconf_temp/conftest_5.cpp
close failed: [Errno 9] Bad file descriptor
scons: Configure: Caught exception while building ".sconf_temp/conftest_5":

Traceback (most recent call last):
  File "/usr/lib/scons/SCons/Job.py", line 198, in start
    task.prepare()
  File "/usr/lib/scons/SCons/Taskmaster.py", line 186, in prepare
    t.prepare()
  File "/usr/lib/scons/SCons/Node/FS.py", line 2558, in prepare
    SCons.Node.Node.prepare(self)
  File "/usr/lib/scons/SCons/Node/__init__.py", line 356, in prepare
    raise SCons.Errors.StopError, msg % (i, self)
SCons.Errors.StopError: Implicit dependency `/usr/local/lib/libGiGi.so' not found, needed by target `.sconf_temp/conftest_5'.
scons: Configure: no

scons: Configure: Checking for boost::archive::binary_iarchive::is_saving() in C++ library boost_serialization-mt-mt... 
.sconf_temp/conftest_6.cpp <-
  |
  |
  |#include "boost/archive/binary_iarchive.hpp"
  |
  |int
  |main() {
  |  boost::archive::binary_iarchive::is_saving();
  |return 0;
  |}
  |
g++ -o .sconf_temp/conftest_6.o -c -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/python2.5 -I/usr/local/include -I/usr/include/SDL -I/usr/include/boost .sconf_temp/conftest_6.cpp
close failed: [Errno 9] Bad file descriptor
scons: Configure: Caught exception while building ".sconf_temp/conftest_6":

Traceback (most recent call last):
  File "/usr/lib/scons/SCons/Job.py", line 198, in start
    task.prepare()
  File "/usr/lib/scons/SCons/Taskmaster.py", line 186, in prepare
    t.prepare()
  File "/usr/lib/scons/SCons/Node/FS.py", line 2558, in prepare
    SCons.Node.Node.prepare(self)
  File "/usr/lib/scons/SCons/Node/__init__.py", line 356, in prepare
    raise SCons.Errors.StopError, msg % (i, self)
SCons.Errors.StopError: Implicit dependency `/usr/local/lib/libGiGi.so' not found, needed by target `.sconf_temp/conftest_6'.
scons: Configure: no

scons: Configure: Boost configuration... 
scons: Configure: (cached) no
There's no change I can see here. Scons can find Boost, but not boost serialization -- despite it being installed. And I was able to compile successfully when the FO only required Boost 1.35. It's only since the move to 1.36 (I'm currently using 1.37, but this error existed w/ 1.36 as well) that this has been an issue for me.

I guess it's back to waiting for someone to make a binary that's compatible w/ amd64 architecture. :(

User avatar
loonycyborg
Compilation Expert
Posts: 219
Joined: Thu Jul 06, 2006 10:30 pm
Location: Russia/Moscow

Re: Scons can't find boost serialization

#50 Post by loonycyborg »

IConrad wrote:

Code: Select all

g++ -o .sconf_temp/conftest_5.o -c -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/python2.5 -I/usr/local/include -I/usr/include/SDL -I/usr/include/boost .sconf_temp/conftest_5.cpp
close failed: [Errno 9] Bad file descriptor
scons: Configure: Caught exception while building ".sconf_temp/conftest_5":

Traceback (most recent call last):
  File "/usr/lib/scons/SCons/Job.py", line 198, in start
    task.prepare()
  File "/usr/lib/scons/SCons/Taskmaster.py", line 186, in prepare
    t.prepare()
  File "/usr/lib/scons/SCons/Node/FS.py", line 2558, in prepare
    SCons.Node.Node.prepare(self)
  File "/usr/lib/scons/SCons/Node/__init__.py", line 356, in prepare
    raise SCons.Errors.StopError, msg % (i, self)
SCons.Errors.StopError: Implicit dependency `/usr/local/lib/libGiGi.so' not found, needed by target `.sconf_temp/conftest_5'.
scons: Configure: no
Is /usr/local/lib/libGiGi.so a broken symlink? If it is, nuke it.
In Soviet Russia, forum posts YOU!!

User avatar
IConrad
Space Kraken
Posts: 163
Joined: Mon Nov 10, 2008 5:55 pm

Re: Scons can't find boost serialization

#51 Post by IConrad »

I went and did a clean svn of freeorion. I guess I can also see about wiping GiGi from my system and start from scratch. But I never had any errors come up in scons except for the serialization.

I know I am in over my head here. I want to thank you all, again, for helping me even this far. I'll get it eventually!! :D

EDIT:

And... No deal. Same problem.
Config.log wrote:file /home/ian/freeorion/FreeOrion/SConstruct,line 185:
Configure(confdir = .sconf_temp)
scons: Configure: Checking for Py_Initialize() in C library python2.5...
.sconf_temp/conftest_0.c <-
|
|
|#include "Python.h"
|
|int
|main() {
| Py_Initialize();
|return 0;
|}
|
gcc -o .sconf_temp/conftest_0.o -c -I/usr/include/python2.5 .sconf_temp/conftest_0.c
close failed: [Errno 9] Bad file descriptor
gcc -o .sconf_temp/conftest_0 .sconf_temp/conftest_0.o -L/usr/lib -lpython2.5
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for pkg-config...
pkg-config --atleast-pkgconfig-version 0.15.0
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for GiGiSDL >= 0.6.0...
pkg-config GiGiSDL --atleast-version 0.6.0
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for C++ header file boost/shared_ptr.hpp...
.sconf_temp/conftest_3.cpp <-
|
|#include "boost/shared_ptr.hpp"
|
|
g++ -o .sconf_temp/conftest_3.o -c -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/python2.5 -I/usr/local/include -I/usr/include/SDL -I/usr/include/boost/serialization .sconf_temp/conftest_3.cpp
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking Boost version >= 1.36...
scons: Configure: (cached) yes

scons: Configure: Checking for C++ header file boost/graph/dijkstra_shortest_paths.hpp...
.sconf_temp/conftest_4.cpp <-
|
|#include <boost/graph/dijkstra_shortest_paths.hpp>
|
|
g++ -o .sconf_temp/conftest_4.o -c -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/python2.5 -I/usr/local/include -I/usr/include/SDL -I/usr/include/boost/serialization .sconf_temp/conftest_4.cpp
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for boost::archive::binary_iarchive::is_saving() in C++ library boost_serialization...
.sconf_temp/conftest_5.cpp <-
|
|
|#include "boost/archive/binary_iarchive.hpp"
|
|int
|main() {
| boost::archive::binary_iarchive::is_saving();
|return 0;
|}
|
g++ -o .sconf_temp/conftest_5.o -c -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/python2.5 -I/usr/local/include -I/usr/include/SDL -I/usr/include/boost/serialization .sconf_temp/conftest_5.cpp
close failed: [Errno 9] Bad file descriptor
scons: Configure: Caught exception while building ".sconf_temp/conftest_5":

Traceback (most recent call last):
File "/usr/lib/scons/SCons/Job.py", line 198, in start
task.prepare()
File "/usr/lib/scons/SCons/Taskmaster.py", line 186, in prepare
t.prepare()
File "/usr/lib/scons/SCons/Node/FS.py", line 2558, in prepare
SCons.Node.Node.prepare(self)
File "/usr/lib/scons/SCons/Node/__init__.py", line 356, in prepare
raise SCons.Errors.StopError, msg % (i, self)
SCons.Errors.StopError: Implicit dependency `/usr/local/lib/libGiGi.so' not found, needed by target `.sconf_temp/conftest_5'.
scons: Configure: no

scons: Configure: Checking for boost::archive::binary_iarchive::is_saving() in C++ library boost_serialization-mt...
.sconf_temp/conftest_6.cpp <-
|
|
|#include "boost/archive/binary_iarchive.hpp"
|
|int
|main() {
| boost::archive::binary_iarchive::is_saving();
|return 0;
|}
|
g++ -o .sconf_temp/conftest_6.o -c -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/python2.5 -I/usr/local/include -I/usr/include/SDL -I/usr/include/boost/serialization .sconf_temp/conftest_6.cpp
close failed: [Errno 9] Bad file descriptor
scons: Configure: Caught exception while building ".sconf_temp/conftest_6":

Traceback (most recent call last):
File "/usr/lib/scons/SCons/Job.py", line 198, in start
task.prepare()
File "/usr/lib/scons/SCons/Taskmaster.py", line 186, in prepare
t.prepare()
File "/usr/lib/scons/SCons/Node/FS.py", line 2558, in prepare
SCons.Node.Node.prepare(self)
File "/usr/lib/scons/SCons/Node/__init__.py", line 356, in prepare
raise SCons.Errors.StopError, msg % (i, self)
SCons.Errors.StopError: Implicit dependency `/usr/local/lib/libGiGi.so' not found, needed by target `.sconf_temp/conftest_6'.
scons: Configure: no

scons: Configure: Boost configuration...
scons: Configure: (cached) no
scons configure wrote:scons: Reading SConscript files ...
Configuring for POSIX system...
Checking for Py_Initialize() in C library python2.5... yes
Checking for pkg-config... yes
Checking for GiGiSDL >= 0.6.0... yes
Checking for C++ header file boost/shared_ptr.hpp... yes
Checking Boost version >= 1.36... (cached) yes
Checking for C++ header file boost/graph/dijkstra_shortest_paths.hpp... yes
Looking for boost lib boost_serialization...
Checking for boost::archive::binary_iarchive::is_saving() in C++ library boost_serialization... no
Checking for boost::archive::binary_iarchive::is_saving() in C++ library boost_serialization-mt... no
Boost configuration... (cached) no
I don't get it. scons is searching for serialization-mt and I *have* serialization-mt. The package itself isn't broken... I'm at a loss. Maybe I should just give up?

User avatar
OndrejR
Space Dragon
Posts: 339
Joined: Thu Oct 02, 2008 11:00 pm
Location: Slovakia

Re: Scons can't find boost serialization

#52 Post by OndrejR »

IConrad: You may have file serialization-mt on disk, but your scons script still only founds serialization because you have in your log config.log only this text

Code: Select all

-I/usr/include/boost/serialization
and not

Code: Select all

-lboost_serialization-mt
I don't know word give up.
Certain jedi master tzlain said: Do or do not. There is no try. :D
Last edited by OndrejR on Wed Dec 24, 2008 9:25 am, edited 1 time in total.

User avatar
loonycyborg
Compilation Expert
Posts: 219
Joined: Thu Jul 06, 2006 10:30 pm
Location: Russia/Moscow

Re: Scons can't find boost serialization

#53 Post by loonycyborg »

SCons doesn't search for the library. It tries to build a test program that uses it using the same machinery as for building freeorion itself, e.g. scanning for implicit dependencies. Based on LIBPATH and LIBS it thinks that the test program depends on /usr/local/lib/libGiGi.so, most likely because such object exists in the filesystem. But actually accessing it gives "file not found". So this object is like Shroedinger's Cat: it exists and not exists at the same time. The only such object I know is a broken symlink.
This error has nothing to do with boost serialization. It's about GG's lib screwing implicit dependency scanning. It happened in serialization check apparently because it's the first check that tries to link the test program.
In Soviet Russia, forum posts YOU!!

User avatar
OndrejR
Space Dragon
Posts: 339
Joined: Thu Oct 02, 2008 11:00 pm
Location: Slovakia

Re: Scons can't find boost serialization

#54 Post by OndrejR »

IConrad:
IConrad wrote:But I never had any errors come up in scons except for the serialization
Look at this:

Code: Select all

SCons.Errors.StopError: Implicit dependency `/usr/local/lib/libGiGi.so' not found, needed by target `.sconf_temp/conftest_5'
Problem with

Code: Select all

/usr/local/lib/libGiGi.so
may cause this scons behaviour. Make

Code: Select all

scons uninstall
on GG(as root). If there are symlinks to GG, delete them as advice above this said(and in my case change GG rights back to user) and then run ldconfig(as root) and then compile first GG with scons --clean, configure with suffix and scons with suffix and scons install(as root) only then try to compile FreeOrion.

User avatar
IConrad
Space Kraken
Posts: 163
Joined: Mon Nov 10, 2008 5:55 pm

Re: Scons can't find boost serialization

#55 Post by IConrad »

Problem with

Code: Select all

/usr/local/lib/libGiGi.so
may cause this scons behaviour. Make

Code: Select all

scons uninstall
on GG(as root). If there are symlinks to GG, delete them as advice above this said(and in my case change GG rights back to user)
Okay, my noobness is gonna come through. How do I check for / delete symlinks? Do I just uninstall the corrupted/bad GG and then do a new one? If all of this is being caused just because I have an old version of libGiGi still in there... I'm gonna laugh my "holy crap I'm annoyed at myself" laugh. |facepalm being held in reserve|.

I'll update this post when I get a chance to play w/ my home machine again.

EDIT:

No dice, once again. Scons configure outputted exactly the same. I checked 'round the web for how to find a symlink and did the following:

Code: Select all

sudo find / -type l -name *GiGi* -print

Code: Select all

sudo find / -type l -name *GG* -print
the only output of which I got was:

Code: Select all

/usr/local/lib/libGiGiSDL.so
/usr/local/lib/libGiGi.so
/usr/local/lib/libGiGiOgre.so
I'm pretty sure those are supposed to be there.

Here's my new config.log:

Code: Select all

file /home/ian/freeorion/FreeOrion/SConstruct,line 185:
	Configure(confdir = .sconf_temp)
scons: Configure: Checking for Py_Initialize() in C library python2.5... 
.sconf_temp/conftest_0.c <-
  |
  |
  |#include "Python.h"
  |
  |int
  |main() {
  |  Py_Initialize();
  |return 0;
  |}
  |
gcc -o .sconf_temp/conftest_0.o -c -I/usr/include/python2.5 .sconf_temp/conftest_0.c
close failed: [Errno 9] Bad file descriptor
gcc -o .sconf_temp/conftest_0 .sconf_temp/conftest_0.o -L/usr/lib -lpython2.5
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for pkg-config... 
pkg-config --atleast-pkgconfig-version 0.15.0
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for GiGiSDL >= 0.6.0... 
pkg-config GiGiSDL --atleast-version 0.6.0
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for C++ header file boost/shared_ptr.hpp... 
.sconf_temp/conftest_3.cpp <-
  |
  |#include "boost/shared_ptr.hpp"
  |
  |
g++ -o .sconf_temp/conftest_3.o -c -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/python2.5 -I/usr/local/include -I/usr/include/SDL -I/usr/include/boost/serialization .sconf_temp/conftest_3.cpp
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking Boost version >= 1.36... 
scons: Configure: (cached) yes

scons: Configure: Checking for C++ header file boost/graph/dijkstra_shortest_paths.hpp... 
.sconf_temp/conftest_4.cpp <-
  |
  |#include <boost/graph/dijkstra_shortest_paths.hpp>
  |
  |
g++ -o .sconf_temp/conftest_4.o -c -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/python2.5 -I/usr/local/include -I/usr/include/SDL -I/usr/include/boost/serialization .sconf_temp/conftest_4.cpp
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for boost::archive::binary_iarchive::is_saving() in C++ library boost_serialization... 
.sconf_temp/conftest_5.cpp <-
  |
  |
  |#include "boost/archive/binary_iarchive.hpp"
  |
  |int
  |main() {
  |  boost::archive::binary_iarchive::is_saving();
  |return 0;
  |}
  |
g++ -o .sconf_temp/conftest_5.o -c -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/python2.5 -I/usr/local/include -I/usr/include/SDL -I/usr/include/boost/serialization .sconf_temp/conftest_5.cpp
close failed: [Errno 9] Bad file descriptor
scons: Configure: Caught exception while building ".sconf_temp/conftest_5":

Traceback (most recent call last):
  File "/usr/lib/scons/SCons/Job.py", line 198, in start
    task.prepare()
  File "/usr/lib/scons/SCons/Taskmaster.py", line 186, in prepare
    t.prepare()
  File "/usr/lib/scons/SCons/Node/FS.py", line 2558, in prepare
    SCons.Node.Node.prepare(self)
  File "/usr/lib/scons/SCons/Node/__init__.py", line 356, in prepare
    raise SCons.Errors.StopError, msg % (i, self)
SCons.Errors.StopError: Implicit dependency `/usr/local/lib/libGiGi.so' not found, needed by target `.sconf_temp/conftest_5'.
scons: Configure: no

scons: Configure: Checking for boost::archive::binary_iarchive::is_saving() in C++ library boost_serialization-mt... 
.sconf_temp/conftest_6.cpp <-
  |
  |
  |#include "boost/archive/binary_iarchive.hpp"
  |
  |int
  |main() {
  |  boost::archive::binary_iarchive::is_saving();
  |return 0;
  |}
  |
g++ -o .sconf_temp/conftest_6.o -c -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/python2.5 -I/usr/local/include -I/usr/include/SDL -I/usr/include/boost/serialization .sconf_temp/conftest_6.cpp
close failed: [Errno 9] Bad file descriptor
scons: Configure: Caught exception while building ".sconf_temp/conftest_6":

Traceback (most recent call last):
  File "/usr/lib/scons/SCons/Job.py", line 198, in start
    task.prepare()
  File "/usr/lib/scons/SCons/Taskmaster.py", line 186, in prepare
    t.prepare()
  File "/usr/lib/scons/SCons/Node/FS.py", line 2558, in prepare
    SCons.Node.Node.prepare(self)
  File "/usr/lib/scons/SCons/Node/__init__.py", line 356, in prepare
    raise SCons.Errors.StopError, msg % (i, self)
SCons.Errors.StopError: Implicit dependency `/usr/local/lib/libGiGi.so' not found, needed by target `.sconf_temp/conftest_6'.
scons: Configure: no

scons: Configure: Boost configuration... 
scons: Configure: (cached) no
EDIT 2:

So, I just tried to do the scons configure after simply removing GG altogether. And glory be, it found serialization! Configuration was successful. I shall try to re-build GG once again and see what happens...

EDIT 3:

No dice. If I rebuild GG, then I can't configure. If I try to compile w/o GG, then it errors out, or just doesn't output any actual files. Here's my config.log w/ GG:

Code: Select all

file /home/ian/freeorion/FreeOrion/SConstruct,line 185:
	Configure(confdir = .sconf_temp)
scons: Configure: Checking for Py_Initialize() in C library python2.5... 
.sconf_temp/conftest_0.c <-
  |
  |
  |#include "Python.h"
  |
  |int
  |main() {
  |  Py_Initialize();
  |return 0;
  |}
  |
gcc -o .sconf_temp/conftest_0.o -c -I/usr/include/python2.5 .sconf_temp/conftest_0.c
close failed: [Errno 9] Bad file descriptor
gcc -o .sconf_temp/conftest_0 .sconf_temp/conftest_0.o -L/usr/lib -lpython2.5
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for pkg-config... 
pkg-config --atleast-pkgconfig-version 0.15.0
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for GiGiSDL >= 0.6.0... 
pkg-config GiGiSDL --atleast-version 0.6.0
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for C++ header file boost/shared_ptr.hpp... 
.sconf_temp/conftest_3.cpp <-
  |
  |#include "boost/shared_ptr.hpp"
  |
  |
g++ -o .sconf_temp/conftest_3.o -c -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/python2.5 -I/usr/local/include -I/usr/include/SDL -I/usr/include/boost/serialization .sconf_temp/conftest_3.cpp
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking Boost version >= 1.36... 
scons: Configure: (cached) yes

scons: Configure: Checking for C++ header file boost/graph/dijkstra_shortest_paths.hpp... 
.sconf_temp/conftest_4.cpp <-
  |
  |#include <boost/graph/dijkstra_shortest_paths.hpp>
  |
  |
g++ -o .sconf_temp/conftest_4.o -c -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/python2.5 -I/usr/local/include -I/usr/include/SDL -I/usr/include/boost/serialization .sconf_temp/conftest_4.cpp
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for boost::archive::binary_iarchive::is_saving() in C++ library boost_serialization... 
.sconf_temp/conftest_5.cpp <-
  |
  |
  |#include "boost/archive/binary_iarchive.hpp"
  |
  |int
  |main() {
  |  boost::archive::binary_iarchive::is_saving();
  |return 0;
  |}
  |
g++ -o .sconf_temp/conftest_5.o -c -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/python2.5 -I/usr/local/include -I/usr/include/SDL -I/usr/include/boost/serialization .sconf_temp/conftest_5.cpp
close failed: [Errno 9] Bad file descriptor
scons: Configure: Caught exception while building ".sconf_temp/conftest_5":

Traceback (most recent call last):
  File "/usr/lib/scons/SCons/Job.py", line 198, in start
    task.prepare()
  File "/usr/lib/scons/SCons/Taskmaster.py", line 186, in prepare
    t.prepare()
  File "/usr/lib/scons/SCons/Node/FS.py", line 2558, in prepare
    SCons.Node.Node.prepare(self)
  File "/usr/lib/scons/SCons/Node/__init__.py", line 356, in prepare
    raise SCons.Errors.StopError, msg % (i, self)
SCons.Errors.StopError: Implicit dependency `/usr/local/lib/libGiGi.so' not found, needed by target `.sconf_temp/conftest_5'.
scons: Configure: no

scons: Configure: Checking for boost::archive::binary_iarchive::is_saving() in C++ library boost_serialization-mt... 
.sconf_temp/conftest_6.cpp <-
  |
  |
  |#include "boost/archive/binary_iarchive.hpp"
  |
  |int
  |main() {
  |  boost::archive::binary_iarchive::is_saving();
  |return 0;
  |}
  |
g++ -o .sconf_temp/conftest_6.o -c -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/python2.5 -I/usr/local/include -I/usr/include/SDL -I/usr/include/boost/serialization .sconf_temp/conftest_6.cpp
close failed: [Errno 9] Bad file descriptor
scons: Configure: Caught exception while building ".sconf_temp/conftest_6":

Traceback (most recent call last):
  File "/usr/lib/scons/SCons/Job.py", line 198, in start
    task.prepare()
  File "/usr/lib/scons/SCons/Taskmaster.py", line 186, in prepare
    t.prepare()
  File "/usr/lib/scons/SCons/Node/FS.py", line 2558, in prepare
    SCons.Node.Node.prepare(self)
  File "/usr/lib/scons/SCons/Node/__init__.py", line 356, in prepare
    raise SCons.Errors.StopError, msg % (i, self)
SCons.Errors.StopError: Implicit dependency `/usr/local/lib/libGiGi.so' not found, needed by target `.sconf_temp/conftest_6'.
scons: Configure: no

scons: Configure: Boost configuration... 
scons: Configure: (cached) no

And here it is without:

Code: Select all

file /home/ian/freeorion/FreeOrion/SConstruct,line 185:
	Configure(confdir = .sconf_temp)
scons: Configure: Checking for Py_Initialize() in C library python2.5... 
.sconf_temp/conftest_0.c <-
  |
  |
  |#include "Python.h"
  |
  |int
  |main() {
  |  Py_Initialize();
  |return 0;
  |}
  |
gcc -o .sconf_temp/conftest_0.o -c -I/usr/include/python2.5 .sconf_temp/conftest_0.c
close failed: [Errno 9] Bad file descriptor
gcc -o .sconf_temp/conftest_0 .sconf_temp/conftest_0.o -L/usr/lib -lpython2.5
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for pkg-config... 
pkg-config --atleast-pkgconfig-version 0.15.0
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for GiGiSDL >= 0.6.0... 
pkg-config GiGiSDL --atleast-version 0.6.0
close failed: [Errno 9] Bad file descriptor
scons: Configure: no

scons: Configure: Checking for C++ header file boost/shared_ptr.hpp... 
.sconf_temp/conftest_3.cpp <-
  |
  |#include "boost/shared_ptr.hpp"
  |
  |
g++ -o .sconf_temp/conftest_3.o -c -I/usr/include/python2.5 -I/usr/include/boost/serialization .sconf_temp/conftest_3.cpp
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking Boost version >= 1.36... 
scons: Configure: (cached) yes

scons: Configure: Checking for C++ header file boost/graph/dijkstra_shortest_paths.hpp... 
.sconf_temp/conftest_4.cpp <-
  |
  |#include <boost/graph/dijkstra_shortest_paths.hpp>
  |
  |
g++ -o .sconf_temp/conftest_4.o -c -I/usr/include/python2.5 -I/usr/include/boost/serialization .sconf_temp/conftest_4.cpp
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for boost::archive::binary_iarchive::is_saving() in C++ library boost_serialization... 
.sconf_temp/conftest_5.cpp <-
  |
  |
  |#include "boost/archive/binary_iarchive.hpp"
  |
  |int
  |main() {
  |  boost::archive::binary_iarchive::is_saving();
  |return 0;
  |}
  |
g++ -o .sconf_temp/conftest_5.o -c -I/usr/include/python2.5 -I/usr/include/boost/serialization .sconf_temp/conftest_5.cpp
close failed: [Errno 9] Bad file descriptor
g++ -o .sconf_temp/conftest_5 .sconf_temp/conftest_5.o -L/usr/lib -lpython2.5 -lboost_serialization
/usr/bin/ld: cannot find -lboost_serialization
collect2: ld returned 1 exit status
close failed: [Errno 9] Bad file descriptor
scons: Configure: no

scons: Configure: Checking for boost::archive::binary_iarchive::is_saving() in C++ library boost_serialization-mt... 
.sconf_temp/conftest_6.cpp <-
  |
  |
  |#include "boost/archive/binary_iarchive.hpp"
  |
  |int
  |main() {
  |  boost::archive::binary_iarchive::is_saving();
  |return 0;
  |}
  |
g++ -o .sconf_temp/conftest_6.o -c -I/usr/include/python2.5 -I/usr/include/boost/serialization .sconf_temp/conftest_6.cpp
close failed: [Errno 9] Bad file descriptor
g++ -o .sconf_temp/conftest_6 .sconf_temp/conftest_6.o -L/usr/lib -lpython2.5 -lboost_serialization-mt
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for C++ library boost_iostreams... 
.sconf_temp/conftest_7.cpp <-
  |
  |
  |#include "boost/iostreams/filtering_stream.hpp"
  |
  |int
  |main() {
  |  
  |return 0;
  |}
  |
g++ -o .sconf_temp/conftest_7.o -c -I/usr/include/python2.5 -I/usr/include/boost/serialization .sconf_temp/conftest_7.cpp
close failed: [Errno 9] Bad file descriptor
g++ -o .sconf_temp/conftest_7 .sconf_temp/conftest_7.o -L/usr/lib -lpython2.5 -lboost_serialization-mt -lboost_iostreams
/usr/bin/ld: cannot find -lboost_iostreams
collect2: ld returned 1 exit status
close failed: [Errno 9] Bad file descriptor
scons: Configure: no

scons: Configure: Checking for C++ library boost_iostreams-mt... 
.sconf_temp/conftest_8.cpp <-
  |
  |
  |#include "boost/iostreams/filtering_stream.hpp"
  |
  |int
  |main() {
  |  
  |return 0;
  |}
  |
g++ -o .sconf_temp/conftest_8.o -c -I/usr/include/python2.5 -I/usr/include/boost/serialization .sconf_temp/conftest_8.cpp
close failed: [Errno 9] Bad file descriptor
g++ -o .sconf_temp/conftest_8 .sconf_temp/conftest_8.o -L/usr/lib -lpython2.5 -lboost_serialization-mt -lboost_iostreams-mt
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for boost::python::throw_error_already_set() in C++ library boost_python... 
.sconf_temp/conftest_9.cpp <-
  |
  |
  |#include "boost/python.hpp"
  |
  |int
  |main() {
  |  boost::python::throw_error_already_set();
  |return 0;
  |}
  |
g++ -o .sconf_temp/conftest_9.o -c -I/usr/include/python2.5 -I/usr/include/boost/serialization .sconf_temp/conftest_9.cpp
close failed: [Errno 9] Bad file descriptor
g++ -o .sconf_temp/conftest_9 .sconf_temp/conftest_9.o -L/usr/lib -lpython2.5 -lboost_serialization-mt -lboost_iostreams-mt -lboost_python
/usr/bin/ld: cannot find -lboost_python
collect2: ld returned 1 exit status
close failed: [Errno 9] Bad file descriptor
scons: Configure: no

scons: Configure: Checking for boost::python::throw_error_already_set() in C++ library boost_python-mt... 
.sconf_temp/conftest_10.cpp <-
  |
  |
  |#include "boost/python.hpp"
  |
  |int
  |main() {
  |  boost::python::throw_error_already_set();
  |return 0;
  |}
  |
g++ -o .sconf_temp/conftest_10.o -c -I/usr/include/python2.5 -I/usr/include/boost/serialization .sconf_temp/conftest_10.cpp
close failed: [Errno 9] Bad file descriptor
g++ -o .sconf_temp/conftest_10 .sconf_temp/conftest_10.o -L/usr/lib -lpython2.5 -lboost_serialization-mt -lboost_iostreams-mt -lboost_python-mt
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for boost::signals::connection() in C++ library boost_signals... 
.sconf_temp/conftest_11.cpp <-
  |
  |
  |#include "boost/signals.hpp"
  |
  |int
  |main() {
  |  boost::signals::connection();
  |return 0;
  |}
  |
g++ -o .sconf_temp/conftest_11.o -c -I/usr/include/python2.5 -I/usr/include/boost/serialization .sconf_temp/conftest_11.cpp
close failed: [Errno 9] Bad file descriptor
g++ -o .sconf_temp/conftest_11 .sconf_temp/conftest_11.o -L/usr/lib -lpython2.5 -lboost_serialization-mt -lboost_iostreams-mt -lboost_python-mt -lboost_signals
/usr/bin/ld: cannot find -lboost_signals
collect2: ld returned 1 exit status
close failed: [Errno 9] Bad file descriptor
scons: Configure: no

scons: Configure: Checking for boost::signals::connection() in C++ library boost_signals-mt... 
.sconf_temp/conftest_12.cpp <-
  |
  |
  |#include "boost/signals.hpp"
  |
  |int
  |main() {
  |  boost::signals::connection();
  |return 0;
  |}
  |
g++ -o .sconf_temp/conftest_12.o -c -I/usr/include/python2.5 -I/usr/include/boost/serialization .sconf_temp/conftest_12.cpp
close failed: [Errno 9] Bad file descriptor
g++ -o .sconf_temp/conftest_12 .sconf_temp/conftest_12.o -L/usr/lib -lpython2.5 -lboost_serialization-mt -lboost_iostreams-mt -lboost_python-mt -lboost_signals-mt
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for boost::system::get_system_category() in C++ library boost_system... 
.sconf_temp/conftest_13.cpp <-
  |
  |
  |#include "boost/system/error_code.hpp"
  |
  |int
  |main() {
  |  boost::system::get_system_category();
  |return 0;
  |}
  |
g++ -o .sconf_temp/conftest_13.o -c -I/usr/include/python2.5 -I/usr/include/boost/serialization .sconf_temp/conftest_13.cpp
close failed: [Errno 9] Bad file descriptor
g++ -o .sconf_temp/conftest_13 .sconf_temp/conftest_13.o -L/usr/lib -lpython2.5 -lboost_serialization-mt -lboost_iostreams-mt -lboost_python-mt -lboost_signals-mt -lboost_system
/usr/bin/ld: cannot find -lboost_system
collect2: ld returned 1 exit status
close failed: [Errno 9] Bad file descriptor
scons: Configure: no

scons: Configure: Checking for boost::system::get_system_category() in C++ library boost_system-mt... 
.sconf_temp/conftest_14.cpp <-
  |
  |
  |#include "boost/system/error_code.hpp"
  |
  |int
  |main() {
  |  boost::system::get_system_category();
  |return 0;
  |}
  |
g++ -o .sconf_temp/conftest_14.o -c -I/usr/include/python2.5 -I/usr/include/boost/serialization .sconf_temp/conftest_14.cpp
close failed: [Errno 9] Bad file descriptor
g++ -o .sconf_temp/conftest_14 .sconf_temp/conftest_14.o -L/usr/lib -lpython2.5 -lboost_serialization-mt -lboost_iostreams-mt -lboost_python-mt -lboost_signals-mt -lboost_system-mt
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for boost::filesystem::initial_path() in C++ library boost_filesystem... 
.sconf_temp/conftest_15.cpp <-
  |
  |
  |#include "boost/filesystem/operations.hpp"
  |
  |int
  |main() {
  |  boost::filesystem::initial_path();
  |return 0;
  |}
  |
g++ -o .sconf_temp/conftest_15.o -c -I/usr/include/python2.5 -I/usr/include/boost/serialization .sconf_temp/conftest_15.cpp
close failed: [Errno 9] Bad file descriptor
g++ -o .sconf_temp/conftest_15 .sconf_temp/conftest_15.o -L/usr/lib -lpython2.5 -lboost_serialization-mt -lboost_iostreams-mt -lboost_python-mt -lboost_signals-mt -lboost_system-mt -lboost_filesystem
/usr/bin/ld: cannot find -lboost_filesystem
collect2: ld returned 1 exit status
close failed: [Errno 9] Bad file descriptor
scons: Configure: no

scons: Configure: Checking for boost::filesystem::initial_path() in C++ library boost_filesystem-mt... 
.sconf_temp/conftest_16.cpp <-
  |
  |
  |#include "boost/filesystem/operations.hpp"
  |
  |int
  |main() {
  |  boost::filesystem::initial_path();
  |return 0;
  |}
  |
g++ -o .sconf_temp/conftest_16.o -c -I/usr/include/python2.5 -I/usr/include/boost/serialization .sconf_temp/conftest_16.cpp
close failed: [Errno 9] Bad file descriptor
g++ -o .sconf_temp/conftest_16 .sconf_temp/conftest_16.o -L/usr/lib -lpython2.5 -lboost_serialization-mt -lboost_iostreams-mt -lboost_python-mt -lboost_signals-mt -lboost_system-mt -lboost_filesystem-mt
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for boost::thread::yield() in C++ library boost_thread... 
.sconf_temp/conftest_17.cpp <-
  |
  |
  |#include "boost/thread/thread.hpp"
  |
  |int
  |main() {
  |  boost::thread::yield();
  |return 0;
  |}
  |
g++ -o .sconf_temp/conftest_17.o -c -I/usr/include/python2.5 -I/usr/include/boost/serialization .sconf_temp/conftest_17.cpp
close failed: [Errno 9] Bad file descriptor
g++ -o .sconf_temp/conftest_17 .sconf_temp/conftest_17.o -L/usr/lib -lpython2.5 -lboost_serialization-mt -lboost_iostreams-mt -lboost_python-mt -lboost_signals-mt -lboost_system-mt -lboost_filesystem-mt -lboost_thread
/usr/bin/ld: cannot find -lboost_thread
collect2: ld returned 1 exit status
close failed: [Errno 9] Bad file descriptor
scons: Configure: no

scons: Configure: Checking for boost::thread::yield() in C++ library boost_thread-mt... 
.sconf_temp/conftest_18.cpp <-
  |
  |
  |#include "boost/thread/thread.hpp"
  |
  |int
  |main() {
  |  boost::thread::yield();
  |return 0;
  |}
  |
g++ -o .sconf_temp/conftest_18.o -c -I/usr/include/python2.5 -I/usr/include/boost/serialization .sconf_temp/conftest_18.cpp
close failed: [Errno 9] Bad file descriptor
g++ -o .sconf_temp/conftest_18 .sconf_temp/conftest_18.o -L/usr/lib -lpython2.5 -lboost_serialization-mt -lboost_iostreams-mt -lboost_python-mt -lboost_signals-mt -lboost_system-mt -lboost_filesystem-mt -lboost_thread-mt
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Boost configuration... 
scons: Configure: (cached) ok

scons: Configure: Checking for C header file pthread.h... 
.sconf_temp/conftest_19.c <-
  |
  |#include "pthread.h"
  |
  |
gcc -o .sconf_temp/conftest_19.o -c -I/usr/include/python2.5 -I/usr/include/boost/serialization .sconf_temp/conftest_19.c
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for pthread_create() in C library pthread... 
.sconf_temp/conftest_20.c <-
  |
  |
  |
  |#ifdef __cplusplus
  |extern "C"
  |#endif
  |char pthread_create();
  |
  |int
  |main() {
  |  pthread_create();
  |return 0;
  |}
  |
gcc -o .sconf_temp/conftest_20.o -c -I/usr/include/python2.5 -I/usr/include/boost/serialization .sconf_temp/conftest_20.c
close failed: [Errno 9] Bad file descriptor
gcc -o .sconf_temp/conftest_20 .sconf_temp/conftest_20.o -L/usr/lib -lpython2.5 -lboost_serialization-mt -lboost_iostreams-mt -lboost_python-mt -lboost_signals-mt -lboost_system-mt -lboost_filesystem-mt -lboost_thread-mt -lpthread
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for C header file GL/gl.h... 
.sconf_temp/conftest_21.c <-
  |
  |#include "GL/gl.h"
  |
  |
gcc -o .sconf_temp/conftest_21.o -c -pthread -I/usr/include/python2.5 -I/usr/include/boost/serialization .sconf_temp/conftest_21.c
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for C header file GL/glu.h... 
.sconf_temp/conftest_22.c <-
  |
  |#include "GL/glu.h"
  |
  |
gcc -o .sconf_temp/conftest_22.o -c -pthread -I/usr/include/python2.5 -I/usr/include/boost/serialization .sconf_temp/conftest_22.c
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for glBegin() in C library GL... 
.sconf_temp/conftest_23.c <-
  |
  |
  |
  |#ifdef __cplusplus
  |extern "C"
  |#endif
  |char glBegin();
  |
  |int
  |main() {
  |  glBegin();
  |return 0;
  |}
  |
gcc -o .sconf_temp/conftest_23.o -c -pthread -I/usr/include/python2.5 -I/usr/include/boost/serialization .sconf_temp/conftest_23.c
close failed: [Errno 9] Bad file descriptor
gcc -o .sconf_temp/conftest_23 -pthread .sconf_temp/conftest_23.o -L/usr/lib -lpython2.5 -lboost_serialization-mt -lboost_iostreams-mt -lboost_python-mt -lboost_signals-mt -lboost_system-mt -lboost_filesystem-mt -lboost_thread-mt -lGL
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for gluLookAt() in C library GLU... 
.sconf_temp/conftest_24.c <-
  |
  |
  |
  |#ifdef __cplusplus
  |extern "C"
  |#endif
  |char gluLookAt();
  |
  |int
  |main() {
  |  gluLookAt();
  |return 0;
  |}
  |
gcc -o .sconf_temp/conftest_24.o -c -pthread -I/usr/include/python2.5 -I/usr/include/boost/serialization .sconf_temp/conftest_24.c
close failed: [Errno 9] Bad file descriptor
gcc -o .sconf_temp/conftest_24 -pthread .sconf_temp/conftest_24.o -L/usr/lib -lpython2.5 -lboost_serialization-mt -lboost_iostreams-mt -lboost_python-mt -lboost_signals-mt -lboost_system-mt -lboost_filesystem-mt -lboost_thread-mt -lGL -lGLU
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for sdl-config... 
scons: Configure: (cached) yes

scons: Configure: Checking SDL version >= 1.2.7... 
scons: Configure: (cached) yes

scons: Configure: Linking SDL/OpenGL test app... 
.sconf_temp/conftest_25.c <-
  |
  |#include <SDL/SDL.h>
  |#include <SDL/SDL_opengl.h>
  |int main(int argc, char** argv)
  |{
  |    SDL_Init(SDL_INIT_VIDEO);
  |    SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 5);
  |    SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 5);
  |    SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 5);
  |    SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 16);
  |    SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
  |    SDL_SetVideoMode(640, 480, SDL_GetVideoInfo()->vfmt->BitsPerPixel, SDL_OPENGL);
  |    glBegin(GL_TRIANGLES);
  |    glEnd();
  |    return 0;
  |}
  |
gcc -o .sconf_temp/conftest_25.o -c -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/python2.5 -I/usr/include/boost/serialization -I/usr/include/SDL .sconf_temp/conftest_25.c
close failed: [Errno 9] Bad file descriptor
gcc -o .sconf_temp/conftest_25 -pthread .sconf_temp/conftest_25.o -L/usr/lib -lpython2.5 -lboost_serialization-mt -lboost_iostreams-mt -lboost_python-mt -lboost_signals-mt -lboost_system-mt -lboost_filesystem-mt -lboost_thread-mt -lGL -lGLU -lSDL -lpthread
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: SDL configuration... 
scons: Configure: (cached) yes

scons: Configure: Checking for freetype2 >= 9.0.0... 
pkg-config freetype2 --atleast-version 9.0.0
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for C header file ft2build.h... 
.sconf_temp/conftest_27.c <-
  |
  |#include "ft2build.h"
  |
  |
gcc -o .sconf_temp/conftest_27.o -c -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/python2.5 -I/usr/include/boost/serialization -I/usr/include/SDL -I/usr/include/freetype2 .sconf_temp/conftest_27.c
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for FT_Init_FreeType() in C library freetype... 
.sconf_temp/conftest_28.c <-
  |
  |
  |
  |#ifdef __cplusplus
  |extern "C"
  |#endif
  |char FT_Init_FreeType();
  |
  |int
  |main() {
  |  FT_Init_FreeType();
  |return 0;
  |}
  |
gcc -o .sconf_temp/conftest_28.o -c -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/python2.5 -I/usr/include/boost/serialization -I/usr/include/SDL -I/usr/include/freetype2 .sconf_temp/conftest_28.c
close failed: [Errno 9] Bad file descriptor
gcc -o .sconf_temp/conftest_28 -pthread .sconf_temp/conftest_28.o -L/usr/lib -lpython2.5 -lboost_serialization-mt -lboost_iostreams-mt -lboost_python-mt -lboost_signals-mt -lboost_system-mt -lboost_filesystem-mt -lboost_thread-mt -lGL -lGLU -lSDL -lpthread -lfreetype -lz -lfreetype
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking DevIL version >= 1.6.1... 
scons: Configure: (cached) yes

scons: Configure: Checking for C header file IL/il.h... 
.sconf_temp/conftest_29.c <-
  |
  |#include "IL/il.h"
  |
  |
gcc -o .sconf_temp/conftest_29.o -c -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/python2.5 -I/usr/include/boost/serialization -I/usr/include/SDL -I/usr/include/freetype2 .sconf_temp/conftest_29.c
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for C header file IL/ilu.h... 
.sconf_temp/conftest_30.c <-
  |
  |#include "IL/ilu.h"
  |
  |
gcc -o .sconf_temp/conftest_30.o -c -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/python2.5 -I/usr/include/boost/serialization -I/usr/include/SDL -I/usr/include/freetype2 .sconf_temp/conftest_30.c
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for C header file IL/ilut.h... 
.sconf_temp/conftest_31.c <-
  |
  |#include "IL/ilut.h"
  |
  |
gcc -o .sconf_temp/conftest_31.o -c -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/python2.5 -I/usr/include/boost/serialization -I/usr/include/SDL -I/usr/include/freetype2 .sconf_temp/conftest_31.c
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for ilInit() in C library IL... 
.sconf_temp/conftest_32.c <-
  |
  |
  |
  |#ifdef __cplusplus
  |extern "C"
  |#endif
  |char ilInit();
  |
  |int
  |main() {
  |  ilInit();
  |return 0;
  |}
  |
gcc -o .sconf_temp/conftest_32.o -c -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/python2.5 -I/usr/include/boost/serialization -I/usr/include/SDL -I/usr/include/freetype2 .sconf_temp/conftest_32.c
close failed: [Errno 9] Bad file descriptor
gcc -o .sconf_temp/conftest_32 -pthread .sconf_temp/conftest_32.o -L/usr/lib -lpython2.5 -lboost_serialization-mt -lboost_iostreams-mt -lboost_python-mt -lboost_signals-mt -lboost_system-mt -lboost_filesystem-mt -lboost_thread-mt -lGL -lGLU -lSDL -lpthread -lfreetype -lz -lfreetype -lIL
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for iluInit() in C library ILU... 
.sconf_temp/conftest_33.c <-
  |
  |
  |
  |#ifdef __cplusplus
  |extern "C"
  |#endif
  |char iluInit();
  |
  |int
  |main() {
  |  iluInit();
  |return 0;
  |}
  |
gcc -o .sconf_temp/conftest_33.o -c -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/python2.5 -I/usr/include/boost/serialization -I/usr/include/SDL -I/usr/include/freetype2 .sconf_temp/conftest_33.c
close failed: [Errno 9] Bad file descriptor
gcc -o .sconf_temp/conftest_33 -pthread .sconf_temp/conftest_33.o -L/usr/lib -lpython2.5 -lboost_serialization-mt -lboost_iostreams-mt -lboost_python-mt -lboost_signals-mt -lboost_system-mt -lboost_filesystem-mt -lboost_thread-mt -lGL -lGLU -lSDL -lpthread -lfreetype -lz -lfreetype -lIL -lILU
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for ilutInit() in C library ILUT... 
.sconf_temp/conftest_34.c <-
  |
  |
  |
  |#ifdef __cplusplus
  |extern "C"
  |#endif
  |char ilutInit();
  |
  |int
  |main() {
  |  ilutInit();
  |return 0;
  |}
  |
gcc -o .sconf_temp/conftest_34.o -c -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/python2.5 -I/usr/include/boost/serialization -I/usr/include/SDL -I/usr/include/freetype2 .sconf_temp/conftest_34.c
close failed: [Errno 9] Bad file descriptor
gcc -o .sconf_temp/conftest_34 -pthread .sconf_temp/conftest_34.o -L/usr/lib -lpython2.5 -lboost_serialization-mt -lboost_iostreams-mt -lboost_python-mt -lboost_signals-mt -lboost_system-mt -lboost_filesystem-mt -lboost_thread-mt -lGL -lGLU -lSDL -lpthread -lfreetype -lz -lfreetype -lIL -lILU -lILUT
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

.sconf_temp/conftest_35.c <-
  |
  |#include <IL/ilut.h>
  |#ifndef ILUT_USE_OPENGL
  |#error "DevIL not built with OpenGL support"
  |#endif
  |int main() {
  |    return 0;
  |}
  |
gcc -o .sconf_temp/conftest_35.o -c -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/python2.5 -I/usr/include/boost/serialization -I/usr/include/SDL -I/usr/include/freetype2 .sconf_temp/conftest_35.c
close failed: [Errno 9] Bad file descriptor
scons: Configure: Generating GG/libltdl/config.h using GG/libltdl/configure... 
scons: Configure: (cached) ok

scons: Configure: Checking for openal >= 0.0.8... 
pkg-config openal --atleast-version 0.0.8
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for freealut >= 1.1.0... 
pkg-config freealut --atleast-version 1.1.0
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for vorbisfile >= 1.1.2... 
pkg-config vorbisfile --atleast-version 1.1.2
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for libgraph >= 2.8... 
pkg-config libgraph --atleast-version 2.8
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for libgvc >= 2.8... 
pkg-config libgvc --atleast-version 2.8
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for log4cpp >= 0.3.4b... 
pkg-config log4cpp --atleast-version 0.3.4b
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for C++ header file log4cpp/Category.hh... 
.sconf_temp/conftest_42.cpp <-
  |
  |#include "log4cpp/Category.hh"
  |
  |
g++ -o .sconf_temp/conftest_42.o -c -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/python2.5 -I/usr/include/boost/serialization -I/usr/include/SDL -I/usr/include/freetype2 -I/usr/include/graphviz .sconf_temp/conftest_42.cpp
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Checking for log4cpp::Category::getRoot() in C++ library log4cpp... 
.sconf_temp/conftest_43.cpp <-
  |
  |
  |#include "log4cpp/Category.hh"
  |
  |int
  |main() {
  |  log4cpp::Category::getRoot();
  |return 0;
  |}
  |
g++ -o .sconf_temp/conftest_43.o -c -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/python2.5 -I/usr/include/boost/serialization -I/usr/include/SDL -I/usr/include/freetype2 -I/usr/include/graphviz .sconf_temp/conftest_43.cpp
close failed: [Errno 9] Bad file descriptor
g++ -o .sconf_temp/conftest_43 -pthread .sconf_temp/conftest_43.o -L/usr/lib -lpython2.5 -lboost_serialization-mt -lboost_iostreams-mt -lboost_python-mt -lboost_signals-mt -lboost_system-mt -lboost_filesystem-mt -lboost_thread-mt -lGL -lGLU -lSDL -lpthread -lz -lfreetype -lIL -lILU -lILUT -lalut -lopenal -lvorbisfile -lvorbis -lm -logg -lgvc -lgraph -lcdt -llog4cpp -lnsl -llog4cpp
close failed: [Errno 9] Bad file descriptor
scons: Configure: yes

scons: Configure: Configuration successful... 
scons: Configure: (cached) yes

Here's my scons configure output w/o GG:

Code: Select all

scons: Reading SConscript files ...
Configuring for POSIX system...
Checking for Py_Initialize() in C library python2.5... yes
Checking for pkg-config... yes
Checking for GiGiSDL >= 0.6.0... no
Checking for C++ header file boost/shared_ptr.hpp... yes
Checking Boost version >= 1.36... (cached) yes
Checking for C++ header file boost/graph/dijkstra_shortest_paths.hpp... yes
Looking for boost lib boost_serialization... 
Checking for boost::archive::binary_iarchive::is_saving() in C++ library boost_serialization... no
Checking for boost::archive::binary_iarchive::is_saving() in C++ library boost_serialization-mt... yes
Looking for boost lib boost_iostreams... 
Checking for C++ library boost_iostreams... no
Checking for C++ library boost_iostreams-mt... yes
Looking for boost lib boost_python... 
Checking for boost::python::throw_error_already_set() in C++ library boost_python... no
Checking for boost::python::throw_error_already_set() in C++ library boost_python-mt... yes
Looking for boost lib boost_signals... 
Checking for boost::signals::connection() in C++ library boost_signals... no
Checking for boost::signals::connection() in C++ library boost_signals-mt... yes
Looking for boost lib boost_system... 
Checking for boost::system::get_system_category() in C++ library boost_system... no
Checking for boost::system::get_system_category() in C++ library boost_system-mt... yes
Looking for boost lib boost_filesystem... 
Checking for boost::filesystem::initial_path() in C++ library boost_filesystem... no
Checking for boost::filesystem::initial_path() in C++ library boost_filesystem-mt... yes
Looking for boost lib boost_thread... 
Checking for boost::thread::yield() in C++ library boost_thread... no
Checking for boost::thread::yield() in C++ library boost_thread-mt... yes
Boost configuration... (cached) ok
Checking for C header file pthread.h... yes
Checking for pthread_create() in C library pthread... yes
Checking for C header file GL/gl.h... yes
Checking for C header file GL/glu.h... yes
Checking for glBegin() in C library GL... yes
Checking for gluLookAt() in C library GLU... yes
Checking for sdl-config... (cached) yes
Checking SDL version >= 1.2.7... (cached) yes
Linking SDL/OpenGL test app... yes
SDL configuration... (cached) yes
Checking for freetype2 >= 9.0.0... yes
Checking for C header file ft2build.h... yes
Checking for FT_Init_FreeType() in C library freetype... yes
Checking DevIL version >= 1.6.1... (cached) yes
Checking for C header file IL/il.h... yes
Checking for C header file IL/ilu.h... yes
Checking for C header file IL/ilut.h... yes
Checking for ilInit() in C library IL... yes
Checking for iluInit() in C library ILU... yes
Checking for ilutInit() in C library ILUT... yes
Checking for DevIL OpenGL support... yes
Generating GG/libltdl/config.h using GG/libltdl/configure... (cached) ok
Checking for openal >= 0.0.8... yes
Checking for freealut >= 1.1.0... yes
Checking for vorbisfile >= 1.1.2... yes
Checking for libgraph >= 2.8... yes
Checking for libgvc >= 2.8... yes
Checking for log4cpp >= 0.3.4b... yes
Checking for C++ header file log4cpp/Category.hh... yes
Checking for log4cpp::Category::getRoot() in C++ library log4cpp... yes
Configuration successful... (cached) yes
I'm clearly in over my head here. But I'll keep trying as long as you guys haven't run out of patience with me, I guess.

User avatar
OndrejR
Space Dragon
Posts: 339
Joined: Thu Oct 02, 2008 11:00 pm
Location: Slovakia

Re: Scons can't find boost serialization

#56 Post by OndrejR »

#1 Did you install xinetd(I have it not, alternative is openbsd-inetd)? It may be responsible for bad file descriptor bug(I found on Google) in your log. This bug is officially python bug(not closed yet).
#2 You should run scons configure, scons and scons install only with --config=force, maybe it helps.
#3 Try suffix only mt without gcc
#4 After uninstalling GG there shouldn't be simlinks in /usr/local/lib/ (delete them)
#5 I reinstalled my system to Debian unstable and possibly I may have same problem.
#6 I found on this forum old posts with same problem, but without answer.
#7 FreeOrion was never intensively tested on AMD64 architecture. Time to time, libraries are broken on Linux and especially on AMD64. But where is problem we have to find out.
#8 Problem with bad file descriptor may be related with incorrectly written scons script. For more info see this thread. I don't know much about python.

User avatar
IConrad
Space Kraken
Posts: 163
Joined: Mon Nov 10, 2008 5:55 pm

Re: Scons can't find boost serialization

#57 Post by IConrad »

  1. The only inetd I have is Ubuntu Intrepid (v 4.30) update-inetd. Are you suggesting that I should /install/ xinetd or openbsd-inetd?
  2. --config=force had no effect.
  3. suffix mt has no effect. scons already seems to be searching for both the single-threaded and the multi-threaded versions on its own; but none the less I tried "boost_lib_suffix=mt" and "boost_lib_suffix=-mt". No changes.
  4. I did a clean wipe of GG ( "sudo find / -name *GiGi* -delete"). This had no effect other than requiring me to do a fresh svn download (it broke the svn link for GG).
  5. Yeah, I'd seen them too. It seemed to have a different resolution back then, though.
  6. yeah, but amd64 is such a great architecture!!!!!!!!!!!!!!!1110zero111onezorz!! (Seriously, though; here's to hoping these things resolve themselves.)
  7. If that's the case, maybe my tribulations will keep anyone else from running into it.
At least I don't have to facepalm now. :)

User avatar
OndrejR
Space Dragon
Posts: 339
Joined: Thu Oct 02, 2008 11:00 pm
Location: Slovakia

Re: Scons can't find boost serialization

#58 Post by OndrejR »

IConrad wrote:
  1. The only inetd I have is Ubuntu Intrepid (v 4.30) update-inetd. Are you suggesting that I should /install/ xinetd or openbsd-inetd?
  2. --config=force had no effect.
  3. suffix mt has no effect. scons already seems to be searching for both the single-threaded and the multi-threaded versions on its own; but none the less I tried "boost_lib_suffix=mt" and "boost_lib_suffix=-mt". No changes.
  4. I did a clean wipe of GG ( "sudo find / -name *GiGi* -delete"). This had no effect other than requiring me to do a fresh svn download (it broke the svn link for GG).
  • Try to install openbsd-inetd although I don't know if it helps.
  • Purge old config files of uninstalled libraries with synaptic.(After uninstalling sometimes remains old config files on disk)
  • It should be effect with

    Code: Select all

    scons boost_lib_suffix=-mt --config=force
    
  • After deleting GG libraries from /usr/... you can reinstall it with scons install and ldconfig. It is not required to download from svn.
  • After reinstalling my system to Debian unstable on amd64 with some testing libraries and downloaded GG rev 690 I can compile FreeOrion without any error in config.log, but it segfaults immediately after start. Probably due to recent GG rev 690 changes or FreeOrion rev 2706 or rev 2708 or rev 2709. With GG 688 and FreeOrion 2705 problem is not.

User avatar
loonycyborg
Compilation Expert
Posts: 219
Joined: Thu Jul 06, 2006 10:30 pm
Location: Russia/Moscow

Re: Scons can't find boost serialization

#59 Post by loonycyborg »

Perhaps it's permission problem? What's the output of "ls -al /usr/local/lib/libGiGi*.so*" when GG is installed?
In Soviet Russia, forum posts YOU!!

User avatar
IConrad
Space Kraken
Posts: 163
Joined: Mon Nov 10, 2008 5:55 pm

Re: Scons can't find boost serialization

#60 Post by IConrad »

Code: Select all

-rwxr-xr-x 1 root root 103414 2008-12-24 16:21 /usr/local/lib/libGiGiOgrePlugin_OIS.so
lrwxrwxrwx 1 root root     35 2008-12-24 16:26 /usr/local/lib/libGiGiOgre.so -> /usr/local/lib/libGiGiOgre.so.0.6.0
-rwxr-xr-x 1 root root  82460 2008-12-24 16:21 /usr/local/lib/libGiGiOgre.so.0.6.0
lrwxrwxrwx 1 root root     34 2008-12-24 16:26 /usr/local/lib/libGiGiSDL.so -> /usr/local/lib/libGiGiSDL.so.0.6.0
-rwxr-xr-x 1 root root  58905 2008-12-24 16:20 /usr/local/lib/libGiGiSDL.so.0.6.0
lrwxrwxrwx 1 root root     31 2008-12-24 16:26 /usr/local/lib/libGiGi.so -> /usr/local/lib/libGiGi.so.0.6.0
No idea what the above means. I do know that running "sudo scons" has no effect.

OndrejR: No dice again. No change.

Post Reply