aMule Forum

English => Compilation problems => Topic started by: xushi on February 16, 2008, 01:03:57 PM

Title: SVN20080215 + wxMac 2.8.7 make error on Tiger.
Post by: xushi on February 16, 2008, 01:03:57 PM
The last time I compiled was around November, and that was successful. This time, I get errors..

I compiled wxMac using the settings found in the wiki, with the universal prefix too.

I also compiled cryptopp into /usr/local/cryptopp

This is what I used for aMule's prefixes.

Code: [Select]
./configure --enable-amulecmd --enable-debug --enable-optimize --enable-amule-daemon --enable-nls --enable-webserver --disable-cas --disable-alcc --enable-amule-gui --with-wx-config=../wxMac-2.8.7/build/wx-config --disable-dependency-tracking CFLAGS="-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk" CXXFLAGS="-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk" --with-crypto-prefix=/usr/local/cryptopp
The result of ./configure
Code: [Select]
  Configure script has finished system check.

  Configured aMule SVN for 'i686-apple-darwin8.11.1'.

  aMule enabled options:

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

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

  **** aMule WebServer ****
  Should aMule WebServer be built?                           yes

  **** 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.7 (mac,debug,static)
                                       crypto++              5.5.2 (installed)
                                       libpng                Not detected
                                       libgd                 Not detected
                                       zlib                  1.2.3


 WARNING! libpng >= 1.2.0 not found.
 amuleweb will be compiled but file download progress bar images will NOT be generated.


And the error in make. I won't paste most of it because it exceeds the 20k char length in the post. I'll attach the output instead if anyone is interested.

Code: [Select]
$ makemake  all-recursiveMaking all in m4
make[2]: Nothing to be done for `all'.
Making all in docs
Making all in man
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-am'.
Making all in src
Making all in libs
Making all in ec
make  all-recursive
Making all in cpp
gcc    ../../../../src/utils/mkFileSum.c -o mkFileSum
Generating ECVersion.h... created.
make  all-am
g++ -DHAVE_CONFIG_H -I. -I. -I../../../..    -isystem /Developer/sourcecode/wxMac-2.8.7/build/lib/wx/include/mac-unicode-debug-static-2.8 -isystem /Developer/sourcecode/wxMac-2.8.7/include -isystem /Developer/sourcecode/wxMac-2.8.7/contrib/include -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXDEBUG__ -D__WXMAC__ -I../../../../src -I../../../../src/libs -I../../../../src/include -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -isystem /usr/local/cryptopp/include -D__CRYPTO_INSTALLED__ -D__WEAK_CRYPTO__ -g -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -O2  -DUSE_WX_EXTENSIONS -c -o libec_a-ECTag.o `test -f 'ECTag.cpp' || echo './'`ECTag.cpp
/Developer/sourcecode/wxMac-2.8.7/include/wx/defs.h:603: error: template with C linkage
/Developer/sourcecode/wxMac-2.8.7/include/wx/string.h:1048: error: declaration of C function 'wxString operator+(const wxString&, wxChar)' conflicts with
/Developer/sourcecode/wxMac-2.8.7/include/wx/string.h:1046: error: previous declaration 'wxString operator+(const wxString&, const wxString&)' here
/Developer/sourcecode/wxMac-2.8.7/include/wx/string.h:1050: error: declaration of C function 'wxString operator+(wxChar, const wxString&)' conflicts with
/Developer/sourcecode/wxMac-2.8.7/include/wx/string.h:1048: error: previous declaration 'wxString operator+(const wxString&, wxChar)' here
/Developer/sourcecode/wxMac-2.8.7/include/wx/string.h: In function 'bool operator!=(wxChar, const wxString&)':
/Developer/sourcecode/wxMac-2.8.7/include/wx/string.h:1635: error: declaration of C function 'bool operator!=(wxChar, const wxString&)' conflicts with
/Developer/sourcecode/wxMac-2.8.7/include/wx/string.h:1604: error: previous declaration 'bool operator!=(const wxWCharBuffer&, const wxString&)' here
/Developer/sourcecode/wxMac-2.8.7/include/wx/string.h: In function 'bool operator!=(const wxString&, wxChar)':
/Developer/sourcecode/wxMac-2.8.7/include/wx/string.h:1636: error: declaration of C function 'bool operator!=(const wxString&, wxChar)' conflicts with
/Developer/sourcecode/wxMac-2.8.7/include/wx/string.h:1635: error: previous declaration 'bool operator!=(wxChar, const wxString&)' here
../../../../src/libs/common/MuleDebug.h: In constructor 'CMuleException::CMuleException(const wxString&, const wxString&)':
../../../../src/libs/common/MuleDebug.h:59: error: no match for 'operator+' in 'type + "\000\000\000:\000\000\000 \000\000\000"'
/Developer/sourcecode/wxMac-2.8.7/include/wx/string.h:1620: note: candidates are: wxString operator+(const wxWCharBuffer&, const wxString&)
lipo: can't figure out the architecture type of: /var/tmp//ccIAQvJg.out
make[7]: *** [libec_a-ECTag.o] Error 1
make[6]: *** [all] Error 2
make[5]: *** [all-recursive] Error 1
make[4]: *** [all] Error 2
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

This is on Tiger 10.4.11 on a Macbook Pro (i386)

Code: [Select]
  Model Name: MacBook Pro
  Model Identifier: MacBookPro3,1
  Processor Name: Intel Core 2 Duo
  Processor Speed: 2.4 GHz
  Number Of Processors: 1
  Total Number Of Cores: 2
  L2 Cache (per processor): 4 MB
  Memory: 2 GB
  Bus Speed: 800 MHz
  Boot ROM Version: MBP31.0070.B02
  SMC Version: 1.18f2
  Sudden Motion Sensor:
  State: Enabled

and GCC,

Code: [Select]
$ gcc -v
Using built-in specs.
Target: i686-apple-darwin8
Configured with: /var/tmp/gcc/gcc-5370~2/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=powerpc-apple-darwin8 --with-arch=nocona --with-tune=generic --program-prefix= --host=i686-apple-darwin8 --target=i686-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5370)

Let me know if you need anything else.