[Mono-dev] Undefined reference to 'mono_set_rootdir' while building metadata path

Brian Crowell mono-devel at fluggo.com
Tue Feb 7 20:35:26 EST 2006

When linking a file in the /mono/metadata directory, the following error occurs:

/bin/sh ../../libtool --tag=CC --mode=link gcc -O -g -O2 -fno-strict-aliasing -g 
-Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes 
-Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual 
-Wcast-align -Wwrite-strings   -o pedump  pedump.o libmonoruntime.la 
../io-layer/libwapi.la ../utils/libmonoutils.la ../os/libmonoos.la 
../../libgc/libmonogc.la -pthread -L/usr/local/lib -lgthread-2.0 -lglib-2.0 
-Wl,--export-dynamic -L/usr/local/lib -lgmodule-2.0 -ldl -lglib-2.0   -lm -lnsl 
-lpthread -lm -lrt
gcc -O -g -O2 -fno-strict-aliasing -g -Wall -Wunused -Wmissing-prototypes 
-Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs 
-Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -o pedump pedump.o 
-pthread -Wl,--export-dynamic  ./.libs/libmonoruntime.a 
../io-layer/.libs/libwapi.a ../utils/.libs/libmonoutils.a 
../os/.libs/libmonoos.a ../../libgc/.libs/libmonogc.a -L/usr/local/lib 
/usr/local/lib/libgthread-2.0.so /usr/local/lib/libgmodule-2.0.so -ldl 
/usr/local/lib/libglib-2.0.so -lnsl -lpthread -lm -lrt
./.libs/libmonoruntime.a(assembly.o)(.text+0x881): In function 
/home/dsl/mono- undefined reference to 
collect2: ld returned 1 exit status
make: *** [pedump] Error 1

As far as I can tell, everything else seems to be building correctly. This is on 
DamnSmallLinux, though, so I'm probably missing a shell variable or dependency.
I know for certain that libgdiplus is not installed, but I don't think that's 
it. Can anyone give me a hint?


More information about the Mono-devel-list mailing list