You are not logged in.

#1 2007-03-14 18:14:46

valmar
Member
Registered: 2007-03-14
Posts: 55

Boost libraries - detected as root, not as user [solved]

Hello everyone.

I installed arch64 on my pc a few days ago. I am very impressed and happy with the distribution and I decided to keep it on my machine side by side with another distribution (Sidux, right now).  I am just having a minor problem.

I installed the boost libraries using pacman (from the extra repositories). I am now trying to compile in arch64 a software that we develop at the University of Basel (IPLT). It uses scons for compiling the code. Scons checks the existence of the required libraries and headers pretty much like automake/autoconf does.

Now, if I compile the program as root, the boost libraries are detected and our code compiles mighty fine. If I try as a user, it complains not being able to find boost.

Could in your opinion be a permission problem? Or, since scons draws the search paths from the env variables, are the libraries or the headers of boost in the path for the root user and not for the common user? I checked the PATH, LD_LIBRARY_PATH variables, etc. but it all looks fine to me!

Thank you in advance for any help you can provide

      Valerio [

Last edited by valmar (2007-03-19 17:30:57)

Offline

#2 2007-03-14 18:46:59

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Boost libraries - detected as root, not as user [solved]

Could you post:
a) pacman -Ql boost | grep lib
b) the relevant portions of the SConscript (or whatever it's called... haven't used scons in some time).

As a side note: is your user shell run as a login shell?  That is, is it actually sourcing /etc/profile on login?

Offline

#3 2007-03-14 18:49:27

valmar
Member
Registered: 2007-03-14
Posts: 55

Re: Boost libraries - detected as root, not as user [solved]

Wow! What a quick answer!

Yes, it's called SConscript. I will post everything when I get home this evening. Right now I am at work and I don't have my Arch installation handy.

Really, thank you.

       Valerio

Offline

#4 2007-03-15 10:00:49

valmar
Member
Registered: 2007-03-14
Posts: 55

Re: Boost libraries - detected as root, not as user [solved]

[Warning: This post has been edited extensively from its original form]

Ok, I am sorry but I had some personal problems yesterday and could not write you.

I tried to install Arch on a virtual machine at work to keep working on this issue but had some problems

At the beginning I posted my problems in this message. Later, it turned out they were due to a typo in a configuration file (/boot/grub/menu.lst)  on my part.

To keep the thread clean I am deleting the description of the problems and bringing the message back to the real issue.


1)

