LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   cant install opebox, errors help (https://www.linuxquestions.org/questions/linux-software-2/cant-install-opebox-errors-help-439112/)

swooshonln 04-26-2006 03:22 PM

cant install opebox, errors help
 
Code:

Making all in src
make[2]: Entering directory `/home/swooshonln/openbox-2.2.3/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -DNDEBUG -I/usr/X11R6/include -I/usr/inclu
de/freetype2 -I/usr/include/freetype2/config -DLOCALEPATH=\"/usr/local/share/ope
nbox/nls\" -DBUTTONSDIR=\"/usr/local/share/openbox/buttons\" -DDEFAULTMENU=\"/us
r/local/share/openbox/menu\" -DDEFAULTSTYLE=\"/usr/local/share/openbox/styles/mb
dtex\"  -g -O2  -I/usr/X11R6/include -Wall -W -MT Configuration.o -MD -MP -MF ".
deps/Configuration.Tpo" \
  -c -o Configuration.o `test -f 'Configuration.cc' || echo './'`Configuration.c
c; \
then mv ".deps/Configuration.Tpo" ".deps/Configuration.Po"; \
else rm -f ".deps/Configuration.Tpo"; exit 1; \
fi
Configuration.cc: In member function `void Configuration::save()':
Configuration.cc:77: error: `assert' undeclared (first use this function)
Configuration.cc:77: error: (Each undeclared identifier is reported only once
  for each function it appears in.)
Configuration.cc: In member function `void Configuration::create()':
Configuration.cc:104: error: `assert' undeclared (first use this function)
Configuration.cc: In member function `void Configuration::setValue(const
  std::string&, bool)':
Configuration.cc:108: error: `assert' undeclared (first use this function)
Configuration.cc: In member function `void Configuration::setValue(const
  std::string&, long unsigned int)':
Configuration.cc:120: error: `assert' undeclared (first use this function)
Configuration.cc: In member function `void Configuration::setValue(const
  std::string&, long int)':
Configuration.cc:131: error: `assert' undeclared (first use this function)
Configuration.cc: In member function `void Configuration::setValue(const
  std::string&, const char*)':
Configuration.cc:142: error: `assert' undeclared (first use this function)
Configuration.cc: In member function `void Configuration::setValue(const
  std::string&, const std::string&)':
Configuration.cc:154: error: `assert' undeclared (first use this function)
Configuration.cc: In member function `bool Configuration::getValue(const
  std::string&, bool&) const':
Configuration.cc:165: error: `assert' undeclared (first use this function)
Configuration.cc: In member function `bool Configuration::getValue(const
  std::string&, long int&) const':
Configuration.cc:183: error: `assert' undeclared (first use this function)
Configuration.cc: In member function `bool Configuration::getValue(const
  std::string&, long unsigned int&) const':
Configuration.cc:200: error: `assert' undeclared (first use this function)
Configuration.cc: In member function `bool Configuration::getValue(const
  std::string&, std::string&) const':
Configuration.cc:218: error: `assert' undeclared (first use this function)
make[2]: *** [Configuration.o] Error 1
make[2]: Leaving directory `/home/swooshonln/openbox-2.2.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/swooshonln/openbox-2.2.3'
make: *** [all] Error 2
root@slacker:/home/swooshonln/openbox-2.2.3#

./configure and "make" run sucessfully. however, when I run 'make install' i get those errors at the end. Any ideas? I have downloaed all the necessary deps listed on the Freshmeat website. (I am running as root)

tomdkat 04-26-2006 05:07 PM

What happens if you type "make check" or "make test"? 'assert' being undeclared means there's some kind of strange issue involving the C library headers. Can you look to see if you have /usr/include/assert.h?

What version of gcc are you using?

Peace...

jonaskoelker 04-26-2006 05:08 PM

openbox as in icculus.org? Then 2.2.3 is *very* old. I just looked through the source tarball, and there were exactly zero c++-files (which typicall end in .cpp, .cc, .c++, .cxx or something else different from .c). So, grab a newer version.

If you're hell-bent on using that version, have a look inside Configuration.cc; near the top, there should be a bunch of lines saying "#include <something>"; add a line where "something" is "assert.h", and try again. If that doesn't work, go get newer version :P

hth --Jonas


All times are GMT -5. The time now is 01:43 AM.