[mapguide-users] Mapguide 1.2.0 make problem

Muhammad Mubashar Shoaib mubasharbhai at gmail.com
Thu Jul 3 04:53:11 EDT 2008


Hi everyone,

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
http://mapguide.osgeo.org/1.2/docs/BuildConfigureMgOpenSourceOnLinux/Index.html

I issued the configure command as follows:

$# ./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/
$# make

The make command ended up spitting out the following error:

----------------------------------------------------------------------------------------------------
*** Warning: Linking the shared library libMgGeometry.la against the
*** static library ../../Oem/geos-2.2.0/source/geom/.libs/libgeos.a is not
portable!
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
/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
../../Oem/geos-2.2.0/source/geom/.libs/libgeos.a: could not read symbols:
Bad value
collect2: ld returned 1 exit status
make[2]: *** [libMgGeometry.la] Error 1
make[2]: Leaving directory
`/home/apnakara/zips/mapguide/mapguide-1.2.0/Common/Geometry'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/apnakara/zips/mapguide/mapguide-1.2.0/Common'
make: *** [all-recursive] Error 1
----------------------------------------------------------------------------------------------------

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).

Other details:
----------------------------------------------------------------------------------------------------
$# uname -a
Linux xxx.xxx.com 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

$# gcc -dumpversion
3.4.6
----------------------------------------------------------------------------------------------------

I am all ears for your suggestions.

Regards,
Muhammad Mubashar Shoaib.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20080703/8161f077/attachment.html


More information about the mapguide-users mailing list