aMule Forum
English => Compilation problems => Topic started by: gtoso on July 06, 2008, 10:44:16 PM
-
Hi,
it's my first compilation after upnp changes:
I installed libupnp 1.6.6 (from MacPorts, changing the Portfile)
amule configure is ok, but during make I got several warning and then:
...
g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../.. -I../../../src -I../../../src/libs -I../../../src/include -no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH -DUSE_WX_EXTENSIONS -DWITH_LIBPNG -I/Users/gtoso/mulo/wxMac-2.8.8/osx-build/lib/wx/include/mac-unicode-release-static-2.8 -I/Users/gtoso/mulo/wxMac-2.8.8/include -I/Users/gtoso/mulo/wxMac-2.8.8/contrib/include -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXMAC__ -DwxUSE_GUI=0 -DEC_REMOTE -DWEBSERVERDIR="\"/usr/local/share/amule/webserver\"" -DECSOCKET_USE_EVENTS=0 -I/opt/local/include/upnp -DENABLE_UPNP=1 -I/opt/local/include -W -Wall -Wshadow -Wundef -O2 -I/Users/gtoso/mulo/wxMac-2.8.8/osx-build/lib/wx/include/mac-unicode-release-static-2.8 -I/Users/gtoso/mulo/wxMac-2.8.8/include -I/Users/gtoso/mulo/wxMac-2.8.8/contrib/include -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXMAC__ -I/opt/local/include/libpng12 -D_THREAD_SAFE -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -O2 -c -o amuleweb-UPnPCompatibility.o `test -f 'UPnPCompatibility.cpp' || echo './'`UPnPCompatibility.cpp
../../upnp.h:115: error: expected ',' or '...' before 'errorString'
../../upnp.h:116: error: ISO C++ forbids declaration of 'DOMString' with no type
../../upnp.h:120: error: 'IXML_Document' has not been declared
../../upnp.h:124: error: ISO C++ forbids declaration of 'IXML_Element' with no type
../../upnp.h:124: error: expected ';' before '*' token
../../upnp.h:126: error: ISO C++ forbids declaration of 'IXML_Element' with no type
../../upnp.h:126: error: expected ';' before '*' token
../../upnp.h:128: error: ISO C++ forbids declaration of 'IXML_Element' with no type
../../upnp.h:128: error: expected ';' before '*' token
../../upnp.h:130: error: 'DOMString' does not name a type
../../upnp.h:133: error: 'IXML_Element' has not been declared
../../upnp.h:135: error: 'IXML_Element' has not been declared
../../upnp.h:136: error: expected ',' or '...' before 'tag'
../../upnp.h:136: error: ISO C++ forbids declaration of 'DOMString' with no type
../../upnp.h:137: error: ISO C++ forbids declaration of 'IXML_Element' with no type
../../upnp.h:137: error: expected ';' before '*' token
../../upnp.h:140: error: ISO C++ forbids declaration of 'IXML_Element' with no type
../../upnp.h:140: error: expected ';' before '*' token
../../upnp.h:144: error: 'IXML_Element' has not been declared
../../upnp.h:145: error: expected ',' or '...' before 'tag'
../../upnp.h:145: error: ISO C++ forbids declaration of 'DOMString' with no type
../../upnp.h:166: error: 'IXML_Element' has not been declared
../../upnp.h:176: error: 'IXML_Element' has not been declared
...
I attach config.log and the output of configure and make.
-
The errors refer to src/UPnP.h.
Case insensitive filesystem :-(
-
I noticed a bug in configure:
I tried with --with-libupnp-prefix=/opt/local and I got:
checking pkg-config is at least version 0.9.0... yes
checking for libupnp version >= 1.6.6... ./configure: line 8283: PKG_CONFIG_PATH=/opt/local/lib/pkgconfig: No such file or directory
no (try to use --with-libupnp-prefix=PREFIX)
In config.log I see only:
configure:8280: checking for libupnp version >= 1.6.6
configure:8311: result: no (try to use --with-libupnp-prefix=PREFIX)
Previously I used:
CFLAGS="-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -O2" \
CXXFLAGS="-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -O2" \
CPPFLAGS="-I/opt/local/include" \
LDFLAGS="-L/opt/local/lib" \
./configure \
--disable-debug \
--enable-optimize \
--enable-amulecmd \
--enable-webserver \
--enable-cas \
--enable-alcc \
--enable-amule-daemon \
--enable-amule-gui \
--enable-geoip --with-geoip-headers=/opt/local/include --with-geoip-lib=/opt/local/lib \
--with-wxdir=../wxMac-2.8.8/osx-build \
--with-crypto-prefix=/opt/local \
--disable-dependency-tracking
Now I tried with:
CFLAGS="-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -O2" \
CXXFLAGS="-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -O2" \
CPPFLAGS="-I/opt/local/include" \
LDFLAGS="-L/opt/local/lib" \
./configure \
--disable-debug \
--enable-optimize \
--enable-amulecmd \
--enable-webserver \
--enable-cas \
--enable-alcc \
--enable-amule-daemon \
--enable-amule-gui \
--with-wxdir=../wxMac-2.8.8/osx-build \
--with-crypto-prefix=/opt/local \
--with-libupnp-prefix=/opt/local \
--disable-dependency-tracking
-
gtoso,
I have changed the file names from UPnP.{cpp,h} to UPnPBase.{cpp,h} to avoid problems with case insensitive file systems.
There has also been some changes in the libupnp.m4 code to recognize libupnp presence on the system.
Please, test with tomorrow svn tarball and report your results so that we can make sure it works on your platform.
Cheers!
EDIT: if libupnp is normally installed in your system, do not use --with-libupnp-prefix=DIR, pkg-config should handle the paths automatically.
-
Please, test with tomorrow svn tarball and report your results so that we can make sure it works on your platform.
Thanks,
it compiles fine :-)
Now I'm going to test UPnP:
now my router upnp support should be ok (D-Link G604T, routertech 2.5):
http://www.routertech.org/