Thanks Paolo!

When autogen.sh process worked when I added the ref flag...

However, when running "make", i am not getting the following error

ranlib: warning: cannot infer operation mode from `.libs/libmonoutils.al'
ranlib: you must specify a MODE
Try `ranlib --help' for more information.
make[3]: *** [libmonoutils.la] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Here is the log of the make...


[localhost:~/dotnet/mono] stevem% make
make  all-recursive
Making all in mono
Making all in utils
source='mono-md5.c' object='mono-md5.lo' libtool=yes \
depfile='.deps/mono-md5.Plo' tmpdepfile='.deps/mono-md5.TPlo' \
depmode=gcc /bin/sh ../../depcomp \
/bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. 
-I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include   -I/sw/i
nclude/glib-2.0 -I/sw/lib/glib-2.0/include   -I../..    -I../../mono   -no-cpp-precomp 
-D_THREAD_SAFE   -g -Wall -Wunused -Wmissing-
prototypes -Wmissing-declarations -Wstrict-prototypes  -Wmissing-prototypes 
-Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-a
lign -Wwrite-strings -c -o mono-md5.lo `test -f 'mono-md5.c' || echo './'`mono-md5.c
rm -f .libs/mono-md5.lo
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include 
-I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/incl
ude -I../.. -I../../mono -no-cpp-precomp -D_THREAD_SAFE -g -Wall -Wunused 
-Wmissing-prototypes -Wmissing-declarations -Wstrict-proto
types -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual 
-Wcast-align -Wwrite-strings -c mono-md5.c -Wp,-MD,.deps/
mono-md5.TPlo  -fno-common -DPIC -o .libs/mono-md5.lo
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include 
-I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/incl
ude -I../.. -I../../mono -no-cpp-precomp -D_THREAD_SAFE -g -Wall -Wunused 
-Wmissing-prototypes -Wmissing-declarations -Wstrict-proto
types -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual 
-Wcast-align -Wwrite-strings -c mono-md5.c -Wp,-MD,.deps/
mono-md5.TPlo -o mono-md5.o >/dev/null 2>&1
mv -f .libs/mono-md5.lo mono-md5.lo
source='mono-sha1.c' object='mono-sha1.lo' libtool=yes \
depfile='.deps/mono-sha1.Plo' tmpdepfile='.deps/mono-sha1.TPlo' \
depmode=gcc /bin/sh ../../depcomp \
/bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. 
-I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include   -I/sw/i
nclude/glib-2.0 -I/sw/lib/glib-2.0/include   -I../..    -I../../mono   -no-cpp-precomp 
-D_THREAD_SAFE   -g -Wall -Wunused -Wmissing-
prototypes -Wmissing-declarations -Wstrict-prototypes  -Wmissing-prototypes 
-Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-a
lign -Wwrite-strings -c -o mono-sha1.lo `test -f 'mono-sha1.c' || echo './'`mono-sha1.c
rm -f .libs/mono-sha1.lo
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include 
-I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/incl
ude -I../.. -I../../mono -no-cpp-precomp -D_THREAD_SAFE -g -Wall -Wunused 
-Wmissing-prototypes -Wmissing-declarations -Wstrict-proto
types -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual 
-Wcast-align -Wwrite-strings -c mono-sha1.c -Wp,-MD,.deps
/mono-sha1.TPlo  -fno-common -DPIC -o .libs/mono-sha1.lo
mono-sha1.c:78:1: warning: "LITTLE_ENDIAN" redefined
In file included from /usr/include/machine/endian.h:30,
                 from /usr/include/sys/types.h:75,
                 from /usr/include/stdio.h:64,
                 from mono-sha1.c:73:
