aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: aMule won't compile on FC9 because wchar.h missing  (Read 5737 times)

lost99

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
aMule won't compile on FC9 because wchar.h missing
« on: February 03, 2008, 11:13:54 PM »

1.
 I searched this forum and no answer.

2.
 ./configure --prefix=/usr --enable-ccache --enable-amule-daemon --enable-amulecmd --enable-amule-gui --enable-webserver --enable-cas --enable-wxcas --enable-ed2k --enable-alc --enable-alcc --enable-geoip
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking whether make sets $(MAKE)... (cached) yes
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for bison... bison -y
checking for ranlib... (cached) ranlib
checking for strip... strip
checking for ar... ar
checking for ld... ld
checking for zlib >= 1.1.4... yes (version 1.2.3)
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for gdlib-config... /usr/bin/gdlib-config
checking for gdlib version >= 2.0.0... yes (version 2.0.34)
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes
checking for libpng-config... /usr/bin/libpng-config
checking for libpng version >= 1.2.0... yes (version 1.2.22)
checking for gd.h... (cached) yes
checking for File::Copy... ok
checking whether we need the GUI... yes
checking GeoIP.h usability... yes
checking GeoIP.h presence... yes
checking for GeoIP.h... yes
checking for GeoIP_open in -lGeoIP... yes
checking for the --with-toolkit option... will be automatically detected
checking for the --with-wxshared option... will be automatically detected
checking for the --with-wxdebug option... will be automatically detected
checking for the --with-wxversion option... will be automatically detected
checking for wx-config... /usr/bin/wx-config
checking for wxWidgets version >= 2.8.0 (--unicode=yes)... yes (version 2.8.4)
checking for wxWidgets static library... no
checking if wxWidgets was built in DEBUG mode... no
checking if wxWidgets was built in STATIC mode... no
checking which wxWidgets toolkit was selected... gtk2
checking that wxWidgets has support for large files... yes
checking for crypto++ version >= 5.1... yes (version 5.5.2, installed)
configure: Crypto++ version number is 5005002
checking for bfd headers... yes
checking for autopoint... yes (0.17)
checking for extended flex capabilities... yes
checking for X... libraries , headers
checking for working alloca.h... yes
checking for alloca... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking argz.h usability... yes
checking argz.h presence... yes
checking for argz.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for inttypes.h... (cached) yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking mntent.h usability... yes
checking mntent.h presence... yes
checking for mntent.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking for stdint.h... (cached) yes
checking stdio_ext.h usability... yes
checking stdio_ext.h presence... yes
checking for stdio_ext.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/mount.h usability... yes
checking sys/mount.h presence... yes
checking for sys/mount.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking for sys/types.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for mode_t... yes
checking for off_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for uid_t in sys/types.h... yes
checking for working volatile... yes
checking for ptrdiff_t... yes
checking whether closedir returns void... no
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for library containing strerror... none required
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking whether we are using the GNU C Library 2.1 or newer... yes
checking whether integer division by zero raises SIGFPE... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unsigned long long... yes
checking for inttypes.h... yes
checking whether the inttypes.h PRIxNN macros are broken... no
checking for ld used by GCC... ld
checking if the linker (ld) is GNU ld... yes
checking for shared library run path origin... done
checking for argz.h... (cached) yes
checking for limits.h... (cached) yes
checking for locale.h... (cached) yes
checking for nl_types.h... (cached) yes
checking for malloc.h... (cached) yes
checking for stddef.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for feof_unlocked... yes
checking for fgets_unlocked... yes
checking for getc_unlocked... yes
checking for getcwd... yes
checking for getegid... yes
checking for geteuid... yes
checking for getgid... yes
checking for getuid... yes
checking for mempcpy... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for stpcpy... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strtoul... yes
checking for tsearch... yes
checking for __argz_count... yes
checking for __argz_stringify... yes
checking for __argz_next... yes
checking for iconv... yes
checking for iconv declaration...
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
checking for bison... bison
checking version of bison... 2.3, ok
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for GNU gettext in libc... yes
checking for getmntent in -lsun... no
checking for getmntent in -lseq... no
checking for getmntent in -lgen... no
checking for getmntent... yes
checking whether gcc needs -traditional... no
checking for pid_t... yes
checking for unistd.h... (cached) yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking whether lstat accepts an empty string... no
checking whether lstat dereferences a symlink specified with a trailing slash... (cached) yes
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... (cached) yes
checking for sys/select.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking for function prototypes... yes
checking whether setvbuf arguments are reversed... no
checking return type of signal handlers... void
checking whether stat accepts an empty string... no
checking for strftime... yes
checking for working strtod... yes
checking for vprintf... yes
checking for _doprnt... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for __argz_count... (cached) yes
checking for __argz_next... (cached) yes
checking for __argz_stringify... (cached) yes
checking for endpwent... yes
checking for floor... no
checking for ftruncate... yes
checking for getcwd... (cached) yes
checking for gethostbyaddr... yes
checking for gethostbyname... yes
checking for gethostname... yes
checking for getmntent... (cached) yes
checking for getmntinfo... no
checking for getpass... yes
checking for gettimeofday... yes
checking for inet_ntoa... yes
checking for localeconv... yes
checking for memmove... yes
checking for mempcpy... (cached) yes
checking for memset... yes
checking for munmap... (cached) yes
checking for nl_langinfo... yes
checking for pow... no
checking for select... yes
checking for setlocale... (cached) yes
checking for socket... yes
checking for sqrt... no
checking for stpcpy... (cached) yes
checking for strcasecmp... (cached) yes
checking for strchr... yes
checking for strcspn... yes
checking for strdup... (cached) yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strstr... yes
checking for strtoul... (cached) yes
checking for mkdir... yes
checking for getrlimit... yes
checking for setrlimit... yes
checking if the applications should be statically linked... no
checking for docdir... ${prefix}/share/doc/aMule-SVN
checking for SVNDATE... Tue Jan 15 07:01:56 CET 2008
checking if this is a FreeBSD 4 or earlier system... no
Generating po/LINGUAS... Done
checking denoising level... 0
checking for a readline compatible library... -lreadline
checking readline.h usability... no
checking readline.h presence... no
checking for readline.h... no
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking whether readline supports history... yes
checking history.h usability... no
checking history.h presence... no
checking for history.h... no
checking readline/history.h usability... yes
checking readline/history.h presence... yes
checking for readline/history.h... yes
checking whether ccache support should be added... yes
checking for ccache presence... yes

  Libraries aMule will use to build:
                                       wxWidgets             2.8.4 (gtk2,shared)
                                       crypto++              5.5.2 (installed)
                                       libpng                1.2.22
                                       libgd                 2.0.34
                                       zlib                  1.2.3




