[fdo-users] FDO Compile error (libxalan-c)

kernel_panic sudoaptgetinstalld00d3 at gmail.com
Mon Oct 12 21:01:15 EDT 2009

2009/10/12, Jason Birch
> My guess would be that mapguide trunk may already account for this?
> Using fdo trunk with mapguide 2.0 isn't something I'd try.
> You're right, we haven't pushed a tarball for MG 2.1 yet, and svn can
> sometimes take quite a few tries before making it through error-free.
> If you're up to it though;
> svn co http://svn.osgeo.org/mapguide/trunk/MgDev mapguide
> (or something close to that)
> Then if you want to compile from a non-svn tree, you can use the "svn
> export" command to push a clean version to a different location for
> building.
> Jason

Ive tried this, I downloaded the whole trunk and when I run build_sh I
get an error listed here:


It was fixed like this:

Typing the following commands before running buil_oem.sh was not enough for me.

export CC
export CXX

In addition to this, I a few lines in Oem/SWIGEx/Makefile and
BuildTools/WebTools/IMake/Makefile as below.

 CC = gcc-4.1
 CXX = g++-4.1
 LINK = g++-4.1    # Only in IMake/Makefile

Then, buil_oem.sh succeeded.
By Takashige

Now, I have done that, cleared that particular problem, but now I get this one:

Generating files
creating ./config.status
creating php5.spec
creating main/build-defs.h
creating scripts/phpize
creating scripts/man1/phpize.1
creating scripts/php-config
creating scripts/man1/php-config.1
creating sapi/cli/php.1
creating main/php_config.h
main/php_config.h is unchanged
creating main/internal_functions.c
creating main/internal_functions_cli.c
|                        *** WARNING ***                             |
|                                                                    |
| You will be compiling the CGI version of PHP without any           |
| redirection checking.  By putting this cgi binary somewhere in     |
| your web space, users may be able to circumvent existing .htaccess |
| security by loading files directly through the parser.  See        |
| http://www.php.net/manual/security.php for more details.           |
| License:                                                           |
| This software is subject to the PHP License, available in this     |
| distribution in the file LICENSE.  By continuing this installation |
| process, you are bound by the terms of this license agreement.     |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point.                            |

Thank you for using PHP.

/opt/MgDev/Oem /opt/MgDev
php: Build Successful ..........................
swigex: Initialization...........................
swigex: Configure/Build ...........................
/opt/MgDev/Oem/SWIGEx /opt/MgDev/Oem /opt/MgDev
test -d Linux/ || mkdir -p Linux/
g++  -o Linux/swig Linux/obj/release/cscanner.o
Linux/obj/release/parser.o Linux/obj/release/templ.o
Linux/obj/release/util.o Linux/obj/release/base.o
Linux/obj/release/file.o Linux/obj/release/fio.o
Linux/obj/release/hash.o Linux/obj/release/list.o
Linux/obj/release/memory.o Linux/obj/release/string.o
Linux/obj/release/void.o Linux/obj/release/allocate.o
Linux/obj/release/browser.o Linux/obj/release/chicken.o
Linux/obj/release/contract.o Linux/obj/release/csharp.o
Linux/obj/release/directors.o Linux/obj/release/emit.o
Linux/obj/release/guile.o Linux/obj/release/java.o
Linux/obj/release/lang.o Linux/obj/release/main.o
Linux/obj/release/module.o Linux/obj/release/mzscheme.o
Linux/obj/release/ocaml.o Linux/obj/release/overload.o
Linux/obj/release/perl5.o Linux/obj/release/php4.o
Linux/obj/release/php5.o Linux/obj/release/pike.o
Linux/obj/release/python.o Linux/obj/release/ruby.o
Linux/obj/release/s-exp.o Linux/obj/release/swigmain.o
Linux/obj/release/xml.o Linux/obj/release/cwrap.o
Linux/obj/release/error.o Linux/obj/release/fragment.o
Linux/obj/release/getopt.o Linux/obj/release/include.o
Linux/obj/release/misc.o Linux/obj/release/naming.o
Linux/obj/release/parms.o Linux/obj/release/scanner.o
Linux/obj/release/stype.o Linux/obj/release/symbol.o
Linux/obj/release/tree.o Linux/obj/release/typemap.o
Linux/obj/release/typeobj.o Linux/obj/release/typesys.o
Linux/obj/release/warn.o Linux/obj/release/wrapfunc.o
Linux/obj/release/cpp.o Linux/obj/release/expr.o
Linux/obj/release/csharp.o: In function `__exchange_and_add':
/usr/include/c++/4.3/ext/atomicity.h:51: undefined reference to
/usr/include/c++/4.3/ext/atomicity.h:51: undefined reference to
/usr/include/c++/4.3/ext/atomicity.h:51: undefined reference to
/usr/include/c++/4.3/ext/atomicity.h:51: undefined reference to
/usr/include/c++/4.3/ext/atomicity.h:51: undefined reference to
more undefined references to `__sync_fetch_and_add_4' follow
collect2: ld devolvió el estado de salida 1
make: *** [Linux/swig] Error 1
SWIGEx 1.0: Error build failed (2).................

I cant remember if I got that with mapguide, but I cant
find any workaround (and I have listed everything Ive done, so most
likely I havent found this before)... so Im stuck at this right now

More information about the fdo-users mailing list