[valerio@archlinux ~]$ pacman -Ql boost | grep lib
boost /usr/include/boost/compatibility/cpp_c_headers/cstdlib
boost /usr/include/boost/config/select_stdlib_config.hpp
boost /usr/include/boost/config/stdlib/
boost /usr/include/boost/config/stdlib/dinkumware.hpp
boost /usr/include/boost/config/stdlib/libcomo.hpp
boost /usr/include/boost/config/stdlib/libstdcpp3.hpp
boost /usr/include/boost/config/stdlib/modena.hpp
boost /usr/include/boost/config/stdlib/msl.hpp
boost /usr/include/boost/config/stdlib/roguewave.hpp
boost /usr/include/boost/config/stdlib/sgi.hpp
boost /usr/include/boost/config/stdlib/stlport.hpp
boost /usr/include/boost/config/stdlib/vacpp.hpp
boost /usr/include/boost/cstdlib.hpp
boost /usr/include/boost/iostreams/detail/config/zlib.hpp
boost /usr/include/boost/iostreams/filter/zlib.hpp
boost /usr/include/boost/preprocessor/library.hpp
boost /usr/lib/
boost /usr/lib/libboost_date_time-mt.a
boost /usr/lib/libboost_date_time-mt.so
boost /usr/lib/libboost_date_time-mt.so.1.33.1
boost /usr/lib/libboost_date_time.a
boost /usr/lib/libboost_date_time.so
boost /usr/lib/libboost_date_time.so.1.33.1
boost /usr/lib/libboost_filesystem-mt.a
boost /usr/lib/libboost_filesystem-mt.so
boost /usr/lib/libboost_filesystem-mt.so.1.33.1
boost /usr/lib/libboost_filesystem.a
boost /usr/lib/libboost_filesystem.so
boost /usr/lib/libboost_filesystem.so.1.33.1
boost /usr/lib/libboost_iostreams-mt.a
boost /usr/lib/libboost_iostreams-mt.so
boost /usr/lib/libboost_iostreams-mt.so.1.33.1
boost /usr/lib/libboost_iostreams.a
boost /usr/lib/libboost_iostreams.so
boost /usr/lib/libboost_iostreams.so.1.33.1
boost /usr/lib/libboost_prg_exec_monitor-mt.a
boost /usr/lib/libboost_prg_exec_monitor-mt.so
boost /usr/lib/libboost_prg_exec_monitor-mt.so.1.33.1
boost /usr/lib/libboost_prg_exec_monitor.a
boost /usr/lib/libboost_prg_exec_monitor.so
boost /usr/lib/libboost_prg_exec_monitor.so.1.33.1
boost /usr/lib/libboost_program_options-mt.a
boost /usr/lib/libboost_program_options-mt.so
boost /usr/lib/libboost_program_options-mt.so.1.33.1
boost /usr/lib/libboost_program_options.a
boost /usr/lib/libboost_program_options.so
boost /usr/lib/libboost_program_options.so.1.33.1
boost /usr/lib/libboost_python-mt.a
boost /usr/lib/libboost_python-mt.so
boost /usr/lib/libboost_python-mt.so.1.33.1
boost /usr/lib/libboost_python.a
boost /usr/lib/libboost_python.so
boost /usr/lib/libboost_python.so.1.33.1
boost /usr/lib/libboost_regex-mt.a
boost /usr/lib/libboost_regex-mt.so
boost /usr/lib/libboost_regex-mt.so.1.33.1
boost /usr/lib/libboost_regex.a
boost /usr/lib/libboost_regex.so
boost /usr/lib/libboost_regex.so.1.33.1
boost /usr/lib/libboost_serialization-mt.a
boost /usr/lib/libboost_serialization-mt.so
boost /usr/lib/libboost_serialization-mt.so.1.33.1
boost /usr/lib/libboost_serialization.a
boost /usr/lib/libboost_serialization.so
boost /usr/lib/libboost_serialization.so.1.33.1
boost /usr/lib/libboost_signals-mt.a
boost /usr/lib/libboost_signals-mt.so
boost /usr/lib/libboost_signals-mt.so.1.33.1
boost /usr/lib/libboost_signals.a
boost /usr/lib/libboost_signals.so
boost /usr/lib/libboost_signals.so.1.33.1
boost /usr/lib/libboost_test_exec_monitor-mt.a
boost /usr/lib/libboost_test_exec_monitor-mt.so
boost /usr/lib/libboost_test_exec_monitor-mt.so.1.33.1
boost /usr/lib/libboost_test_exec_monitor.a
boost /usr/lib/libboost_test_exec_monitor.so
boost /usr/lib/libboost_test_exec_monitor.so.1.33.1
boost /usr/lib/libboost_thread-mt.a
boost /usr/lib/libboost_thread-mt.so
boost /usr/lib/libboost_thread-mt.so.1.33.1
boost /usr/lib/libboost_unit_test_framework-mt.a
boost /usr/lib/libboost_unit_test_framework-mt.so
boost /usr/lib/libboost_unit_test_framework-mt.so.1.33.1
boost /usr/lib/libboost_unit_test_framework.a
boost /usr/lib/libboost_unit_test_framework.so
boost /usr/lib/libboost_unit_test_framework.so.1.33.1
boost /usr/lib/libboost_wave-mt.a
boost /usr/lib/libboost_wave.a
boost /usr/lib/libboost_wserialization-mt.a
boost /usr/lib/libboost_wserialization-mt.so
boost /usr/lib/libboost_wserialization-mt.so.1.33.1
boost /usr/lib/libboost_wserialization.a
boost /usr/lib/libboost_wserialization.so
boost /usr/lib/libboost_wserialization.so.1.33.1
boost /usr/lib/python2.4/
boost /usr/lib/python2.4/site-packages/
boost /usr/lib/python2.4/site-packages/Pyste/
boost /usr/lib/python2.4/site-packages/Pyste/ClassExporter.py
boost /usr/lib/python2.4/site-packages/Pyste/ClassExporter.pyc
boost /usr/lib/python2.4/site-packages/Pyste/CodeExporter.py
boost /usr/lib/python2.4/site-packages/Pyste/CodeExporter.pyc
boost /usr/lib/python2.4/site-packages/Pyste/CppParser.py
boost /usr/lib/python2.4/site-packages/Pyste/CppParser.pyc
boost /usr/lib/python2.4/site-packages/Pyste/EnumExporter.py
boost /usr/lib/python2.4/site-packages/Pyste/EnumExporter.pyc
boost /usr/lib/python2.4/site-packages/Pyste/Exporter.py
boost /usr/lib/python2.4/site-packages/Pyste/Exporter.pyc
boost /usr/lib/python2.4/site-packages/Pyste/FunctionExporter.py
boost /usr/lib/python2.4/site-packages/Pyste/FunctionExporter.pyc
boost /usr/lib/python2.4/site-packages/Pyste/GCCXMLParser.py
boost /usr/lib/python2.4/site-packages/Pyste/GCCXMLParser.pyc
boost /usr/lib/python2.4/site-packages/Pyste/HeaderExporter.py
boost /usr/lib/python2.4/site-packages/Pyste/HeaderExporter.pyc
boost /usr/lib/python2.4/site-packages/Pyste/MultipleCodeUnit.py
boost /usr/lib/python2.4/site-packages/Pyste/MultipleCodeUnit.pyc
boost /usr/lib/python2.4/site-packages/Pyste/SingleCodeUnit.py
boost /usr/lib/python2.4/site-packages/Pyste/SingleCodeUnit.pyc
boost /usr/lib/python2.4/site-packages/Pyste/SmartFile.py
boost /usr/lib/python2.4/site-packages/Pyste/SmartFile.pyc
boost /usr/lib/python2.4/site-packages/Pyste/VarExporter.py
boost /usr/lib/python2.4/site-packages/Pyste/VarExporter.pyc
boost /usr/lib/python2.4/site-packages/Pyste/__init__.py
boost /usr/lib/python2.4/site-packages/Pyste/__init__.pyc
boost /usr/lib/python2.4/site-packages/Pyste/declarations.py
boost /usr/lib/python2.4/site-packages/Pyste/declarations.pyc
boost /usr/lib/python2.4/site-packages/Pyste/exporters.py
boost /usr/lib/python2.4/site-packages/Pyste/exporters.pyc
boost /usr/lib/python2.4/site-packages/Pyste/exporterutils.py
boost /usr/lib/python2.4/site-packages/Pyste/exporterutils.pyc
boost /usr/lib/python2.4/site-packages/Pyste/infos.py
boost /usr/lib/python2.4/site-packages/Pyste/infos.pyc
boost /usr/lib/python2.4/site-packages/Pyste/policies.py
boost /usr/lib/python2.4/site-packages/Pyste/policies.pyc
boost /usr/lib/python2.4/site-packages/Pyste/pyste.py
boost /usr/lib/python2.4/site-packages/Pyste/pyste.pyc
boost /usr/lib/python2.4/site-packages/Pyste/settings.py
boost /usr/lib/python2.4/site-packages/Pyste/settings.pyc
boost /usr/lib/python2.4/site-packages/Pyste/utils.py
boost /usr/lib/python2.4/site-packages/Pyste/utils.pyc