3.
  .......MT libec_a-ECTag.o -MD -MP -MF ".deps/libec_a-ECTag.Tpo" -c -o libec_a-ECTag.o `test -f 'ECTag.cpp' || echo './'`ECTag.cpp; \
   then mv -f ".deps/libec_a-ECTag.Tpo" ".deps/libec_a-ECTag.Po"; else rm -f ".deps/libec_a-ECTag.Tpo"; exit 1; fi
In file included from /usr/lib/gcc/i386-redhat-linux/4.3.0/../../../../include/c++/4.3.0/bits/postypes.h:47,
                 from /usr/lib/gcc/i386-redhat-linux/4.3.0/../../../../include/c++/4.3.0/iosfwd:47,
                 from /usr/lib/gcc/i386-redhat-linux/4.3.0/../../../../include/c++/4.3.0/ios:44,
                 from /usr/lib/gcc/i386-redhat-linux/4.3.0/../../../../include/c++/4.3.0/ostream:45,
                 from /usr/lib/gcc/i386-redhat-linux/4.3.0/../../../../include/c++/4.3.0/iostream:45,
                 from ECTag.h:28,
                 from ECTag.cpp:25:
/usr/lib/gcc/i386-redhat-linux/4.3.0/../../../../include/c++/4.3.0/cwchar:52:24: error: wchar.h: No such file or directory
In file included from /usr/lib/gcc/i386-redhat-linux/4.3.0/../../../../include/c++/4.3.0/debug/debug.h:81,
                 from /usr/lib/gcc/i386-redhat-linux/4.3.0/../../../../include/c++/4.3.0/bits/stl_algobase.h:76,
                 from /usr/lib/gcc/i386-redhat-linux/4.3.0/../../../../include/c++/4.3.0/bits/char_traits.h:46,
                 from /usr/lib/gcc/i386-redhat-linux/4.3.0/../../../../include/c++/4.3.0/ios:46,
  ...........................................................................

