aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: [1] 2

Author Topic: error compiling aMule cvs with cpp 4.3  (Read 6893 times)

pepetops

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 1
error compiling aMule cvs with cpp 4.3
« on: February 29, 2008, 01:21:03 AM »

Hi
I try to compiled the last cvs aMule but I have problem.
I use openSuSE 11 alpha2 and gcc-4.3
Attach configure y make logs
ls -l /usr/bin/wx* show:
lrwxrwxrwx 1 root root    41 feb 27 21:13 /usr/bin/wx-config -> ../lib/wx/config/gtk2-unicode-release-2.8
lrwxrwxrwx 1 root root     8 feb 27 21:13 /usr/bin/wxrc -> wxrc-2.8
-rwxr-xr-x 1 root root 72260 feb 26 08:53 /usr/bin/wxrc-2.8
lrwxrwxrwx 1 root root     3 ene  2 17:58 /usr/bin/wxvlc -> vlc
ls -l /usr/local/bin/wx* show:
Nothing
rpm -qa | grep wx show:
wxGTK-doc-2.8.6.0-23
wxGTK-gl-2.8.6.0-60
wxGTK-compat-2.8.6.0-60
wxGTK-devel-2.8.6.0-60
python-wxGTK-2.8.6.0-60
wxGTK-2.8.6.0-60
Regards


Logged

adsl

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 13
Re: error compiling aMule cvs with cpp 4.3
« Reply #1 on: March 27, 2008, 05:57:47 AM »

same problem here, can not compiled with gcc 4.3
Logged

lfroen

  • Guest
Re: error compiling aMule cvs with cpp 4.3
« Reply #2 on: March 27, 2008, 09:08:23 AM »

In file included from /usr/include/c++/4.3/bits/char_traits.h:48,
                 from /usr/include/c++/4.3/ios:46,
                 from /usr/include/c++/4.3/ostream:45,
                 from /usr/include/c++/4.3/iostream:45,
                 from ECTag.h:28,
                 from ECTag.cpp:25:
/usr/include/c++/4.3/cstdio:50:24: error: stdio.h: No existe el fichero o el directorio[/quote]

I don't know what language is it, but looks like stdio.h is not found. What kind of install is that?!
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: error compiling aMule cvs with cpp 4.3
« Reply #3 on: March 27, 2008, 09:48:28 AM »

It means file not found, in spanish.

For reference:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=467230

Given that it was a bug in their configure script, aMule might have it as well. Worth investigating.
« Last Edit: March 27, 2008, 09:51:51 AM by Kry »
Logged

lfroen

  • Guest
Re: error compiling aMule cvs with cpp 4.3
« Reply #4 on: March 27, 2008, 02:18:58 PM »

Given that it was a bug in their configure script, aMule might have it as well. Worth investigating.

By "their" you mean "Debian" I suppose
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: error compiling aMule cvs with cpp 4.3
« Reply #5 on: March 27, 2008, 02:24:06 PM »

No, I don't. Read the fucking link.
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: error compiling aMule cvs with cpp 4.3
« Reply #6 on: March 27, 2008, 02:55:32 PM »

I can confirm this problem.

It fails to include at least wchar.h, stdio.h, locale.h, ctype.h and wctype.h.
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: error compiling aMule cvs with cpp 4.3
« Reply #7 on: March 27, 2008, 03:12:39 PM »

This is caused by the -isystem /usr/include argument in the g++-command. I think the cryptopp code adds this, but I'm not sure.

Code: [Select]
$ cat test.cpp
#include <cstdio>