/usr/include/ppc/endian.h:72:1: warning: this is the location of the previous 
definition
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include 
-I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/incl
ude -I../.. -I../../mono -no-cpp-precomp -D_THREAD_SAFE -g -Wall -Wunused 
-Wmissing-prototypes -Wmissing-declarations -Wstrict-proto
types -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual 
-Wcast-align -Wwrite-strings -c mono-sha1.c -Wp,-MD,.deps
/mono-sha1.TPlo -o mono-sha1.o >/dev/null 2>&1
mv -f .libs/mono-sha1.lo mono-sha1.lo
source='monobitset.c' object='monobitset.lo' libtool=yes \
depfile='.deps/monobitset.Plo' tmpdepfile='.deps/monobitset.TPlo' \
depmode=gcc /bin/sh ../../depcomp \
/bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. 
-I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include   -I/sw/i
nclude/glib-2.0 -I/sw/lib/glib-2.0/include   -I../..    -I../../mono   -no-cpp-precomp 
-D_THREAD_SAFE   -g -Wall -Wunused -Wmissing-
prototypes -Wmissing-declarations -Wstrict-prototypes  -Wmissing-prototypes 
-Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-a
lign -Wwrite-strings -c -o monobitset.lo `test -f 'monobitset.c' || echo 
'./'`monobitset.c
rm -f .libs/monobitset.lo
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include 
-I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/incl
ude -I../.. -I../../mono -no-cpp-precomp -D_THREAD_SAFE -g -Wall -Wunused 
-Wmissing-prototypes -Wmissing-declarations -Wstrict-proto
types -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual 
-Wcast-align -Wwrite-strings -c monobitset.c -Wp,-MD,.dep
s/monobitset.TPlo  -fno-common -DPIC -o .libs/monobitset.lo
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include 
-I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/incl
ude -I../.. -I../../mono -no-cpp-precomp -D_THREAD_SAFE -g -Wall -Wunused 
-Wmissing-prototypes -Wmissing-declarations -Wstrict-proto
types -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual 
-Wcast-align -Wwrite-strings -c monobitset.c -Wp,-MD,.dep
s/monobitset.TPlo -o monobitset.o >/dev/null 2>&1
mv -f .libs/monobitset.lo monobitset.lo
source='strtod.c' object='strtod.lo' libtool=yes \
depfile='.deps/strtod.Plo' tmpdepfile='.deps/strtod.TPlo' \
depmode=gcc /bin/sh ../../depcomp \
/bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. 
-I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include   -I/sw/i
nclude/glib-2.0 -I/sw/lib/glib-2.0/include   -I../..    -I../../mono   -no-cpp-precomp 
-D_THREAD_SAFE   -g -Wall -Wunused -Wmissing-
prototypes -Wmissing-declarations -Wstrict-prototypes  -Wmissing-prototypes 
-Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-a
lign -Wwrite-strings -c -o strtod.lo `test -f 'strtod.c' || echo './'`strtod.c
rm -f .libs/strtod.lo
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include 
-I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/incl
ude -I../.. -I../../mono -no-cpp-precomp -D_THREAD_SAFE -g -Wall -Wunused 
-Wmissing-prototypes -Wmissing-declarations -Wstrict-proto
types -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual 
-Wcast-align -Wwrite-strings -c strtod.c -Wp,-MD,.deps/st
rtod.TPlo  -fno-common -DPIC -o .libs/strtod.lo
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include 
-I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/incl
ude -I../.. -I../../mono -no-cpp-precomp -D_THREAD_SAFE -g -Wall -Wunused 
-Wmissing-prototypes -Wmissing-declarations -Wstrict-proto
types -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual 
-Wcast-align -Wwrite-strings -c strtod.c -Wp,-MD,.deps/st
rtod.TPlo -o strtod.o >/dev/null 2>&1
mv -f .libs/strtod.lo strtod.lo
/bin/sh ../../libtool --mode=link gcc  -g -Wall -Wunused -Wmissing-prototypes 
-Wmissing-declarations -Wstrict-prototypes  -Wmissing-
prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align 
-Wwrite-strings  -pthread -o libmonoutils.la   mono-hash.lo
mono-md5.lo mono-sha1.lo monobitset.lo strtod.lo  -lpthread
rm -fr .libs/libmonoutils.la .libs/libmonoutils.* .libs/libmonoutils.*
ar cru .libs/libmonoutils.al mono-hash.lo mono-md5.lo mono-sha1.lo monobitset.lo 
strtod.lo
ranlib .libs/libmonoutils.al
ranlib: warning: cannot infer operation mode from `.libs/libmonoutils.al'
ranlib: you must specify a MODE
Try `ranlib --help' for more information.
make[3]: *** [libmonoutils.la] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

-----Original Message-----
From: Paolo Molaro [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 07, 2003 8:31 AM
To: [EMAIL PROTECTED]
Subject: Re: [Mono-list] OS/X build error for glib-2.0


On 02/06/03 Steve Mentzer wrote:
> Running pkg-config yields the following results
> 
> [localhost:~/dotnet/mono] stevem% pkg-config --libs glib-2.0
>  -L/sw/lib -lglib-2.0 -lintl -liconv  
> 
> Here is a dump of the build process. Can someone help?
> 
> TIA!
> 
> *Warning**: I am going to run `configure' with no arguments.
> If you wish to pass any to it, please specify them on the
> `./autogen.sh' command line.
> 
> Running libtoolize...
> You should add the contents of `/sw/share/aclocal/libtool.m4' to `aclocal.m4'.
[...]
> checking for pkg-config... /sw/bin/pkg-config
> ./configure: line 7995: syntax error near unexpected token 
>`PKG_CHECK_MODULES(BASE_DEPENDENCIES,'
> ./configure: line 7995: `PKG_CHECK_MODULES(BASE_DEPENDENCIES, glib-2.0 >= 
>$GLIB_REQUIRED_VERSION)'
> 

pkgconfig also installs a file named pkg.m4.
aclocal needs the file to properly build a configure.in file,
if it isn't found automatically, you can specify the ACLOCAL_FLAGS
env to autogen.sh with something like:

ACLOCAL_FLAGS="-I /path/where/pkg.m4/is/located" ./autogen.sh

or just run aclocal -I /path by hand and then automake, autoconf etc.

lupus

-- 
-----------------------------------------------------------------
[EMAIL PROTECTED]                                     debian/rules
[EMAIL PROTECTED]                             Monkeys do it better
_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list
_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to