2) This is not so easy, I would have to post several files. The commands performing the check (the relevant portion of the configuration file) is:

........   
    conf = env.Configure()

    if not conf.CheckLibWithHeader('boost_filesystem'+boost_suffix, 'boost/filesystem/path.hpp', 'c++', 'boost::filesystem::path p("/");'):
        print "Error: boost.filesystem headers and/or lib not found"
        sys.exit(-1)

    if not conf.CheckLibWithHeader('boost_regex'+boost_suffix, 'boost/regex.hpp', 'c++', 'boost::regex re(".*");'):
        print "Error: boost.regex headers and/or lib not found"
        sys.exit(-1)
........

boost_suffix is ' ' (null string)

In the following, I am printing out the environment variables of ther "env" environment above, so you have an idea of which directories are searched. This is done with the command:

print env.Dump()

{ 'AR': 'ar',
  'ARCOM': '$AR $ARFLAGS $TARGET $SOURCES',
  'ARFLAGS': ['rc'],
  'AS': 'as',
  'ASCOM': '$AS $ASFLAGS -o $TARGET $SOURCES',
  'ASFLAGS': [],
  'ASPPCOM': '$CC $ASPPFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -c -o $TARGET $SOURCES',
  'ASPPFLAGS': '$ASFLAGS',
  'BOOST_LIBS_SUFFIX': '',
  'BUILDERS': {'CFile': <SCons.Builder.CompositeBuilder instance at 0xb78363ac>, 'RPCGenService': <SCons.Builder.BuilderBase instance at 0xb783678c>, 'SharedLibrary': <SCons.Builder.BuilderBase instance at 0xb78317ac>, 'Tar': <SCons.Builder.BuilderBase instance at 0xb7898e4c>, 'SConfSourceBuilder': <SCons.Builder.BuilderBase instance at 0xb783b3ac>, 'CXXFile': <SCons.Builder.CompositeBuilder instance at 0xb783650c>, 'Object': <SCons.Builder.CompositeBuilder instance at 0xb7831a6c>, 'Zip': <SCons.Builder.BuilderBase instance at 0xb789ee2c>, 'StaticLibrary': <SCons.Builder.BuilderBase instance at 0xb783612c>, 'M4': <SCons.Builder.BuilderBase instance at 0xb783660c>, 'Program': <SCons.Builder.BuilderBase instance at 0xb783174c>, 'Library': <SCons.Builder.BuilderBase instance at 0xb783612c>, 'RPCGenXDR': <SCons.Builder.BuilderBase instance at 0xb78367ec>, 'PDF': <SCons.Builder.CompositeBuilder instance at 0xb782694c>, 'LoadableModule': <SCons.Builder.BuilderBase instance at 0xb78318ec>, 'StaticObject': <SCons.Builder.CompositeBuilder instance at 0xb7831a6c>, 'RPCGenClient': <SCons.Builder.BuilderBase instance at 0xb783668c>, 'SharedObject': <SCons.Builder.CompositeBuilder instance at 0xb7831b8c>, 'RPCGenHeader': <SCons.Builder.BuilderBase instance at 0xb783674c>},
  'CC': 'gcc',
  'CCCOM': '$CC -o $TARGET -c $CFLAGS $CCFLAGS $_CCCOMCOM $SOURCES',
  'CCFLAGS': ['-g', '-Wall'],
  'CCVERSION': '4.1.2',
  'CFILESUFFIX': '.c',
  'CFLAGS': [],
  'CONFIGUREDIR': '#/.sconf_temp',
  'CONFIGURELOG': '#/config.log',
  'CPPDEFPREFIX': '-D',
  'CPPDEFSUFFIX': '',
  'CPPFLAGS': ['-DLINUX'],
  'CPPPATH': ['#/stage/include', '#extra/include', '/usr/local/include'],
  'CPPSUFFIXES': [ '.c',
                   '.C',
                   '.cxx',
                   '.cpp',
                   '.c++',
                   '.cc',
                   '.h',
                   '.H',
                   '.hxx',
                   '.hpp',
                   '.hh',
                   '.F',
                   '.fpp',
                   '.FPP',
                   '.m',
                   '.mm',
                   '.S',
                   '.spp',
                   '.SPP'],
  'CXX': 'g++',
  'CXXCOM': '$CXX -o $TARGET -c $CXXFLAGS $_CCCOMCOM $SOURCES',
  'CXXFILESUFFIX': '.cc',
  'CXXFLAGS': ['$CCFLAGS'],
  'CXXVERSION': '4.1.2',
  'DSUFFIXES': ['.d'],
  'DVIPDF': 'dvipdf',
  'DVIPDFCOM': 'cd ${TARGET.dir} && $DVIPDF $DVIPDFFLAGS ${SOURCE.file} ${TARGET.file}',
  'DVIPDFFLAGS': [],
  'Dir': <SCons.Defaults.Variable_Method_Caller instance at 0xb796624c>,
  'Dirs': <SCons.Defaults.Variable_Method_Caller instance at 0xb796626c>,
  'ENV': { 'ACLOCAL_FLAGS': ' -I /opt/gnome/share/aclocal',
           'CLASSPATH': ':/opt/java/jre/lib',
           'COLORTERM': '',
           'DESKTOP_SESSION': 'default',
           'DISPLAY': ':0.0',
           'DM_CONTROL': '/var/run/xdmctl',
           'GNOME2_PATH': '/opt/gnome',
           'GNOMEDIR': '/opt/gnome',
           'GPG_AGENT_INFO': '/tmp/gpg-0Rhduc/S.gpg-agent:3342:1',
           'GS_LIB': '/home/valerio/.fonts',
           'GTK2_RC_FILES': '/etc/gtk-2.0/gtkrc:/home/valerio/.gtkrc-2.0:/home/valerio/.kde/share/config/gtkrc-2.0',
           'GTK_RC_FILES': '/etc/gtk/gtkrc:/home/valerio/.gtkrc:/home/valerio/.kde/share/config/gtkrc',
           'G_BROKEN_FILENAMES': '1',
           'HOME': '/home/valerio',
           'INPUTRC': '/etc/inputrc',
           'J2REDIR': '/opt/java/jre',
           'JAVA_HOME': '/opt/java/jre',
           'KDEDIR': '/opt/kde',
           'KDEDIRS': '/opt/kde:/usr',
           'KDE_FULL_SESSION': 'true',
           'KDE_MULTIHEAD': 'false',
           'KONSOLE_DCOP': 'DCOPRef(konsole-3538,konsole)',
           'KONSOLE_DCOP_SESSION': 'DCOPRef(konsole-3538,session-1)',
           'LANG': 'en_US.utf8',
           'LC_COLLATE': 'C',
           'LESS': '-R',
           'LESSCHARSET': 'latin1',
           'LIBGLADE_MODULE_PATH': ':/opt/gnome/lib/libglade/2.0',
           'LOGNAME': 'valerio',
           'MANPATH': '/usr/man:/usr/X11R6/man:/opt/gnome/man:/opt/java/jre/man:/opt/kde/man:/opt/qt/man',
           'MOZ_PLUGIN_PATH': '/opt/mozilla/lib/plugins',
           'OLDPWD': '/home/valerio',
           'PATH': '/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/gnome/bin:/opt/java/jre/bin:/opt/kde/bin:/opt/mozilla/bin:/opt/qt/bin',
           'PKG_CONFIG_PATH': ':/opt/gnome/lib/pkgconfig:/opt/kde/lib/pkgconfig:/opt/mozilla/lib/pkgconfig:/opt/qt/lib/pkgconfig',
           'PWD': '/home/valerio/Software/iplt',
           'QMAKESPEC': '/opt/qt/mkspecs/linux-g++',
           'QTDIR': '/opt/qt',
           'QT_XFT': 'true',
           'SESSION_MANAGER': 'local/archlinux:/tmp/.ICE-unix/3382',
           'SHELL': '/bin/bash',
           'SHLVL': '2',
           'SSH_AGENT_PID': '3345',
           'SSH_AUTH_SOCK': '/tmp/ssh-uoJvTb3344/agent.3344',
           'TERM': 'xterm',
           'USER': 'valerio',
           'WINDOWID': '37748741',
           'XCURSOR_THEME': 'default',
           'XDG_CACHE_HOME': '/home/valerio/.cache',
           'XDG_CONFIG_DIRS': '/etc/xdg:/opt/gnome/etc/xdg:/opt/kde/etc/xdg',
           'XDG_CONFIG_HOME': '/home/valerio/.config',
           'XDG_DATA_DIRS': '/usr/share:/usr/local/share:/opt/gnome/share:/opt/kde/share',
           'XDG_DATA_HOME': '/home/valerio/.local/share',
           'XDM_MANAGED': '/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd,method=classic',
           '_': '/usr/bin/scons'},
  'ESCAPE': <function escape at 0xb792f614>,
  'EXTRA_CC_FLAGS': '-g -Wall',
  'EXTRA_INCLUDE_PATH': '/usr/local/include',
  'EXTRA_LIBRARY_PATH': '/usr/local/lib',
  'EXTRA_LIBS': '',
  'EXTRA_LINK_FLAGS': '',
  'FORTRANMODDIR': '',
  'FORTRANMODDIRPREFIX': '',
  'FORTRANMODDIRSUFFIX': '',
  'FORTRANMODPREFIX': '',
  'FORTRANMODSUFFIX': '.mod',
  'FORTRANSUFFIXES': [ '.f',
                       '.for',
                       '.ftn',
                       '.fpp',
                       '.FPP',
                       '.F',
                       '.FOR',
                       '.FTN',
                       '.f77',
                       '.F77',
                       '.f90',
                       '.F90',
                       '.f95',
                       '.F95'],
  'FRAMEWORKPATH': [],
  'FRAMEWORKS': [],
  'File': <SCons.Defaults.Variable_Method_Caller instance at 0xb796628c>,
  'GS': 'gs',
  'GSCOM': '$GS $GSFLAGS -sOutputFile=$TARGET $SOURCES',
  'GSFLAGS': ['-dNOPAUSE', '-dBATCH', '-sDEVICE=pdfwrite'],
  'IDLSUFFIXES': ['.idl', '.IDL'],
  'INCPREFIX': '-I',
  'INCSUFFIX': '',
  'INSTALL': <function installFunc at 0xb796472c>,
  'INSTALLSTR': <function installStr at 0xb7964764>,
  'INSTALL_PATH': '',
  'LATEXSUFFIXES': ['.tex', '.ltx', '.latex'],
  'LDMODULE': '$SHLINK',
  'LDMODULECOM': '$SHLINKCOM',
  'LDMODULEFLAGS': '$SHLINKFLAGS',
  'LDMODULEPREFIX': '$SHLIBPREFIX',
  'LDMODULESUFFIX': '$SHLIBSUFFIX',
  'LEX': 'flex',
  'LEXCOM': '$LEX $LEXFLAGS -t $SOURCES > $TARGET',
  'LEXFLAGS': [],
  'LIBDIRPREFIX': '-L',
  'LIBDIRSUFFIX': '',
  'LIBLINKPREFIX': '-l',
  'LIBLINKSUFFIX': '',
  'LIBPATH': ['/usr/local/lib'],
  'LIBPREFIX': 'lib',
  'LIBPREFIXES': '$LIBPREFIX',
  'LIBS': [],
  'LIBSUFFIX': '.a',
  'LIBSUFFIXES': ['$LIBSUFFIX', '$SHLIBSUFFIX'],
  'LINK': '$SMARTLINK',
  'LINKCOM': '$LINK -o $TARGET $LINKFLAGS $SOURCES $_LIBDIRFLAGS $_LIBFLAGS',
  'LINKFLAGS': ['$__RPATH', '-Wl,--export-dynamic', '-Wl,-rpath-link', '-Xlinker', '/home/valerio/Software/iplt/stage/lib'],
  'M4': 'm4',
  'M4COM': 'cd ${SOURCE.rsrcdir} && $M4 $M4FLAGS < ${SOURCE.file} > ${TARGET.abspath}',
  'M4FLAGS': ['-E'],
  'MAXLINELENGTH': 128072,
  'OBJPREFIX': '',
  'OBJSUFFIX': '.o',
  'PDFCOM': ['$DVIPDFCOM'],
  'PDFPREFIX': '',
  'PDFSUFFIX': '.pdf',
  'PLATFORM': 'posix',
  'PROGPREFIX': '',
  'PROGSUFFIX': '',
  'PSPAWN': <function piped_env_spawn at 0xb792fcdc>,
  'PYTHON_VERSION': '',
  'RANLIB': 'ranlib',
  'RANLIBCOM': '$RANLIB $RANLIBFLAGS $TARGET',
  'RANLIBFLAGS': [],
  'RDirs': <SCons.Defaults.Variable_Method_Caller instance at 0xb79662ac>,
  'RPATHPREFIX': '-Wl,-rpath=',
  'RPATHSUFFIX': '',
  'RPCGEN': 'rpcgen',
  'RPCGENCLIENTFLAGS': [],
  'RPCGENFLAGS': [],
  'RPCGENHEADERFLAGS': [],
  'RPCGENSERVICEFLAGS': [],
  'RPCGENXDRFLAGS': [],
  'SCANNERS': [],
  'SHCC': '$CC',
  'SHCCCOM': '$SHCC -o $TARGET -c $SHCFLAGS $SHCCFLAGS $_CCCOMCOM $SOURCES',
  'SHCCFLAGS': ['$CCFLAGS', '-fPIC'],
  'SHCFLAGS': ['$CFLAGS'],
  'SHCXX': '$CXX',
  'SHCXXCOM': '$SHCXX -o $TARGET -c $SHCXXFLAGS $_CCCOMCOM $SOURCES',
  'SHCXXFLAGS': ['$CXXFLAGS', '-fPIC'],
  'SHELL': 'sh',
  'SHLIBPREFIX': '$LIBPREFIX',
  'SHLIBSUFFIX': '.so',
  'SHLINK': '$LINK',
  'SHLINKCOM': '$SHLINK -o $TARGET $SHLINKFLAGS $SOURCES $_LIBDIRFLAGS $_LIBFLAGS',
  'SHLINKFLAGS': ['$LINKFLAGS', '-shared'],
  'SHOBJPREFIX': '$OBJPREFIX',
  'SHOBJSUFFIX': '.os',
  'SMARTLINK': <function smart_link at 0xb793f10c>,
  'SPAWN': <function spawnvpe_spawn at 0xb792fbc4>,
  'STATIC_AND_SHARED_OBJECTS_ARE_THE_SAME': 0,
  'TAR': 'tar',
  'TARCOM': '$TAR $TARFLAGS -f $TARGET $SOURCES',
  'TARFLAGS': ['-c'],
  'TARSUFFIX': '.tar',
  'TEMPFILE': <class SCons.Platform.TempFileMunge at 0xb796e44c>,
  'TEMPFILEPREFIX': '@',
  'TOOLS': [ 'default',
             'gnulink',
             'gcc',
             'g++',
             'f95',
             'gas',
             'ar',
             'dvipdf',
             'gs',
             'lex',
             'm4',
             'rpcgen',
             'tar',
             'yacc',
             'zip'],
  'YACC': 'bison',
  'YACCCOM': '$YACC $YACCFLAGS -o $TARGET $SOURCES',
  'YACCFLAGS': [],
  'YACCHFILESUFFIX': '.h',
  'YACCHXXFILESUFFIX': '.hpp',
  'YACCVCGFILESUFFIX': '.vcg',
  'ZIP': 'zip',
  'ZIPCOM': <SCons.Action.FunctionAction instance at 0xb789edac>,
  'ZIPCOMPRESSION': 8,
  'ZIPFLAGS': [],
  'ZIPSUFFIX': '.zip',
  '_CCCOMCOM': '$CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS',
  '_CPPDEFFLAGS': '${_defines(CPPDEFPREFIX, CPPDEFINES, CPPDEFSUFFIX, __env__)}',
  '_CPPINCFLAGS': '$( ${_concat(INCPREFIX, CPPPATH, INCSUFFIX, __env__, RDirs, TARGET, SOURCE)} $)',
  '_F77COMD': '$_F77G -o $TARGET -c $_F77FLAGSG $_F77INCFLAGS $SOURCES',
  '_F77COMG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb786976c>,
  '_F77COMSTRG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb786978c>,
  '_F77FLAGSG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb786974c>,
  '_F77G': <SCons.Tool.fortran.VariableListGenerator instance at 0xb786972c>,
  '_F77INCFLAGS': '$( ${_concat(INCPREFIX, F77PATH, INCSUFFIX, __env__, RDirs, TARGET, SOURCE)} $)',
  '_F77PPCOMD': '$_F77G -o $TARGET -c $_F77FLAGSG $CPPFLAGS $_CPPDEFFLAGS $_F77INCFLAGS $SOURCES',
  '_F77PPCOMG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb78697ac>,
  '_F77PPCOMSTRG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb78697cc>,
  '_F90COMD': '$_F90G -o $TARGET -c $_F90FLAGSG $_F90INCFLAGS $_FORTRANMODFLAG $SOURCES',
  '_F90COMG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb786930c>,
  '_F90COMSTRG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb786932c>,
  '_F90FLAGSG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb78692ec>,
  '_F90G': <SCons.Tool.fortran.VariableListGenerator instance at 0xb78692cc>,
  '_F90INCFLAGS': '$( ${_concat(INCPREFIX, F90PATH, INCSUFFIX, __env__, RDirs, TARGET, SOURCE)} $)',
  '_F90PPCOMD': '$_F90G -o $TARGET -c $_F90FLAGSG $CPPFLAGS $_CPPDEFFLAGS $_F90INCFLAGS $_FORTRANMODFLAG $SOURCES',
  '_F90PPCOMG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb786934c>,
  '_F90PPCOMSTRG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb786936c>,
  '_F95COMD': '$_F95G -o $TARGET -c $_F95FLAGSG $_F95INCFLAGS $_FORTRANMODFLAG $SOURCES',
  '_F95COMG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb7862dac>,
  '_F95COMSTRG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb7862dcc>,
  '_F95FLAGSG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb7862d8c>,
  '_F95G': <SCons.Tool.fortran.VariableListGenerator instance at 0xb7862d2c>,
  '_F95INCFLAGS': '$( ${_concat(INCPREFIX, F95PATH, INCSUFFIX, __env__, RDirs, TARGET, SOURCE)} $)',
  '_F95PPCOMD': '$_F95G -o $TARGET -c $_F95FLAGSG $CPPFLAGS $_CPPDEFFLAGS $_F95INCFLAGS $_FORTRANMODFLAG $SOURCES',
  '_F95PPCOMG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb7862e2c>,
  '_F95PPCOMSTRG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb7862e4c>,
  '_FORTRANCOMD': '$_FORTRANG -o $TARGET -c $_FORTRANFLAGSG $_FORTRANINCFLAGS $_FORTRANMODFLAG $SOURCES',
  '_FORTRANCOMG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb786288c>,
  '_FORTRANCOMSTRG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb786292c>,
  '_FORTRAND': 'f95',
  '_FORTRANFLAGSG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb78627ec>,
  '_FORTRANG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb7862c0c>,
  '_FORTRANINCFLAGS': '$( ${_concat(INCPREFIX, FORTRANPATH, INCSUFFIX, __env__, RDirs, TARGET, SOURCE)} $)',
  '_FORTRANMODFLAG': '$( ${_concat(FORTRANMODDIRPREFIX, FORTRANMODDIR, FORTRANMODDIRSUFFIX, __env__, RDirs)} $)',
  '_FORTRANPPCOMD': '$_FORTRANG -o $TARGET -c $_FORTRANFLAGSG $CPPFLAGS $_CPPDEFFLAGS $_FORTRANINCFLAGS $_FORTRANMODFLAG $SOURCES',
  '_FORTRANPPCOMG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb78628ec>,
  '_FORTRANPPCOMSTRG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb786278c>,
  '_LIBDIRFLAGS': '$( ${_concat(LIBDIRPREFIX, LIBPATH, LIBDIRSUFFIX, __env__, RDirs, TARGET, SOURCE)} $)',
  '_LIBFLAGS': '${_stripixes(LIBLINKPREFIX, LIBS, LIBLINKSUFFIX, LIBPREFIX, LIBSUFFIX, __env__)}',
  '_RPATH': '${_concat(RPATHPREFIX, RPATH, RPATHSUFFIX, __env__)}',
  '_SHF77COMD': '$_SHF77G -o $TARGET -c $_SHF77FLAGSG $_F77INCFLAGS $SOURCES',
  '_SHF77COMG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb786982c>,
  '_SHF77COMSTRG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb786984c>,
  '_SHF77FLAGSG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb786980c>,
  '_SHF77G': <SCons.Tool.fortran.VariableListGenerator instance at 0xb78697ec>,
  '_SHF77PPCOMD': '$_SHF77G -o $TARGET -c $_SHF77FLAGSG $CPPFLAGS $_CPPDEFFLAGS $_F77INCFLAGS $SOURCES',
  '_SHF77PPCOMG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb786986c>,
  '_SHF77PPCOMSTRG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb786988c>,
  '_SHF90COMD': '$_SHF90G -o $TARGET -c $_SHF90FLAGSG $_F90INCFLAGS $_FORTRANMODFLAG $SOURCES',
  '_SHF90COMG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb78693cc>,
  '_SHF90COMSTRG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb78693ec>,
  '_SHF90FLAGSG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb78693ac>,
  '_SHF90G': <SCons.Tool.fortran.VariableListGenerator instance at 0xb786938c>,
  '_SHF90PPCOMD': '$_SHF90G -o $TARGET -c $_SHF90FLAGSG $CPPFLAGS $_CPPDEFFLAGS $_F90INCFLAGS $_FORTRANMODFLAG $SOURCES',
  '_SHF90PPCOMG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb786940c>,
  '_SHF90PPCOMSTRG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb786942c>,
  '_SHF95COMD': '$_SHF95G -o $TARGET -c $_SHF95FLAGSG $_F95INCFLAGS $_FORTRANMODFLAG $SOURCES',
  '_SHF95COMG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb7862f0c>,
  '_SHF95COMSTRG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb7862f2c>,
  '_SHF95FLAGSG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb7862eec>,
  '_SHF95G': <SCons.Tool.fortran.VariableListGenerator instance at 0xb7862e8c>,
  '_SHF95PPCOMD': '$_SHF95G -o $TARGET -c $_SHF95FLAGSG $CPPFLAGS $_CPPDEFFLAGS $_F95INCFLAGS $_FORTRANMODFLAG $SOURCES',
  '_SHF95PPCOMG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb7862f4c>,
  '_SHF95PPCOMSTRG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb7862f6c>,
  '_SHFORTRANCOMD': '$_SHFORTRANG -o $TARGET -c $_SHFORTRANFLAGSG $_FORTRANINCFLAGS $_FORTRANMODFLAG $SOURCES',
  '_SHFORTRANCOMG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb786294c>,
  '_SHFORTRANCOMSTRG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb7862a4c>,
  '_SHFORTRANFLAGSG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb78629ac>,
  '_SHFORTRANG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb7862bcc>,
  '_SHFORTRANPPCOMD': '$_SHFORTRANG -o $TARGET -c $_SHFORTRANFLAGSG $CPPFLAGS $_CPPDEFFLAGS $_FORTRANINCFLAGS $_FORTRANMODFLAG $SOURCES',
  '_SHFORTRANPPCOMG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb7862aac>,
  '_SHFORTRANPPCOMSTRG': <SCons.Tool.fortran.VariableListGenerator instance at 0xb7862aec>,
  '__RPATH': '$_RPATH',
  '_concat': <function _concat at 0xb79647d4>,
  '_defines': <function _defines at 0xb7964844>,
  '_installStr': <function installStr at 0xb7964764>,
  '_stripixes': <function _stripixes at 0xb796480c>}