int main() {

return 0;

}
$ g++ test.cpp -c
$ g++ test.cpp -c -isystem /home
$ g++ test.cpp -c -isystem /usr/include/
In file included from test.cpp:1:
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:50:24: error: stdio.h: No such file or directory
In file included from test.cpp:1:
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:100: error: ‘::FILE’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:101: error: ‘::fpos_t’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:103: error: ‘::clearerr’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:104: error: ‘::fclose’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:105: error: ‘::feof’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:106: error: ‘::ferror’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:107: error: ‘::fflush’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:108: error: ‘::fgetc’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:109: error: ‘::fgetpos’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:110: error: ‘::fgets’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:111: error: ‘::fopen’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:112: error: ‘::fprintf’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:113: error: ‘::fputc’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:114: error: ‘::fputs’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:115: error: ‘::fread’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:116: error: ‘::freopen’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:117: error: ‘::fscanf’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:118: error: ‘::fseek’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:119: error: ‘::fsetpos’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:120: error: ‘::ftell’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:121: error: ‘::fwrite’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:122: error: ‘::getc’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:123: error: ‘::getchar’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:124: error: ‘::gets’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:125: error: ‘::perror’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:126: error: ‘::printf’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:127: error: ‘::putc’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:128: error: ‘::putchar’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:129: error: ‘::puts’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:130: error: ‘::remove’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:131: error: ‘::rename’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:132: error: ‘::rewind’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:133: error: ‘::scanf’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:134: error: ‘::setbuf’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:135: error: ‘::setvbuf’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:136: error: ‘::sprintf’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:137: error: ‘::sscanf’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:138: error: ‘::tmpfile’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:139: error: ‘::tmpnam’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:140: error: ‘::ungetc’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:141: error: ‘::vfprintf’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:142: error: ‘::vprintf’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:143: error: ‘::vsprintf’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:170: error: ‘::snprintf’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:171: error: ‘::vfscanf’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:172: error: ‘::vscanf’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:173: error: ‘::vsnprintf’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:174: error: ‘::vsscanf’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:181: error: ‘__gnu_cxx::snprintf’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:182: error: ‘__gnu_cxx::vfscanf’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:183: error: ‘__gnu_cxx::vscanf’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:184: error: ‘__gnu_cxx::vsnprintf’ has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdio:185: error: ‘__gnu_cxx::vsscanf’ has not been declared
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: error compiling aMule cvs with cpp 4.3
« Reply #8 on: March 27, 2008, 08:30:55 PM »

Reverted ‘-isystem’ to ‘-I’.
Logged
concordia cum veritate

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: error compiling aMule cvs with cpp 4.3
« Reply #9 on: March 27, 2008, 08:56:08 PM »

OK, now it gets interesting:
Quote
g++ -DHAVE_CONFIG_H -I. -I../../..    -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -DHAVE_BFD  -I/usr/include -D__CRYPTO_INSTALLED__ -D__WEAK_CRYPTO__  -W -Wall -Wshadow -Wundef   -DUSE_WX_EXTENSIONS -MT libmulecommon_a-MuleDebug.o -MD -MP -MF .deps/libmulecommon_a-MuleDebug.Tpo -c -o libmulecommon_a-MuleDebug.o `test -f 'MuleDebug.cpp' || echo './'`MuleDebug.cpp
MuleDebug.cpp: In function ‘void OnUnhandledException()’:
MuleDebug.cpp:62: error: ‘abort’ is not a member of ‘std’
make[4]: *** [libmulecommon_a-MuleDebug.o] Error 1
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: error compiling aMule cvs with cpp 4.3
« Reply #10 on: March 29, 2008, 02:57:22 AM »

Compilation for gcc 4.3 should be fixed now.
Logged

adsl

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 13
Re: error compiling aMule cvs with cpp 4.3
« Reply #11 on: March 29, 2008, 04:18:59 AM »

still have problem, 0328.
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: error compiling aMule cvs with cpp 4.3
« Reply #12 on: March 29, 2008, 09:57:27 AM »

Please try it with 0329 (the first version with the fix) and if the problem persists, please tell us what error messages you get and what operating system/distribution you use.
Logged

adsl

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 13
Re: error compiling aMule cvs with cpp 4.3
« Reply #13 on: March 29, 2008, 12:32:42 PM »

0329 fixed the problem, thanks.
Logged

Anarconda

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 35
Re: error compiling aMule cvs with cpp 4.3
« Reply #14 on: March 29, 2008, 12:47:24 PM »

0329 fixed the problem, thanks.

Same here.
Logged
Pages: [1] 2