I am unable to get amule-1.2.4 to compile on an amd64 box. Reproducible: Always Steps to Reproduce: 1. move ebuild to PORTDIR_OVERLAY dir 2. edit ebuild file and change "~amd64" to "amd64" 3. emerge amule Actual Results: !!! ERROR: net-p2p/amule-1.2.4 failed. !!! Function src_compile, Line 29, Exitcode 2 !!! (no error message) Expected Results: compile ok bash-2.05b# emerge amule Calculating dependencies ...done! >>> emerge (1 of 1) net-p2p/amule-1.2.4 to / >>> md5 src_uri ;-) aMule-1.2.4.tar.bz2 >>> Unpacking source... >>> Unpacking aMule-1.2.4.tar.bz2 to /var/tmp/portage/amule-1.2.4/work >>> Source unpacked. Remember to add `AC_PROG_LIBTOOL' to `configure.in'. You should update your `aclocal.m4' by running aclocal. configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for x86_64-pc-linux-gnu-strip... no checking for strip... strip checking whether to enable maintainer-specific portions of Makefiles... no checking for x86_64-pc-linux-gnu-g++... g++ checking for C++ compiler default output... 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 for x86_64-pc-linux-gnu-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 msgfmt... /usr/bin/msgfmt checking for gmsgfmt... /usr/bin/msgfmt checking for xgettext... /usr/bin/xgettext checking for msgmerge... /usr/bin/msgmerge checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-pc-linux-gnu checking for x86_64-pc-linux-gnu-ranlib... no checking for ranlib... ranlib checking for strerror in -lcposix... no checking for egrep... grep -E checking for ANSI C header files... yes checking for an ANSI C-conforming const... yes checking for inline... inline 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 off_t... yes checking for size_t... yes checking for working alloca.h... yes checking for alloca... yes 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... /usr/x86_64-pc-linux-gnu/bin/ld checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes checking for shared library run path origin... done checking argz.h usability... yes checking argz.h presence... yes checking for argz.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 nl_types.h usability... yes checking nl_types.h presence... yes checking for nl_types.h... yes checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for unistd.h... (cached) yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... 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... 1.875, ok checking whether NLS is requested... yes checking whether included gettext is requested... no checking for GNU gettext in libc... yes checking for wx-config... /usr/bin/wx-config checking for wxWindows version >= 2.4.0... yes (version 2.4.2) checking for wxbase-2.4-config... no configure: WARNING: libwx_base >= 2.4.0 is not found. This is not needed for compiling aMule, but it is for compiling amulecmd. If you have no wxbase, amulecmd will be linked against wxgtk, thus removing all the non-graphical client meaning at all. Please check that wxbase-2.4-config is in path, the directory where wxWindows base libraries are installed (returned by 'wxbase-2.4-config --libs' command) is in LD_LIBRARY_PATH or equivalent variable and wxWindows base is version 2.4.0 or above. Or this might also be that your wxbase-config has other name. Please try again with --with-wxbase-config=/usr/bin/wxbase-config (replace /usr/bin/wxbase-config with a valid path to your wxbase-config) * Note: Most probably, either one of the above aren't correct, you don't have wxbase installed, or are missing wxbase-devel (or equivalent) package. checking for curl >= 7.9.7... yes (version 7.10.5) checking if wxWindows was linked with GTK2... yes checking for pkg-config... /usr/bin/pkg-config checking for GTK+ - version >= 2.0.3... yes (version 2.2.4) checking if wxWindows version >=2.5.0 ... no checking zlib.h usability... yes checking zlib.h presence... yes checking for zlib.h... yes checking whether SysTray should be compiled... yes checking whether SysTray should be compiled in safe mode... no checking whether pure GTK code should be compiled... yes checking whether progress bar drawing should be disabled... no checking whether progress amulecmd should be build... yes checking for ANSI C header files... (cached) 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 locale.h... (cached) 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 for stdlib.h... (cached) yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.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 unistd.h... (cached) yes checking sys/resource.h usability... yes checking sys/resource.h presence... yes checking for sys/resource.h... yes checking for an ANSI C-conforming const... (cached) yes checking for inline... (cached) inline checking for off_t... (cached) yes checking for size_t... (cached) 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 stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking for working memcmp... yes checking for sys/time.h... (cached) yes checking for unistd.h... (cached) yes checking for alarm... yes checking for working mktime... yes checking return type of signal handlers... void checking whether lstat dereferences a symlink specified with a trailing slash... yes checking whether stat accepts an empty string... no checking for strftime... yes checking for floor... no checking for ftruncate... yes checking for gettimeofday... yes checking for inet_ntoa... yes checking for memchr... yes checking for memmove... yes checking for memset... yes checking for mkdir... yes checking for putenv... (cached) yes checking for select... yes checking for setlocale... (cached) yes checking for sqrt... no checking for strcasecmp... (cached) yes checking for strchr... yes checking for strdup... (cached) yes checking for strrchr... yes checking for strstr... yes checking for strtoul... (cached) yes checking for getrlimit... yes checking for setrlimit... yes configure: creating ./config.status config.status: creating src/timestamp-sys.h config.status: creating sys.h config.status: creating src/Makefile config.status: creating intl/Makefile config.status: creating po/Makefile.in config.status: creating m4/Makefile config.status: creating Makefile config.status: creating Compilation.flags config.status: creating config.h config.status: executing depfiles commands config.status: executing default-1 commands config.status: creating po/POTFILES config.status: creating po/Makefile Configure script has finished system check. Configured aMule 1.2.4 for `x86_64-pc-linux-gnu'. Should aMule be compiled in debug mode? no Should aMule be compiled with release grp code? no Should aMule be compiled without debug reporting? yes Should aMule be compiled with profiling? no Should aMule be compiled with optimizations? no Should aMule be compiled with systray? yes Should aMule be compiled with safe systray? no Should aMule be compiled with pure GTK code? yes Should aMule be compiled without bar drawing? no Should aMule be linked against patched gsocket? yes Should amulecmd be built? yes Should amulecmd (TextClient) be linked against wxbase? no Which libraries should aMule use? wxWindows 2.4.2 GTK Not detected make all-recursive make[1]: Entering directory `/var/tmp/portage/amule-1.2.4/work/aMule-1.2.4' Making all in . make[2]: Entering directory `/var/tmp/portage/amule-1.2.4/work/aMule-1.2.4' make[2]: Leaving directory `/var/tmp/portage/amule-1.2.4/work/aMule-1.2.4' Making all in m4 make[2]: Entering directory `/var/tmp/portage/amule-1.2.4/work/aMule-1.2.4/m4' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/var/tmp/portage/amule-1.2.4/work/aMule-1.2.4/m4' Making all in intl make[2]: Entering directory `/var/tmp/portage/amule-1.2.4/work/aMule-1.2.4/intl'make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/var/tmp/portage/amule-1.2.4/work/aMule-1.2.4/intl' Making all in po make[2]: Entering directory `/var/tmp/portage/amule-1.2.4/work/aMule-1.2.4/po' /usr/bin/msgmerge --update fr.po amule.pot ...................................................................................... done. rm -f fr.gmo && /usr/bin/msgfmt -c --statistics -o fr.gmo fr.po 816 translated messages, 9 fuzzy translations, 33 untranslated messages. rm -f it.gmo && /usr/bin/msgfmt -c --statistics -o it.gmo it.po 717 translated messages, 2 fuzzy translations, 139 untranslated messages. /usr/bin/msgmerge --update ko.po amule.pot ...................................................................................... done. rm -f ko.gmo && /usr/bin/msgfmt -c --statistics -o ko.gmo ko.po 831 translated messages, 21 fuzzy translations, 6 untranslated messages. /usr/bin/msgmerge --update tr.po amule.pot ...................................................................................... done. rm -f tr.gmo && /usr/bin/msgfmt -c --statistics -o tr.gmo tr.po 198 translated messages, 194 fuzzy translations, 466 untranslated messages. /usr/bin/msgmerge --update de.po amule.pot ...................................................................................... done. rm -f de.gmo && /usr/bin/msgfmt -c --statistics -o de.gmo de.po 858 translated messages. rm -f es.gmo && /usr/bin/msgfmt -c --statistics -o es.gmo es.po 838 translated messages, 20 fuzzy translations. /usr/bin/msgmerge --update es_MX.po amule.pot ...................................................................................... done. rm -f es_MX.gmo && /usr/bin/msgfmt -c --statistics -o es_MX.gmo es_MX.po 840 translated messages, 10 fuzzy translations, 8 untranslated messages. /usr/bin/msgmerge --update pl.po amule.pot ...................................................................................... done. rm -f pl.gmo && /usr/bin/msgfmt -c --statistics -o pl.gmo pl.po 838 translated messages, 12 fuzzy translations, 8 untranslated messages. rm -f ee.gmo && /usr/bin/msgfmt -c --statistics -o ee.gmo ee.po 840 translated messages, 13 fuzzy translations, 5 untranslated messages. make[2]: Leaving directory `/var/tmp/portage/amule-1.2.4/work/aMule-1.2.4/po' Making all in src make[2]: Entering directory `/var/tmp/portage/amule-1.2.4/work/aMule-1.2.4/src' if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/wx/include/gtk2u-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -g -MT amulecmd-TextClient.o -MD -MP -MF ".deps/amulecmd-TextClient.Tpo" \ -c -o amulecmd-TextClient.o `test -f 'TextClient.cpp' || echo './'`TextClient.cpp; \ then mv ".deps/amulecmd-TextClient.Tpo" ".deps/amulecmd-TextClient.Po"; \ else rm -f ".deps/amulecmd-TextClient.Tpo"; exit 1; \ fi In file included from TextClient.cpp:27: TextClient.h:44: error: cannot convert `const char*' to `const wxChar*' in initialization TextClient.h:44: error: cannot convert `const char*' to `const wxChar*' in initialization TextClient.h:44: error: cannot convert `const char*' to `const wxChar*' in initialization TextClient.cpp: In function `int ProcessCommand(int)': TextClient.cpp:188: error: conversion from `const char[6]' to `const wxString' is ambiguous /usr/include/wx/string.h:306: error: candidates are: wxString::wxString(wchar_t, long unsigned int) <near match> /usr/include/wx/string.h:284: error: wxString::wxString(int) <near match> TextClient.cpp:188: error: cannot convert `wxChar*' to `char*' for argument `2' to `void Process_Answer(int, char*)' TextClient.cpp:191: error: conversion from `const char[9]' to `const wxString' is ambiguous /usr/include/wx/string.h:306: error: candidates are: wxString::wxString(wchar_t, long unsigned int) <near match> /usr/include/wx/string.h:284: error: wxString::wxString(int) <near match> TextClient.cpp:191: error: cannot convert `wxChar*' to `char*' for argument `2' to `void Process_Answer(int, char*)' TextClient.cpp:194: error: conversion from `const char[7]' to `const wxString' is ambiguous /usr/include/wx/string.h:306: error: candidates are: wxString::wxString(wchar_t, long unsigned int) <near match> /usr/include/wx/string.h:284: error: wxString::wxString(int) <near match> TextClient.cpp:194: error: cannot convert `wxChar*' to `char*' for argument `2' to `void Process_Answer(int, char*)' TextClient.cpp:197: error: conversion from `const char[8]' to `const wxString' is ambiguous /usr/include/wx/string.h:306: error: candidates are: wxString::wxString(wchar_t, long unsigned int) <near match> /usr/include/wx/string.h:284: error: wxString::wxString(int) <near match> TextClient.cpp:197: error: cannot convert `wxChar*' to `char*' for argument `2' to `void Process_Answer(int, char*)' TextClient.cpp:202: error: conversion from `char[256]' to `const wxString' is ambiguous /usr/include/wx/string.h:306: error: candidates are: wxString::wxString(wchar_t, long unsigned int) <near match> /usr/include/wx/string.h:284: error: wxString::wxString(int) <near match> TextClient.cpp:202: error: cannot convert `wxChar*' to `char*' for argument `2' to `void Process_Answer(int, char*)' TextClient.cpp:208: error: conversion from `char[256]' to `const wxString' is ambiguous /usr/include/wx/string.h:306: error: candidates are: wxString::wxString(wchar_t, long unsigned int) <near match> /usr/include/wx/string.h:284: error: wxString::wxString(int) <near match> TextClient.cpp:208: error: cannot convert `wxChar*' to `char*' for argument `2' to `void Process_Answer(int, char*)' TextClient.cpp:213: error: conversion from `const char[9]' to `const wxString' is ambiguous /usr/include/wx/string.h:306: error: candidates are: wxString::wxString(wchar_t, long unsigned int) <near match> /usr/include/wx/string.h:284: error: wxString::wxString(int) <near match> TextClient.cpp:213: error: cannot convert `wxChar*' to `char*' for argument `2' to `void Process_Answer(int, char*)' TextClient.cpp:215: error: conversion from `const char[9]' to `const wxString' is ambiguous /usr/include/wx/string.h:306: error: candidates are: wxString::wxString(wchar_t, long unsigned int) <near match> /usr/include/wx/string.h:284: error: wxString::wxString(int) <near match> TextClient.cpp:215: error: cannot convert `wxChar*' to `char*' for argument `2' to `void Process_Answer(int, char*)' TextClient.cpp: In member function `virtual bool CamulecmdApp::OnCmdLineParsed(wxCmdLineParser&)': TextClient.cpp:259: error: ambiguous overload for 'operator=' in 'TempStr = "rh"' /usr/include/wx/string.h:278: error: candidates are: wxString& wxString::operator=(int) <near match> /usr/include/wx/string.h:519: error: wxString& wxString::operator=(const wxString&) <near match> /usr/include/wx/string.h:521: error: wxString& wxString::operator=(wchar_t) <near match> /usr/include/wx/string.h:527: error: wxString& wxString::operator=(const wxWCharBuffer&) <near match> TextClient.cpp:261: error: ambiguous overload for 'operator=' in ' this->CamulecmdApp::hostName = "localhost"' /usr/include/wx/string.h:278: error: candidates are: wxString& wxString::operator=(int) <near match> /usr/include/wx/string.h:519: error: wxString& wxString::operator=(const wxString&) <near match> /usr/include/wx/string.h:521: error: wxString& wxString::operator=(wchar_t) <near match> /usr/include/wx/string.h:527: error: wxString& wxString::operator=(const wxWCharBuffer&) <near match> TextClient.cpp:265: error: ambiguous overload for 'operator=' in 'TempStr = "p" ' /usr/include/wx/string.h:278: error: candidates are: wxString& wxString::operator=(int) <near match> /usr/include/wx/string.h:519: error: wxString& wxString::operator=(const wxString&) <near match> /usr/include/wx/string.h:521: error: wxString& wxString::operator=(wchar_t) <near match> /usr/include/wx/string.h:527: error: wxString& wxString::operator=(const wxWCharBuffer&) <near match> TextClient.cpp:267: error: call of overloaded `wxString(const char[17])' is ambiguous /usr/include/wx/string.h:323: error: candidates are: wxString::wxString(const wxWCharBuffer&) <near match> /usr/include/wx/string.h:306: error: wxString::wxString(wchar_t, long unsigned int) <near match> /usr/include/wx/string.h:291: error: wxString::wxString(const wxString&) <near match> /usr/include/wx/string.h:284: error: wxString::wxString(int) <near match> TextClient.cpp:269: error: no matching function for call to `wxString::Format( const char[4], long int&)' /usr/include/wx/string.h:738: error: candidates are: static wxString wxString::Format(const wxChar*, ...) TextClient.cpp: In member function `virtual int CamulecmdApp::OnRun()': TextClient.cpp:308: error: `Lt_passwd' undeclared (first use this function) TextClient.cpp:308: error: (Each undeclared identifier is reported only once for each function it appears in.) TextClient.cpp:309: error: call of overloaded `wxString(const char[1])' is ambiguous /usr/include/wx/string.h:323: error: candidates are: wxString::wxString(const wxWCharBuffer&) <near match> /usr/include/wx/string.h:306: error: wxString::wxString(wchar_t, long unsigned int) <near match> /usr/include/wx/string.h:291: error: wxString::wxString(const wxString&) <near match> /usr/include/wx/string.h:284: error: wxString::wxString(int) <near match> TextClient.cpp:320: error: no matching function for call to `wxString::Format( const char[16], const wxChar*)' /usr/include/wx/string.h:738: error: candidates are: static wxString wxString::Format(const wxChar*, ...) make[2]: *** [amulecmd-TextClient.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/amule-1.2.4/work/aMule-1.2.4/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/amule-1.2.4/work/aMule-1.2.4' make: *** [all] Error 2 !!! ERROR: net-p2p/amule-1.2.4 failed. !!! Function src_compile, Line 29, Exitcode 2 !!! (no error message) bash-2.05b# bash-2.05b# bash-2.05b# emerge info Portage 2.0.49-r21 (default-amd64-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.1-gentoo) ================================================================= System uname: 2.6.1-gentoo x86_64 4 Gentoo Base System version 1.4.3.12 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-O3 -funroll-all-loops" CHOST="x86_64-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://ibiblio.org/pub/Linux/distributions/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/opt/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X Xaw3d aalib acpi acpi4linux alsa amd64 antlr apache1 apache2 apm arts async autofs avi berkdb bonobo bsh cdr crypt cscope curl dga doc dv dvd dvdr encode esd ethereal evo faad fam fastcgi fbcon ffmpeg flac flash foomaticdb freetds freetype gatos gb gd gdbm ggi gif glut gnome gnomedb gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imap imlib innodb ipv6 javamail javascript jdepend jikes joystick jpeg junit kde ldap libg++ libwww log4j mad mbox mcal md5sum mikmod miknod milter mmx motif mozaccess mozcalendar mozilla mozinterfaceinfo moznoxft mozp3p mozsvg mozxmlterm mpeg mpeg4 mpi multilib mysql nas ncurses net netcdf nls nptl nvidia oci8 odbc oggvorbis opengl openssh opie optional-tasks oss pam pda pdflib perl pioutils png ppds pwdb python qt quicktime readline ruby samba sasl scanner sdk sdl slang spell sse ssl svga tcltk tcpd tetex threads tiff transcode truetype unicode usb v4l videos vim-with-x wmf wxwindows xalan xerces xface xinerama xml xml2 xmms xosd xv zeo zlib video_cards_nvidia" bash-2.05b#
what if you do `env ACCEPT_KEYWORDS=~amd64 emerge amule -u`
i had exactly the same error... try this... re emerge wxGTK with this: USE="- gtk2 -unicode" emerge wxGTK and emerge amule... 1.2.5 now in portage... and it works for me :)
I have the same behavior on an x86. I've thought that it could be because of the wxGTK 2.4.2 (I have the same version): checking for wxWindows version >= 2.4.0... yes (version 2.4.2)
Has this been resolved in newer versions? Like 1.2.5 or 1.2.6?
I was able to build 1.2.5 using the following procedure under an amd64. USE="-unicode" emerge wxGTK ACCEPT_KEYWORDS="~amd64" emerge amule The program works fine; however, it will immediately crash for me if I press the "connect" button. If I right-click and select a specific server to connect to, it works fine. Just FYI... This bug can be closed.