aMule Forum

English => Compilation problems => Topic started by: GrayFox.i0n on December 21, 2007, 09:11:47 AM

Title: Compile error with CVS 20071221
Post by: GrayFox.i0n on December 21, 2007, 09:11:47 AM
Hi again.

Configured with:

Code: [Select]
./configure \
                --prefix=/usr \
                --enable-amule-gui \
                --enable-alc \
                --enable-alcc \
                --enable-utf8-systray \
                --disable-debug \
                --enable-optimize \
                --enable-amulecmd \
                --enable-amule-daemon \
                --enable-cas \
                --enable-wxcas \
                --enable-webserver \
                --enable-ccache \
                --enable-remote \

In Ubuntu Server 7.10

When launching the make command i get this after some minutes compiling:

Code: [Select]
/usr/include/wx-2.8/wx/image.h:136: warning: dereferencing type-punned pointer will break strict-aliasing rules
make[3]: *** [libmuleappgui_a-ChatWnd.o] Error 1
make[3]: Leaving directory `/home/bigboss/amule-cvs/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/bigboss/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bigboss/amule-cvs'
make: *** [all] Error 2

Hope it helps ;)
Title: Re: Compile error with CVS 20071221
Post by: Stu Redman on December 21, 2007, 11:39:31 AM
No, since you didn't include the error message. The "type-punned pointer" warning has nothing to do with the error.  :)
Title: Re: Compile error with CVS 20071221
Post by: GrayFox.i0n on December 21, 2007, 11:53:04 AM
Code: [Select]
/usr/include/wx-2.8/wx/protocol/http.h: In member function âwxStringToStringHashMap_wxImplementation_HashTable::Node** wxStringToStringHashMap_wxImplementation_HashTable::GetNodePtr(const wxString&) constâ:
/usr/include/wx-2.8/wx/protocol/http.h:21:  warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/include/wx-2.8/wx/image.h: In member function âwxImageHistogramBase_wxImplementation_HashTable::Node** wxImageHistogramBase_wxImplementation_HashTable::GetNodePtr(const long unsigned int&) constâ:
/usr/include/wx-2.8/wx/image.h:136: warning: dereferencing type-punned pointer will break strict-aliasing rules
make[3]: *** [libmuleappgui_a-ChatWnd.o] Error 1
make[3]:  Leaving directory  `/home/xi0n/amule-cvs/src'
make[2]: *** [all-recursive] Error 1
make[2]:  Leaving directory  `/home/xi0n/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]:  Leaving directory  `/home/xi0n/amule-cvs'
make: *** [all] Error 2


¿Better now?
Title: Re: Compile error with CVS 20071221
Post by: Attila on December 21, 2007, 12:13:44 PM
Same error message (see below) for same cvs 20071221
Running Debian Lenny 2.6.22

Code: [Select]
Configure script has finished system check.

  Configured aMule CVS for 'i686-pc-linux-gnu'.

  aMule enabled options:

  **** aMule Core ****
  Prefix where aMule should be installed?                    /usr/local
  Should aMule be compiled with i18n support?                yes
  Should aMule be compiled in debug mode?                    yes
  Should aMule be compiled with profiling?                   no
  Should aMule be compiled with optimizations?               no
  Should aMule be compiled with UPnP support?                yes
  Should aMule be compiled with IP2country support?          yes
  Should aMule monolithic application be built?              yes
  Should aMule daemon version be built?                      no
  Should aMule remote gui be built? (EXPERIMENTAL)           no
  Crypto++ library/headers style?                            embedded

  **** aMule TextClient ****
  Should aMule Command Line Client be built?                 no

  **** aMule WebServer ****
  Should aMule WebServer be built?                           no

  **** aMule ED2K Links Handler ****
  Should aMule ED2K Links Handler be built?                  yes

  **** aMuleLinkCreator ****
  Should aMuleLinkCreator GUI version (alc) be built?        no
  Should aMuleLinkCreator for console (alcc) be built?       no

  **** aMule Statistics ****
  Should C aMule Statistics (CAS) be built?                  no
  Should aMule GUI Statistics (wxCas) be built?              no

  **** General Libraries and Tools ****
  Should ccache support be enabled?                          no
  Libraries aMule will use to build:
                                       wxWidgets             2.8.3 (gtk2,shared)
                                       crypto++              embedded
                                       zlib                  1.2.3.3