This is the earliest occurrence of a missing file so I stopped compile and posted this piece only.


4.  

 ls -l /usr/bin/wx*
lrwxrwxrwx 1 root root      41 2007-11-09 19:31 /usr/bin/wx-2.6-config -> ../lib/wx/config/gtk2-unicode-release-2.6
-rwxr-xr-x 1 root root    7028 2007-11-20 03:49 /usr/bin/wx2_conv
-rwxr-xr-x 1 root root 1910800 2008-01-15 08:22 /usr/bin/wxcas
lrwxrwxrwx 1 root root      43 2007-10-04 21:17 /usr/bin/wx-config -> /usr/lib/wx/config/gtk2-unicode-release-2.8
-rwxr-xr-x 1 root root 1308544 2007-08-24 12:52 /usr/bin/wxdfast
-rwxr-xr-x 1 root root      59 2007-11-24 10:38 /usr/bin/wxglade
-rwxr-xr-x 1 root root 1431884 2007-12-11 09:59 /usr/bin/wxmaxima
-rwxr-xr-x 1 root root    1112 2007-12-01 08:07 /usr/bin/wx_overload.pl
lrwxrwxrwx 1 root root       8 2007-10-04 21:17 /usr/bin/wxrc -> wxrc-2.8
-rwxr-xr-x 1 root root   89516 2007-11-08 07:34 /usr/bin/wxrc-2.6
-rwxr-xr-x 1 root root   86112 2007-08-28 07:33 /usr/bin/wxrc-2.8
lrwxrwxrwx 1 root root       3 2007-10-05 11:27 /usr/bin/wxvlc -> vlc
-rwxr-xr-x 1 root root    1079 2007-12-01 08:07 /usr/bin/wx_xspp.pl

ls -l /usr/local/bin/wx*
ls: cannot access /usr/local/bin/wx*: No such file or directory

 rpm -qa | grep wx
wxsvg-1.0-0.5.b7_3.fc8.i386
wxsvg-devel-1.0-0.5.b7_3.fc8.i386
wxGlade-0.6.1-1.fc9.noarch
wxMaxima-0.7.4-2.fc9.i386
compat-wxGTK26-devel-2.6.4-1.i386
wxPython-devel-2.8.4.0-2.fc8.i386
perl-Alien-wxWidgets-0.32-1.fc9.i386
wxGTK-gl-2.8.4-6.fc8.i386
compat-wxGTK26-2.6.4-1.i386
wxdfast-0.6.0-3.fc8.i386
wxGTK-devel-2.8.4-6.fc8.i386
wxPython-2.8.4.0-2.fc8.i386
wxGTK-2.8.4-6.fc8.i386


So it looks like a Fedora development update of gcc-++ or compat-gcc-34-c
++ changed  something.  I haven't extensively tested the compiler,  but it does compile.

rpm -qa | grep gcc
gcc-c++-4.3.0-0.7.i386
gcc-gfortran-4.3.0-0.7.i386
compat-libgcc-296-2.96-139.i386
gcc-4.3.0-0.7.i386
compat-gcc-34-c++-3.4.6-9.i386
gcc-java-4.3.0-0.7.i386
compat-gcc-34-g77-3.4.6-9.i386
libgcc-4.3.0-0.7.i386
compat-gcc-34-3.4.6-9.i386

This was an attempt to compile aMule-CVS-20080115.tar.bz2 which I am using now since today's cvs wouldn't compile.

Logged

Festor

  • Hero Member
  • *****
  • Karma: 79
  • Offline Offline
  • Posts: 935
  • Offline -> Studying...
Re: aMule won't compile on FC9 because wchar.h missing
« Reply #1 on: February 04, 2008, 03:08:05 PM »

