Hi everyone,<br><br>I have been struggling with mapguide server installation on my Cent OS 4.5 box for a while now. I followed the instructions as found on <a href="http://mapguide.osgeo.org/1.2/docs/BuildConfigureMgOpenSourceOnLinux/Index.html">http://mapguide.osgeo.org/1.2/docs/BuildConfigureMgOpenSourceOnLinux/Index.html</a><br>
<br>I issued the configure command as follows:<br><br>$# ./configure --enable-optimized --with-pic --with-fdo-include=/usr/local/fdo-3.2.2/include/ --with-fdo-lib=/usr/local/fdo-3.2.2/lib/<br>$# make<br><br>The make command ended up spitting out the following error:<br>
<br>----------------------------------------------------------------------------------------------------<br>*** Warning: Linking the shared library libMgGeometry.la against the<br>*** static library ../../Oem/geos-2.2.0/source/geom/.libs/libgeos.a is not portable!<br>
g++ -shared -nostdlib /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/3.4.6/crtbeginS.o .libs/GeometryBuild.o -Wl,--rpath -Wl,/home/apnakara/zips/mapguide/mapguide-1.2.0/Common/CoordinateSystem/.libs -Wl,--rpath -Wl,/home/apnakara/zips/mapguide/mapguide-1.2.0/Common/Foundation/.libs -Wl,--rpath -Wl,/usr/local/mapguideopensource/lib -L/home/apnakara/zips/mapguide/mapguide-1.2.0/Common/MdfModel/.libs -L/home/apnakara/zips/mapguide/mapguide-1.2.0/Common/MdfParser/.libs -L/home/apnakara/zips/mapguide/mapguide-1.2.0/Common/MdfModel -L/home/apnakara/zips/mapguide/mapguide-1.2.0/Common/MdfParser -L/home/apnakara/zips/mapguide/mapguide-1.2.0/Oem/dbxml-2.2.13/install/lib -L/home/apnakara/zips/mapguide/mapguide-1.2.0/Oem/proj-4.5.0/src/.libs -L/usr/kerberos/lib64 -L/usr/kerberos/lib -L/usr/lib64 -L/home/apnakara/zips/mapguide/mapguide-1.2.0/Oem/gdal-1.4.0/.libs -L/home/apnakara/zips/mapguide/mapguide-1.2.0/Oem/proj-4.5.0/src -L/home/apnakara/zips/mapguide/mapguide-1.2.0/Oem/gdal-1.4.0 -L/home/apnakara/zips/mapguide/mapguide-1.2.0/Oem/ACE/ACE_wrappers/ace -L/home/apnakara/zips/mapguide/mapguide-1.2.0/Common/Foundation -L/home/apnakara/zips/mapguide/mapguide-1.2.0/Common/CoordinateSystem -lACE /home/apnakara/zips/mapguide/mapguide-1.2.0/Common/CoordinateSystem/.libs/libMgCoordinateSystem.so /home/apnakara/zips/mapguide/mapguide-1.2.0/Common/Foundation/.libs/libMgFoundation.so ../../Oem/geos-2.2.0/source/geom/.libs/libgeos.a -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6 -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../.. -L/lib/../lib64 -L/usr/lib/../lib64 -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-redhat-linux/3.4.6/crtendS.o /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/crtn.o -Wl,-soname -Wl,libMgGeometry.so.7 -o .libs/libMgGeometry.so.7.0.0<br>
/usr/bin/ld: ../../Oem/geos-2.2.0/source/geom/.libs/libgeos.a(GeometryFactory.o): relocation R_X86_64_32S against `vtable for geos::GeometryFactory' can not be used when making a shared object; recompile with -fPIC<br>
../../Oem/geos-2.2.0/source/geom/.libs/libgeos.a: could not read symbols: Bad value<br>collect2: ld returned 1 exit status<br>make[2]: *** [libMgGeometry.la] Error 1<br>make[2]: Leaving directory `/home/apnakara/zips/mapguide/mapguide-1.2.0/Common/Geometry'<br>
make[1]: *** [all-recursive] Error 1<br>make[1]: Leaving directory `/home/apnakara/zips/mapguide/mapguide-1.2.0/Common'<br>make: *** [all-recursive] Error 1<br>----------------------------------------------------------------------------------------------------<br clear="all">
<br>It appears as if it is suggesting the use of -fPIC flag, although as you may notice in the configure command above, I have used the --with-pic flag (I assume that this should be covered due to the use of this flag).<br>
<br>Other details:<br>----------------------------------------------------------------------------------------------------<br>$# uname -a<br>Linux <a href="http://xxx.xxx.com">xxx.xxx.com</a> 2.6.9-67.0.4.ELsmp #1 SMP Sun Feb 3 07:06:14 EST 2008 x86_64 x86_64 x86_64 GNU/Linux<br>
<br>$# gcc -dumpversion<br>3.4.6<br>----------------------------------------------------------------------------------------------------<br><br>I am all ears for your suggestions.<br><br>Regards,<br>Muhammad Mubashar Shoaib.<br>