Configure seems normal but now to make
Code: [Select]
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/usr/local/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -D__WXGTK__ -pthread -I./libs -I./include -DENABLE_UPNP=1 -DUSE_EMBEDDED_CRYPTO -g -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0   -DUSE_WX_EXTENSIONS -MT libmuleappgui_a-ChatWnd.o -MD -MP -MF ".deps/libmuleappgui_a-ChatWnd.Tpo" -c -o libmuleappgui_a-ChatWnd.o `test -f 'ChatWnd.cpp' || echo './'`ChatWnd.cpp; \
        then mv -f ".deps/libmuleappgui_a-ChatWnd.Tpo" ".deps/libmuleappgui_a-ChatWnd.Po"; else rm -f ".deps/libmuleappgui_a-ChatWnd.Tpo"; exit 1; fi
extern/wxWidgets/listctrl.h:56: error: default argument for parameter of type 'const wxString&' has type 'const char []'
extern/wxWidgets/listctrl.h:68: error: default argument for parameter of type 'const wxString&' has type 'const char []'
extern/wxWidgets/listctrl.h:280: error: default argument for parameter of type 'const wxString&' has type 'const char []'
make[3]: *** [libmuleappgui_a-ChatWnd.o] Error 1
make[3]: Leaving directory `/tmp/amule-cvs/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/amule-cvs'
make: *** [all] Error 2

A newer version of wxwidgets perhaps?
Cheers,
Attila
Title: Re: Compile error with CVS 20071221
Post by: wuischke on December 21, 2007, 01:18:42 PM
Please use wx 2.8.7 and try it again.
Title: Re: Compile error with CVS 20071221
Post by: Vollstrecker on December 21, 2007, 01:24:31 PM
Same Error with 2.8.7 here.

http://vollstreckernet.dyndns.org/amule-cvs-testing-build.log
Title: Re: Compile error with CVS 20071221
Post by: GuntherDW on December 21, 2007, 01:53:36 PM
gentoo with wxGTK 2.8.7.1 here and i've got the same problem
Title: Re: Compile error with CVS 20071221
Post by: Festor on December 21, 2007, 02:14:54 PM
In Ubuntu 7.10:

Quote
make[4]: *** [libmuleappgui_a-ChatWnd.o] Error 1
make[4]: se sale del directorio `/home/festor/amule-20071221/src'
make[3]: *** [all-recursive] Error 1
make[3]: se sale del directorio `/home/festor/amule-20071221/src'
make[2]: *** [all-recursive] Error 1
make[2]: se sale del directorio `/home/festor/amule-20071221'
make[1]: *** [all] Error 2
make[1]: se sale del directorio `/home/festor/amule-20071221'
make: *** [build-stamp] Error 2
Title: Re: Compile error with CVS 20071221
Post by: wuischke on December 21, 2007, 03:29:15 PM
OK, thanks a lot for your reports! Consider today's tarball as broken again, I hope GonoszTopi has time to have a look at the issue.
Title: Re: Compile error with CVS 20071221
Post by: GrayFox.i0n on December 21, 2007, 03:39:29 PM
No Problem!
Waiting for next working release ;)

Thanks
Title: Re: Compile error with CVS 20071221
Post by: Attila on December 22, 2007, 08:57:25 AM
I guess GonoszTopi did have time to look at this issue. It's fixed in 20071222!  ;D Once again the Amule devs prove they are second to none. You rule! Thanks.
Attila
Title: Re: Compile error with CVS 20071221
Post by: IhmSelbst on December 22, 2007, 11:10:48 AM
Moin,
also appeared on openSUSE 10.3 (out of the box) since wednesday, but indeed seems to be fixed in today's cvs.
Also thanks. :)


cu
Title: Re: Compile error with CVS 20071221
Post by: Vollstrecker on December 22, 2007, 01:19:26 PM
I guess not. But it's a new error.

http://vollstreckernet.dyndns.org/amule-cvs-testing-build.log