Author Topic: compiling error  (Read 6120 times)

taprik

  • User
  • *
  • Posts: 3
compiling error
« on: July 26, 2007, 06:36:05 PM »
Hi

I'm trying to compile gne on a fedora 6 (last updates done)
I've checked if the dependencies needed are here
Code: [Select]
[root@localhost gnelib-0_70]# yum list | grep pthreads
[root@localhost gnelib-0_70]# yum list | grep pthreads-devel
[root@localhost gnelib-0_70]# yum list | grep ncurses
ncurses.i386                             5.5-24.20060715        installed       
ncurses-devel.i386                       5.5-24.20060715        installed       
php-ncurses.i386                         5.1.6-3.6.fc6          updates         
ruby-ncurses.i386                        1.1-5.fc6              extras         
[root@localhost gnelib-0_70]# yum list | grep hawknl
hawknl.i386                              1.68-1.fc6             installed       
hawknl-devel.i386                        1.68-1.fc6             installed       
[root@localhost gnelib-0_70]# yum list | grep boost
boost.i386                               1.33.1-11.fc6          installed       
boost-devel.i386                         1.33.1-11.fc6          installed       
boost-doc.i386                           1.33.1-11.fc6          updates   
When I launch make it sent errors
Code: [Select]
[root@localhost gnelib-0_70]# make
g++ -c -o src/Address.o -MMD -Wall -Iinclude -O3 -s src/Address.cpp
Dans le fichier inclus à partir de src/Address.cpp:20:
src/../include/gnelib/gneintern.h:48:16: attention : nl.h : Aucun fichier ou répertoire de ce type
src/../include/gnelib/Address.h:68: erreur: expected `)' before ‘address’
src/../include/gnelib/Address.h:87: erreur: ‘NLaddress’ does not name a type
src/../include/gnelib/Address.h:92: erreur: ‘NLaddress’ has not been declared
src/../include/gnelib/Address.h:130: erreur: ‘NLaddress’ does not name a type
src/Address.cpp: In constructor ‘GNE::Address::Address()’:
src/Address.cpp:31: erreur: ‘addr’ was not declared in this scope
src/Address.cpp:31: erreur: ‘NL_FALSE’ was not declared in this scope
src/Address.cpp: At global scope:
src/Address.cpp:42: erreur: expected `)' before ‘address’
src/Address.cpp: In member function ‘void GNE::Address::setAddressByName(const std::string&)’:
src/Address.cpp:49: erreur: ISO C++ forbids declaration of ‘type name’ with no type
src/Address.cpp:49: erreur: ISO C++ forbids declaration of ‘type name’ with no type
src/Address.cpp:49: erreur: expected primary-expression before ‘const’
src/Address.cpp:49: erreur: expected `)' before ‘const’
src/Address.cpp: In member function ‘std::string GNE::Address::getNameByAddress() const’:
src/Address.cpp:54: erreur: ‘NL_MAX_STRING_LENGTH’ was not declared in this scope
src/Address.cpp:55: erreur: ‘class GNE::Address’ has no member named ‘addr’
src/Address.cpp:55: erreur: ‘NLbyte’ was not declared in this scope
src/Address.cpp:55: erreur: expected primary-expression before ‘)’ token
src/Address.cpp:55: erreur: ‘nlGetNameFromAddr’ was not declared in this scope
src/Address.cpp:56: erreur: ‘buf’ was not declared in this scope
src/Address.cpp: At global scope:
src/Address.cpp:63: erreur: ‘NLaddress’ does not name a type
src/Address.cpp:67: erreur: variable or field ‘setAddress’ declared void
src/Address.cpp:67: erreur: ‘int GNE::Address::setAddress’ is not a static member of ‘class GNE::Address’
src/Address.cpp:67: erreur: ‘NLaddress’ was not declared in this scope
src/Address.cpp:67: erreur: expected ‘,’ or ‘;’ before ‘{’ token
src/Address.cpp: In member function ‘std::string GNE::Address::toString() const’:
src/Address.cpp:74: erreur: ‘NL_MAX_STRING_LENGTH’ was not declared in this scope
src/Address.cpp:75: erreur: ‘class GNE::Address’ has no member named ‘addr’
src/Address.cpp:75: erreur: ‘NLbyte’ was not declared in this scope
src/Address.cpp:75: erreur: expected primary-expression before ‘)’ token
src/Address.cpp:75: erreur: ‘nlAddrToString’ was not declared in this scope
src/Address.cpp:76: erreur: ‘buf’ was not declared in this scope
src/Address.cpp: In member function ‘int GNE::Address::getPort() const’:
src/Address.cpp:82: erreur: ‘class GNE::Address’ has no member named ‘addr’
src/Address.cpp:82: erreur: ‘nlGetPortFromAddr’ was not declared in this scope
src/Address.cpp: In member function ‘void GNE::Address::setPort(int)’:
src/Address.cpp:87: erreur: ‘addr’ was not declared in this scope
src/Address.cpp:87: erreur: ‘NL_FALSE’ was not declared in this scope
src/Address.cpp:89: erreur: ‘class GNE::Address’ has no member named ‘addr’
src/Address.cpp:89: erreur: ‘NLushort’ was not declared in this scope
src/Address.cpp:89: erreur: ‘nlSetAddrPort’ was not declared in this scope
src/Address.cpp: In member function ‘bool GNE::Address::isValid() const’:
src/Address.cpp:93: erreur: ‘addr’ was not declared in this scope
src/Address.cpp:93: erreur: ‘NL_TRUE’ was not declared in this scope
src/Address.cpp: In member function ‘bool GNE::Address::operator==(const GNE::Address&) const’:
src/Address.cpp:101: erreur: ‘class GNE::Address’ has no member named ‘addr’
src/Address.cpp:101: erreur: ‘class GNE::Address’ has no member named ‘addr’
src/Address.cpp:101: erreur: ‘nlAddrCompare’ was not declared in this scope
src/Address.cpp:101: erreur: ‘NL_TRUE’ was not declared in this scope
make: *** [src/Address.o] Erreur 1
I saw that pthreads is needed and that is also needed to compile hawknl. I got hawknl but no signs of pthreads. I didn't find it on the web.
Any ideas
taprik

Gillius

  • Administrator
  • User
  • *****
  • Posts: 147
    • http://www.gillius.org/
Re: compiling error
« Reply #1 on: July 26, 2007, 08:27:23 PM »
It looks like the HawkNL header isn't getting compiled in, but it didn't complain about missing nl.h? Are you using the latest release, or the SVN version? I highly recommend the SVN one as it is compatible with more compilers. I would check your HawkNL dependency... the NL_TRUE and other constants are defined in the nl.h header.
Gillius
Gillius's Programming http://www.gillius.org/

taprik

  • User
  • *
  • Posts: 3
Re: compiling error
« Reply #2 on: July 27, 2007, 05:32:19 AM »
I installed hawknl with yum install hawknl-devel
I used the gne latest release version.
It seems that nl.h is in the right place ?
Code: [Select]
[root@localhost taprik]# find / -name nl.h
/home/taprik/delta3d_1.5.0/ext/inc/nl.h
/home/taprik/Desktop/dt_dep_src_dev/ext/inc/nl.h
/home/taprik/Desktop/dt_dep_src_dev/HawkNL1.68/include/nl.h
/usr/include/hawknl/nl.h
What do you think about pthreads is not here. Did I mess with the spelling of the name ...?

taprik

  • User
  • *
  • Posts: 3
Re: compiling error
« Reply #3 on: July 27, 2007, 06:21:14 AM »
I had remove hawnkl with yum remove ....
Installed with the release at http://www.hawksoft.com/download/
and Succesfully compiled gne

Gillius

  • Administrator
  • User
  • *****
  • Posts: 147
    • http://www.gillius.org/
Re: compiling error
« Reply #4 on: July 27, 2007, 09:19:38 AM »
Hmm that is strange that GNE isn't compiling with the system-installed HawkNL. I wonder if there is a conflict with the nl.h header. I saw that delta3D had one there -- maybe the include was picking up that nl.h and not Hawk's?
Gillius
Gillius's Programming http://www.gillius.org/