Thank you

    Valerio

Last edited by valmar (2007-03-16 00:03:01)

Offline

#5 2007-03-19 17:30:30

valmar
Member
Registered: 2007-03-14
Posts: 55

Re: Boost libraries - detected as root, not as user [solved]

Ok, I solved the problem and found out that it was again caused by me and not by the system.

The way scons check if a library is available is by generating a small code file and then by trying to compile it and to link it against the library that must be checked. This happens in an hidden folder called .sconf_temp.

Since Archlinux lets you have only a root user at the beginning, and I was impatient to try our software, I tried compiling while being the root user. This created the temporary directory which was now owned by root.

Later, after creating a user, I tried compiling our software as a user. Scons would try to write the small test file into the sconf_temp directory, but would fail beacuse the folder was owned by root. Scons at this point would realize that the test compiling had failed, and blame it on missing libraries as opposed to a permission problem. So I would only see a message like "Libraries not present".

Compiling the software as a user in a new fresh directory worked like a charm.

I must really have looked stupid by writing on this forum  about two problems that were actually created by me. I am sorry for wasting everyone's time. Thanks for your help anyway.

         Valerio

Offline

#6 2007-03-19 20:00:21

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Boost libraries - detected as root, not as user [solved]

Heh, it's cool.  We all do stuff like that.  At least you got it solved. 8)

Offline

Board footer

Powered by FluxBB