Fedora 9 has not yet been launched as a stable release!  ???

The latest stable version of Fedora is Fedora 8

lost99

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: aMule won't compile on FC9 because wchar.h missing
« Reply #2 on: February 04, 2008, 05:49:22 PM »

I have never used a stable release of anything for more than a  decade.  I will just install a bunch of compilers until I get back where I started.

uname -a
Linux xxxxxxxxx.xxx  2.6.24-9.fc9 #1 SMP Tue Jan 29 18:08:15 EST 2008 i686 i686 i386 GNU/Linux
Logged

Festor

  • Hero Member
  • *****
  • Karma: 79
  • Offline Offline
  • Posts: 935
  • Offline -> Studying...
Re: aMule won't compile on FC9 because wchar.h missing
« Reply #3 on: February 04, 2008, 09:41:37 PM »

I have never used a stable release of anything for more than a  decade.

That is the same that wish have problems...  :-\
« Last Edit: February 04, 2008, 09:44:25 PM by Festor »
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: aMule won't compile on FC9 because wchar.h missing
« Reply #4 on: February 05, 2008, 08:31:52 PM »

Guess FC9 is broken.
Logged

lfroen

  • Guest
Re: aMule won't compile on FC9 because wchar.h missing
« Reply #5 on: February 08, 2008, 03:34:26 PM »

Quote
So it looks like a Fedora development update of gcc-++ or compat-gcc-34-c
++ changed  something.  I haven't extensively tested the compiler,  but it does compile.

rpm -qa | grep gcc
gcc-c++-4.3.0-0.7.i386
gcc-gfortran-4.3.0-0.7.i386
compat-libgcc-296-2.96-139.i386
gcc-4.3.0-0.7.i386
compat-gcc-34-c++-3.4.6-9.i386
gcc-java-4.3.0-0.7.i386
compat-gcc-34-g77-3.4.6-9.i386
libgcc-4.3.0-0.7.i386
compat-gcc-34-3.4.6-9.i386

rpm -q -f /usr/include/wchar.h
glibc-headers-2.6-4

Guess what - where's your glibc-headers ?
Logged

lost99

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: aMule won't compile on FC9 because wchar.h missing
« Reply #6 on: February 23, 2008, 11:46:50 AM »

I used to spend most of my time fixing other peoples code if I could so I could stay up to date until I realized what was going on.  By the time gcc-4.3 is 100% the next version will be <100% complete.  I just got rid of NVIDIA's driver today because he wants to wait until 2.6.25 is final.  For emule every build I have to lay gcc-4.1 ontop of gcc-4.3,  then erase it all and reinstall gcc-4.3.  Crazy when you need ldconfig to find libstdc++ afterwards.
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: aMule won't compile on FC9 because wchar.h missing
« Reply #7 on: February 23, 2008, 12:51:19 PM »

GCC 4.3 has not even been officially released, so support is not exactly a high priority, moreover, it seems to be a problem with GCC, rather than with aMule, so I'm not sure what we could even do ...
Logged

lost99

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: aMule won't compile on FC9 because wchar.h missing
« Reply #8 on: March 03, 2008, 08:12:52 PM »

rpm -q -f /usr/include/wchar.h
glibc-headers-2.7.90-7.i386


Google "GCC 4.3 Release Series
Porting to the New Tools"

#include_next must be changed in all the following(ie., add /usr/include ex. change #include_next <wchar.h> to #include_next </usr/include/wchar.h>):

/usr/include/c++/4.3.0/cstdlib
/usr/include/c++/4.3.0/cwctype
/usr/include/c++/4.3.0/cctype
/usr/include/c++/4.3.0/clocale
/usr/include/c++/4.3.0/cstdio
/usr/include/c++/4.3.0/cwchar
/usr/include/c++/4.3.0/csignal
/usr/include/c++/4.3.0/cmath
/usr/include/c++/4.3.0/cerrno

std::auto_ptr without including <memory> so add <memory> to UPnP.h

UPnP.cpp  change line 54 and 55 transform to std::transform.
« Last Edit: March 07, 2008, 06:16:26 PM by lost99 »
Logged