aMule Forum
English => Compilation problems => Topic started by: pepetops 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
-
same problem here, can not compiled with gcc 4.3
-
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?!
-
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.
-
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
-
No, I don't. Read the fucking link.
-
I can confirm this problem.
It fails to include at least wchar.h, stdio.h, locale.h, ctype.h and wctype.h.
-
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.
$ 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
-
Reverted ‘-isystem’ to ‘-I’.
-
OK, now it gets interesting:
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
-
Compilation for gcc 4.3 should be fixed now.
-
still have problem, 0328.
-
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.
-
0329 fixed the problem, thanks.
-
0329 fixed the problem, thanks.
Same here.
-
Thanks for your feedback, it's much appreciated.