Opened 17 years ago
Closed 17 years ago
#506 closed defect (fixed)
Mapguide 2.0 won't compile on Ubuntu?
Reported by: | Rothgar | Owned by: | ronnielouie |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Build System | Version: | 2.0.0 |
Severity: | critical | Keywords: | |
Cc: | External ID: |
Description
I am getting an error:
libtool: link: cannot find the library `/home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr/libapr-1.la' make[1]: * [httpd] Error 1 make[1]: Leaving directory `/home/mapguide-src/LinuxApt/httpd-2.2.4' make: * [all-recursive] Error 1 Apache build failed (0).
I don't know why it's making reference to: "/home/louier/mapguide/Ronnie2"
This isn't even on my system and looks French?
Looking for the file on my system it exists in the correct location?:
root@mapsrv:/home/mapguide-src# find / -name "libapr-1.la" /home/mapguide-src/LinuxApt/httpd-2.2.4/srclib/apr/.libs/libapr-1.la /home/mapguide-src/LinuxApt/httpd-2.2.4/srclib/apr/libapr-1.la
Change History (21)
comment:1 by , 17 years ago
Summary: | Mapguide 2.0 Apache won't compile on Debian? → Mapguide 2.0 Apache won't compile on Ubuntu? |
---|
comment:2 by , 17 years ago
Forgot to mention the version number is 7.10
I am using the release from the website not SVN "mapguideaptinstaller-2.0.tar.gz"
comment:3 by , 17 years ago
root@mapsrv:/home/mapguide-src/LinuxApt/httpd-2.2.4/srclib/apr# cat exports.c | grep Ronnie
- /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr/include/apr_thread_mutex.h
- /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr/include/apr_env.h
- /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr/include/apr_poll.h
- /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr/include/apr_fnmatch.h
- /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr/include/apr_global_mutex.h
- /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr/include/apr_pools.h
- /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr/include/apr_file_io.h
- /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr/include/apr_version.h
- /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr/include/apr_mmap.h
- /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr/include/apr_dso.h
- /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr/include/apr_thread_proc.h
- /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr/include/apr_errno.h
- /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr/include/apr_shm.h
- /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr/include/apr_network_io.h
- /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr/include/apr_signal.h
- /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr/include/apr_user.h
- /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr/include/apr_atomic.h
- /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr/include/apr_random.h
- /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr/include/apr_thread_cond.h
- /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr/include/apr_thread_rwlock.h
- /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr/include/apr_getopt.h
- /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr/include/apr_strings.h
- /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr/include/apr_general.h
- /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr/include/apr_proc_mutex.h
- /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr/include/apr_tables.h
- /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr/include/apr_file_info.h
- /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr/include/apr_allocator.h
- /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr/include/apr_portable.h
- /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr/include/apr_hash.h
- /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr/include/apr_time.h
- /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr/include/apr_lib.h
root@mapsrv:/home/mapguide-src/LinuxApt/httpd-2.2.4/srclib/apr# cat apr-config.out | grep Ronnie APR_SOURCE_DIR="/home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr" APR_BUILD_DIR="/home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr"
root@mapsrv:/home/mapguide-src/LinuxApt/httpd-2.2.4# cat httpd | grep Ronnie2
unset LIBRARY_PATH | { LIBRARY_PATH=; export LIBRARY_PATH; }; }; { test -z \"\${COMPILER_PATH+set}\" | unset COMPILER_PATH | { COMPILER_PATH=; export COMPILER_PATH; }; }; { test -z \"\${GCC_EXEC_PREFIX+set}\" | unset GCC_EXEC_PREFIX | { GCC_EXEC_PREFIX=; export GCC_EXEC_PREFIX; }; }; { test -z \"\${LD_RUN_PATH+set}\" | unset LD_RUN_PATH | { LD_RUN_PATH=; export LD_RUN_PATH; }; }; PATH=\"/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/louier/bin\"; export PATH; gcc -g -O2 -pthread -o \$progdir/\$file .libs/modules.o buildmark.o -Wl,--export-dynamic server/.libs/libmain.a modules/http/.libs/libmod_http.a modules/mappers/.libs/libmod_so.a server/mpm/prefork/.libs/libprefork.a os/unix/.libs/libos.a -lm /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/pcre/.libs/libpcre.a /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr-util/.libs/libaprutil-1.so /usr/lib/libexpat.so /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr/.libs/libapr-1.so -luuid -lrt -lcrypt -lpthread -ldl -Wl,--rpath -Wl,/home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr-util/.libs -Wl,--rpath -Wl,/home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr/.libs -Wl,--rpath -Wl,/usr/local/mapguideopensource/webserverextensions/apache2/lib)" |
notinst_deplibs=' /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr-util/libaprutil-1.la /home/louier/mapguide/Ronnie2/LinuxApt/httpd-2.2.4/srclib/apr/libapr-1.la'
These are just a few of the files?
comment:4 by , 17 years ago
Looks like the SVN compiles. Maybe the link should be taken down or a new build should be made for the website?
comment:5 by , 17 years ago
Now building the MapGuide Server fails with a new error, using the SVN:
make[4]: Entering directory `/home/mapguide-svn/Server/src/Common/Cache' if /bin/sh ../../../../libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"mapguide\" -DPACKAGE_TARNAME=\"mapguide\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"mapguide\ 2.0.0\" -DPACKAGE_BUGREPORT=\"http://mapguide.osgeo.org\" -DPACKAGE=\"mapguide\" -DVERSION=\"2.0.0\" -DPACKAGE=\"mapguide\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_MATH_H=1 -DHAVE_NETDB_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETHOSTBYNAME=1 -DHAVE_SOCKET=1 -DHAVE_HTONS=1 -DHAVE_CONNECT=1 -DHAVE_SHUTDOWN=1 -I. -I. -I../../../../Common/Foundation -I../../../../Common/PlatformBase -I../../../../Common/MapGuideCommon -I../../../../Common/Geometry -I../../../../Common/MdfModel -I../../../../Oem/ACE/ACE_wrappers -I../../../../Oem/FDO/inc -O2 -g -pipe -march=i386 -mcpu=i686 -fno-use-cxa-atexit -fexceptions -MT ServerCacheBuild.lo -MD -MP -MF ".deps/ServerCacheBuild.Tpo" -c -o ServerCacheBuild.lo ServerCacheBuild.cpp; \
then mv -f ".deps/ServerCacheBuild.Tpo" ".deps/ServerCacheBuild.Plo"; else rm -f ".deps/ServerCacheBuild.Tpo"; exit 1; fi
mkdir .libs
g++ -DPACKAGE_NAME=\"mapguide\" -DPACKAGE_TARNAME=\"mapguide\" -DPACKAGE_VERSION=\"2.0.0\" "-DPACKAGE_STRING=\"mapguide 2.0.0\"" -DPACKAGE_BUGREPORT=\"http://mapguide.osgeo.org\" -DPACKAGE=\"mapguide\" -DVERSION=\"2.0.0\" -DPACKAGE=\"mapguide\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_MATH_H=1 -DHAVE_NETDB_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETHOSTBYNAME=1 -DHAVE_SOCKET=1 -DHAVE_HTONS=1 -DHAVE_CONNECT=1 -DHAVE_SHUTDOWN=1 -I. -I. -I../../../../Common/Foundation -I../../../../Common/PlatformBase -I../../../../Common/MapGuideCommon -I../../../../Common/Geometry -I../../../../Common/MdfModel -I../../../../Oem/ACE/ACE_wrappers -I../../../../Oem/FDO/inc -O2 -g -pipe -march=i386 -mcpu=i686 -fno-use-cxa-atexit -fexceptions -MT ServerCacheBuild.lo -MD -MP -MF .deps/ServerCacheBuild.Tpo -c ServerCacheBuild.cpp -fPIC -DPIC -o .libs/ServerCacheBuild.o
-mcpu=' is deprecated. Use
-mtune=' or '-march=' instead.
In file included from FeatureServiceCache.h:22,
from FeatureServiceCache.cpp:19, from ServerCacheBuild.cpp:21:
FeatureServiceCacheEntry.h:24:17: error: Fdo.h: No such file or directory FeatureServiceCacheEntry.h:84: error: ISO C++ forbids declaration of 'FdoFeatureSchemaCollection' with no type FeatureServiceCacheEntry.h:84: error: expected ';' before '*' token FeatureServiceCacheEntry.h:85: error: 'FdoFeatureSchemaCollection' has not been declared FeatureServiceCacheEntry.h:111: error: ISO C++ forbids declaration of 'FdoPtr' with no type FeatureServiceCacheEntry.h:111: error: expected ';' before '<' token FeatureServiceCache.h:83: error: 'FdoFeatureSchemaCollection' has not been declared FeatureServiceCache.h:84: error: ISO C++ forbids declaration of 'FdoFeatureSchemaCollection' with no type FeatureServiceCache.h:84: error: expected ';' before '*' token FeatureServiceCache.cpp:680: error: 'FdoFeatureSchemaCollection' has not been declared FeatureServiceCache.cpp: In member function 'void MgFeatureServiceCache::SetFdoFeatureSchemaCollection(MgResourceIdentifier*, const std::wstring&, int*)': FeatureServiceCache.cpp:688: error: 'FdoPtr' was not declared in this scope FeatureServiceCache.cpp:688: error: 'FdoFeatureSchemaCollection' was not declared in this scope FeatureServiceCache.cpp:688: error: 'data' was not declared in this scope FeatureServiceCache.cpp:688: error: 'class _NoAddRefReleaseOnPtr<MgFeatureServiceCacheEntry>' has no member named 'GetFdoFeatureSchemaCollection' FeatureServiceCache.cpp: At global scope: FeatureServiceCache.cpp:706: error: expected constructor, destructor, or type conversion before '*' token FeatureServiceCacheEntry.cpp: In member function 'void MgFeatureServiceCacheEntry::SetFeatureSchemaName(const std::wstring&)': FeatureServiceCacheEntry.cpp:73: error: 'FdoFeatureSchemaCollection' was not declared in this scope FeatureServiceCacheEntry.cpp:73: error: expected primary-expression before ')' token FeatureServiceCacheEntry.cpp: At global scope: FeatureServiceCacheEntry.cpp:172: error: variable or field 'SetFdoFeatureSchemaCollection' declared void FeatureServiceCacheEntry.cpp:172: error: 'int MgFeatureServiceCacheEntry::SetFdoFeatureSchemaCollection' is not a static member of 'class MgFeatureServiceCacheEntry' FeatureServiceCacheEntry.cpp:172: error: 'FdoFeatureSchemaCollection' was not declared in this scope FeatureServiceCacheEntry.cpp:172: error: 'featureSchemaCollection' was not declared in this scope FeatureServiceCacheEntry.cpp:173: error: expected ',' or ';' before '{' token FeatureServiceCacheEntry.cpp:177: error: expected constructor, destructor, or type conversion before '*' token make[4]: * [ServerCacheBuild.lo] Error 1 make[4]: Leaving directory `/home/mapguide-svn/Server/src/Common/Cache' make[3]: * [all-recursive] Error 1 make[3]: Leaving directory `/home/mapguide-svn/Server/src/Common' make[2]: * [all-recursive] Error 1 make[2]: Leaving directory `/home/mapguide-svn/Server/src' make[1]: * [all-recursive] Error 1 make[1]: Leaving directory `/home/mapguide-svn/Server' make: * [all-recursive] Error 1 root@mapsrv:/home/mapguide-svn#
comment:7 by , 17 years ago
Owner: | set to |
---|
comment:8 by , 17 years ago
Summary: | Mapguide 2.0 Apache won't compile on Ubuntu? → Mapguide 2.0 won't compile on Ubuntu? |
---|
comment:9 by , 17 years ago
I have an "Fdo.h" file in the following locations:
/home/fdo-src/OpenSource_FDO/Fdo/Unmanaged/Inc/Fdo.h /home/fdo-src/OpenSource_FDO/Utilities/Common/FDOProviderTemplate/Setup Files/Wizard/Templates/1033/Fdo.h /usr/local/fdo-3.3.0/include/Fdo.h
Note: I am NOT using the FDO SVN, this is the 3.3.0 release off the website.
comment:10 by , 17 years ago
Don't know why it word-wrapped the line-break... In case you overlooked "Fdo.h" is in "/usr/local/fdo-3.3.0/include/Fdo.h" after it has been compiled.
comment:11 by , 17 years ago
The build should be using Fdo.h from /usr/local/fdo-3.3.0. It is is incorrectly looking for it at Oem/FDO/Inc.
Try removing -I../../../../Oem/FDO/inc from Server\src\Common\Cache\Makefile. I will update svn after I have verified this change.
comment:12 by , 17 years ago
The FDO location still needs to be specified.
Replace -I../../../../Oem/FDO/inc in Server/src/Common/Cache/Makefile with
-I$(map_fdo_include)
That should get you past the error building the server from svn. I am working on an update to mapguideaptinstaller-2.0.tar.gz, so it should be available soon.
comment:13 by , 17 years ago
Correction to previous comment. Note the file to update is Makefile.am.
Replace -I../../../../Oem/FDO/inc in Server/src/Common/Cache/Makefile.am with
-I$(map_fdo_include)
comment:14 by , 17 years ago
Replaced hardcoded path to ../../../../Oem/FDO/inc with $(map_fdo_include) which currently maps to /usr/local/fdo-3.3.0.
http://trac.osgeo.org/mapguide/changeset/3099 http://trac.osgeo.org/mapguide/changeset/3100
comment:15 by , 17 years ago
New error :(
mkdir .libs libtool: link: warning: `-version-info' is ignored for programs g++ -O2 -g -pipe -march=i386 -mcpu=i686 -fno-use-cxa-atexit -fexceptions -o .libs/mapagent MapAgentGetParser.o CgiPostParser.o CgiResponseHandler.o MapAgentStrings.o EchoTest.o CgiAgent.o InitializeWebTier.o -L/home/mapguide-svn/Oem/ACE/ACE_wrappers/ace -L/home/mapguide-svn/Oem/dbxml-2.3.10/install/lib -L/home/mapguide-svn/Common/CoordinateSystem -L/home/mapguide-svn/Common/MdfModel -L/home/mapguide-svn/Common/MdfParser -L/home/mapguide-svn/Common/Foundation -L/home/mapguide-svn/Common/Geometry -L/home/mapguide-svn/Common/PlatformBase -L/home/mapguide-svn/Common/MapGuideCommon -L/home/mapguide-svn/Web/src/HttpHandler -lACE -lxerces-c /home/mapguide-svn/Common/Foundation/.libs/libMgFoundation.so /home/mapguide-svn/Common/Geometry/.libs/libMgGeometry.so /home/mapguide-svn/Common/PlatformBase/.libs/libMgPlatformBase.so /home/mapguide-svn/Common/MdfModel/.libs/libMgMdfModel.so /home/mapguide-svn/Common/MdfParser/.libs/libMgMdfParser.so /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so -Wl,--rpath -Wl,/home/mapguide/lib -Wl,--rpath -Wl,/home/mapguide/webserverextensions/lib /usr/bin/ld: warning: liblib_json.so, needed by /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so, not found (try using -rpath or -rpath-link) /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so: undefined reference to `Json::Value::Value(bool)' /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so: undefined reference to `Json::Value::Value(Json::StaticString const&)' /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so: undefined reference to `Json::Value::resize(int)' /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so: undefined reference to `Json::Value::operator[](Json::StaticString const&)' /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so: undefined reference to `Json::Value::~Value()' /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so: undefined reference to `Json::Value::operator[](int)' /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so: undefined reference to `Json::Value::Value(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so: undefined reference to `Json::FastWriter::write(Json::Value const&)' /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so: undefined reference to `Json::Value::Value(Json::Value const&)' /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so: undefined reference to `Json::Value::operator=(Json::Value const&)' /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so: undefined reference to `Json::Value::append(Json::Value const&)' /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so: undefined reference to `Json::Value::Value(Json::ValueType)' /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so: undefined reference to `Json::Writer::~Writer()' /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so: undefined reference to `Json::FastWriter::FastWriter()' /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so: undefined reference to `Json::Value::operator[](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so: undefined reference to `vtable for Json::FastWriter' collect2: ld returned 1 exit status make[3]: * [mapagent] Error 1 make[3]: Leaving directory `/home/mapguide-svn/Web/src/CgiAgent' make[2]: * [all-recursive] Error 1 make[2]: Leaving directory `/home/mapguide-svn/Web/src' make[1]: * [all-recursive] Error 1 make[1]: Leaving directory `/home/mapguide-svn/Web' make: * [all-recursive] Error 1
root@mapsrv:/home/mapguide-svn# find / -name "liblib_json.so" /home/mapguide-svn/Oem/jsoncpp/buildscons/linux-gcc/src/lib_json/liblib_json.so /home/mapguide-svn/Oem/jsoncpp/lib/liblib_json.so
comment:16 by , 17 years ago
Seems to be with the CgiAgent:
make[3]: Entering directory `/home/mapguide-svn/Web/src/CgiAgent' /bin/sh ../../../libtool --tag=CXX --mode=link g++ -O2 -g -pipe -march=i386 -mcpu=i686 -fno-use-cxa-atexit -fexceptions -o mapagent -version-info 7:0:0 -L../../../Oem/ACE/ACE_wrappers/ace -L../../../Oem/dbxml-2.3.10/install/lib -L../../../Common/CoordinateSystem -L../../../Common/MdfModel -L../../../Common/MdfParser -L../../../Common/Foundation -L../../../Common/Geometry -L../../../Common/PlatformBase -L../../../Common/MapGuideCommon -L../HttpHandler MapAgentGetParser.o CgiPostParser.o CgiResponseHandler.o MapAgentStrings.o EchoTest.o CgiAgent.o InitializeWebTier.o -lACE -lxerces-c -lMgFoundation -lMgGeometry -lMgPlatformBase -lMgMdfModel -lMgMdfParser -lMgHttpHandler libtool: link: warning: `-version-info' is ignored for programs g++ -O2 -g -pipe -march=i386 -mcpu=i686 -fno-use-cxa-atexit -fexceptions -o .libs/mapagent MapAgentGetParser.o CgiPostParser.o CgiResponseHandler.o MapAgentStrings.o EchoTest.o CgiAgent.o InitializeWebTier.o -L/home/mapguide-svn/Oem/ACE/ACE_wrappers/ace -L/home/mapguide-svn/Oem/dbxml-2.3.10/install/lib -L/home/mapguide-svn/Common/CoordinateSystem -L/home/mapguide-svn/Common/MdfModel -L/home/mapguide-svn/Common/MdfParser -L/home/mapguide-svn/Common/Foundation -L/home/mapguide-svn/Common/Geometry -L/home/mapguide-svn/Common/PlatformBase -L/home/mapguide-svn/Common/MapGuideCommon -L/home/mapguide-svn/Web/src/HttpHandler -lACE -lxerces-c /home/mapguide-svn/Common/Foundation/.libs/libMgFoundation.so /home/mapguide-svn/Common/Geometry/.libs/libMgGeometry.so /home/mapguide-svn/Common/PlatformBase/.libs/libMgPlatformBase.so /home/mapguide-svn/Common/MdfModel/.libs/libMgMdfModel.so /home/mapguide-svn/Common/MdfParser/.libs/libMgMdfParser.so /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so -Wl,--rpath -Wl,/home/mapguide/lib -Wl,--rpath -Wl,/home/mapguide/webserverextensions/lib /usr/bin/ld: warning: liblib_json.so, needed by /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so, not found (try using -rpath or -rpath-link) /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so: undefined reference to `Json::Value::Value(bool)' /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so: undefined reference to `Json::Value::Value(Json::StaticString const&)' /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so: undefined reference to `Json::Value::resize(int)' /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so: undefined reference to `Json::Value::operator[](Json::StaticString const&)' /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so: undefined reference to `Json::Value::~Value()' /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so: undefined reference to `Json::Value::operator[](int)' /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so: undefined reference to `Json::Value::Value(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so: undefined reference to `Json::FastWriter::write(Json::Value const&)' /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so: undefined reference to `Json::Value::Value(Json::Value const&)' /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so: undefined reference to `Json::Value::operator=(Json::Value const&)' /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so: undefined reference to `Json::Value::append(Json::Value const&)' /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so: undefined reference to `Json::Value::Value(Json::ValueType)' /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so: undefined reference to `Json::Writer::~Writer()' /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so: undefined reference to `Json::FastWriter::FastWriter()' /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so: undefined reference to `Json::Value::operator[](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /home/mapguide-svn/Web/src/HttpHandler/.libs/libMgHttpHandler.so: undefined reference to `vtable for Json::FastWriter' collect2: ld returned 1 exit status make[3]: * [mapagent] Error 1 make[3]: Leaving directory `/home/mapguide-svn/Web/src/CgiAgent' make[2]: * [all-recursive] Error 1 make[2]: Leaving directory `/home/mapguide-svn/Web/src' make[1]: * [all-recursive] Error 1 make[1]: Leaving directory `/home/mapguide-svn/Web' make: * [all-recursive] Error 1
comment:17 by , 17 years ago
We found this bug report: http://trac.osgeo.org/mapguide/attachment/ticket/347/CgiAgent_Makefile.am.patch
Using the patch the CgiAgent problem seemed to go away, maybe this can be added to the SVN?
After the CgiAgent, I saw a lot of warnings, don't know if they should be looked at or not?
make[3]: Entering directory `/home/mapguide-svn/Web/src/PhpApi' ../../../BuildTools/WebTools/IMake/Linux/IMake ../MapGuideApi/Constants.xml PHP ./constants.php
IMake - SWIG Interface generator Version 1.1cp -f php.i language.i ../../../BuildTools/WebTools/IMake/Linux/IMake ../MapGuideApi/MapGuideApiGen.xml PHP
IMake - SWIG Interface generator Version 1.1
Generating interface file ./MapGuideApi.i... ../../../Oem/SWIGEx/Linux/swig -c++ -php -DPHPSWIG -baseexception MgException \
-clsidcode getclassid.code \ -clsiddata m_cls_id \ -catchallcode catchall.code \ -dispose "((MgDisposable*)arg1)->Release()" \ -rethrow "e->Raise();" \ -nodefault -o MgApi_wrap.cpp \ -lib ../../../Oem/SWIGEx/Lib MapGuideApi.i
MapGuideApi.i:51: Warning(302): Identifier 'STRINGPARAM' redeclared (ignored). MapGuideApi.i:45: Previous declaration of 'STRINGPARAM' MapGuideApi.i:52: Warning(302): Identifier 'BYTE' redeclared (ignored). MapGuideApi.i:49: Previous declaration of 'BYTE' MapGuideApi.i:132: Warning(302): Identifier '~MgUserInformation' redeclared (ignored). MapGuideApi.i:131: Previous declaration of '~MgUserInformation' MapGuideApi.i:239: Warning(302): Identifier '~MgDateTime' redeclared (ignored). MapGuideApi.i:237: Previous declaration of '~MgDateTime' MapGuideApi.i:276: Warning(302): Identifier '~MgCollection' redeclared (ignored). MapGuideApi.i:274: Previous declaration of '~MgCollection' MapGuideApi.i:299: Warning(302): Identifier '~MgIntCollection' redeclared (ignored). MapGuideApi.i:297: Previous declaration of '~MgIntCollection' MapGuideApi.i:327: Warning(302): Identifier '~MgPropertyCollection' redeclared (ignored). MapGuideApi.i:325: Previous declaration of '~MgPropertyCollection' MapGuideApi.i:352: Warning(302): Identifier '~MgStringCollection' redeclared (ignored). MapGuideApi.i:350: Previous declaration of '~MgStringCollection' MapGuideApi.i:413: Warning(302): Identifier '~MgPropertyDefinitionCollection' redeclared (ignored). MapGuideApi.i:411: Previous declaration of '~MgPropertyDefinitionCollection' MapGuideApi.i:438: Warning(302): Identifier '~MgBatchPropertyCollection' redeclared (ignored). MapGuideApi.i:436: Previous declaration of '~MgBatchPropertyCollection' MapGuideApi.i:484: Warning(302): Identifier '~MgPropertyDefinition' redeclared (ignored). MapGuideApi.i:483: Previous declaration of '~MgPropertyDefinition' MapGuideApi.i:501: Warning(302): Identifier '~MgBlobProperty' redeclared (ignored). MapGuideApi.i:500: Previous declaration of '~MgBlobProperty' MapGuideApi.i:518: Warning(302): Identifier '~MgBooleanProperty' redeclared (ignored). MapGuideApi.i:517: Previous declaration of '~MgBooleanProperty' MapGuideApi.i:535: Warning(302): Identifier '~MgByteProperty' redeclared (ignored). MapGuideApi.i:534: Previous declaration of '~MgByteProperty' MapGuideApi.i:552: Warning(302): Identifier '~MgClobProperty' redeclared (ignored). MapGuideApi.i:551: Previous declaration of '~MgClobProperty' MapGuideApi.i:569: Warning(302): Identifier '~MgDateTimeProperty' redeclared (ignored). MapGuideApi.i:568: Previous declaration of '~MgDateTimeProperty' MapGuideApi.i:586: Warning(302): Identifier '~MgDoubleProperty' redeclared (ignored). MapGuideApi.i:585: Previous declaration of '~MgDoubleProperty' MapGuideApi.i:603: Warning(302): Identifier '~MgInt16Property' redeclared (ignored). MapGuideApi.i:602: Previous declaration of '~MgInt16Property' MapGuideApi.i:620: Warning(302): Identifier '~MgInt32Property' redeclared (ignored). MapGuideApi.i:619: Previous declaration of '~MgInt32Property' MapGuideApi.i:637: Warning(302): Identifier '~MgInt64Property' redeclared (ignored). MapGuideApi.i:636: Previous declaration of '~MgInt64Property' MapGuideApi.i:654: Warning(302): Identifier '~MgSingleProperty' redeclared (ignored). MapGuideApi.i:653: Previous declaration of '~MgSingleProperty' MapGuideApi.i:671: Warning(302): Identifier '~MgStringProperty' redeclared (ignored). MapGuideApi.i:670: Previous declaration of '~MgStringProperty' MapGuideApi.i:691: Warning(302): Identifier '~MgException' redeclared (ignored). MapGuideApi.i:686: Previous declaration of '~MgException' MapGuideApi.i:2367: Warning(302): Identifier '~MgSite' redeclared (ignored). MapGuideApi.i:2338: Previous declaration of '~MgSite' MapGuideApi.i:2407: Warning(302): Identifier '~MgSiteConnection' redeclared (ignored). MapGuideApi.i:2405: Previous declaration of '~MgSiteConnection' MapGuideApi.i:2433: Warning(302): Identifier '~MgResourceIdentifier' redeclared (ignored). MapGuideApi.i:2432: Previous declaration of '~MgResourceIdentifier' MapGuideApi.i:2505: Warning(302): Identifier '~MgCoordinate' redeclared (ignored). MapGuideApi.i:2502: Previous declaration of '~MgCoordinate' MapGuideApi.i:2627: Warning(302): Identifier '~MgCoordinateCollection' redeclared (ignored). MapGuideApi.i:2626: Previous declaration of '~MgCoordinateCollection' MapGuideApi.i:2756: Warning(302): Identifier '~MgGeometryCollection' redeclared (ignored). MapGuideApi.i:2755: Previous declaration of '~MgGeometryCollection' MapGuideApi.i:2842: Warning(302): Identifier '~MgCurveSegmentCollection' redeclared (ignored). MapGuideApi.i:2841: Previous declaration of '~MgCurveSegmentCollection' MapGuideApi.i:2942: Warning(302): Identifier '~MgCurveRingCollection' redeclared (ignored). MapGuideApi.i:2941: Previous declaration of '~MgCurveRingCollection' MapGuideApi.i:2985: Warning(302): Identifier '~MgLinearRingCollection' redeclared (ignored). MapGuideApi.i:2984: Previous declaration of '~MgLinearRingCollection' MapGuideApi.i:3095: Warning(302): Identifier '~MgCurveStringCollection' redeclared (ignored). MapGuideApi.i:3094: Previous declaration of '~MgCurveStringCollection' MapGuideApi.i:3119: Warning(302): Identifier '~MgLineStringCollection' redeclared (ignored). MapGuideApi.i:3118: Previous declaration of '~MgLineStringCollection' MapGuideApi.i:3143: Warning(302): Identifier '~MgPolygonCollection' redeclared (ignored). MapGuideApi.i:3142: Previous declaration of '~MgPolygonCollection' MapGuideApi.i:3167: Warning(302): Identifier '~MgCurvePolygonCollection' redeclared (ignored). MapGuideApi.i:3166: Previous declaration of '~MgCurvePolygonCollection' MapGuideApi.i:3191: Warning(302): Identifier '~MgPointCollection' redeclared (ignored). MapGuideApi.i:3190: Previous declaration of '~MgPointCollection' MapGuideApi.i:3541: Warning(302): Identifier '~MgMapBase' redeclared (ignored). MapGuideApi.i:3539: Previous declaration of '~MgMapBase' MapGuideApi.i:3722: Warning(302): Identifier '~MgReader' redeclared (ignored). MapGuideApi.i:3720: Previous declaration of '~MgReader' MapGuideApi.i:3799: Warning(302): Identifier '~MgSpatialContextReader' redeclared (ignored). MapGuideApi.i:3797: Previous declaration of '~MgSpatialContextReader' MapGuideApi.i:3843: Warning(302): Identifier '~MgFeatureSchemaCollection' redeclared (ignored). MapGuideApi.i:3841: Previous declaration of '~MgFeatureSchemaCollection' MapGuideApi.i:3868: Warning(302): Identifier '~MgClassDefinitionCollection' redeclared (ignored). MapGuideApi.i:3866: Previous declaration of '~MgClassDefinitionCollection' MapGuideApi.i:3892: Warning(302): Identifier '~MgLongTransactionReader' redeclared (ignored). MapGuideApi.i:3890: Previous declaration of '~MgLongTransactionReader' MapGuideApi.i:4008: Warning(302): Identifier '~MgClassDefinition' redeclared (ignored). MapGuideApi.i:4007: Previous declaration of '~MgClassDefinition' MapGuideApi.i:4025: Warning(302): Identifier '~MgRasterProperty' redeclared (ignored). MapGuideApi.i:4024: Previous declaration of '~MgRasterProperty' MapGuideApi.i:4042: Warning(302): Identifier '~MgGeometryProperty' redeclared (ignored). MapGuideApi.i:4041: Previous declaration of '~MgGeometryProperty' MapGuideApi.i:4059: Warning(302): Identifier '~MgFeatureProperty' redeclared (ignored). MapGuideApi.i:4058: Previous declaration of '~MgFeatureProperty' MapGuideApi.i:4237: Warning(302): Identifier '~MgFeatureCommandCollection' redeclared (ignored). MapGuideApi.i:4236: Previous declaration of '~MgFeatureCommandCollection' MapGuideApi.i:4255: Warning(302): Identifier '~MgInsertFeatures' redeclared (ignored). MapGuideApi.i:4254: Previous declaration of '~MgInsertFeatures' MapGuideApi.i:4273: Warning(302): Identifier '~MgUpdateFeatures' redeclared (ignored). MapGuideApi.i:4272: Previous declaration of '~MgUpdateFeatures' MapGuideApi.i:4290: Warning(302): Identifier '~MgDeleteFeatures' redeclared (ignored). MapGuideApi.i:4289: Previous declaration of '~MgDeleteFeatures' MapGuideApi.i:4422: Warning(302): Identifier '~MgMappingService' redeclared (ignored). MapGuideApi.i:4419: Previous declaration of '~MgMappingService' MapGuideApi.i:4542: Warning(302): Identifier '~MgFeatureInformation' redeclared (ignored). MapGuideApi.i:4540: Previous declaration of '~MgFeatureInformation' MapGuideApi.i:5224: Warning(302): Identifier '~MgWebLayout' redeclared (ignored). MapGuideApi.i:5222: Previous declaration of '~MgWebLayout'
Still waiting to see if it successfully compiles.
comment:18 by , 17 years ago
MapGuide compiled successfully after the changes.
Apache was not configured correctly by default?
http://trac.osgeo.org/mapguide/ticket/477
That ticket needs to be commited to the SVN to make Apache function correctly.
comment:19 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Paths corrected in mapguideaptinstaller-2.0.0.1.tar.gz. New tarball posted in downloads sections of website.
comment:20 by , 17 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Still a problem with paths when building PHP. Currently under investigation.
comment:21 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
mapguideaptinstaller-2.0.0.2.tar.gz is now available on website which should resolve remaining path issues