[Mono-list] OS/X build error for glib-2.0

Steve Mentzer steve.mentzer@mullinconsulting.com
Fri, 7 Feb 2003 09:52:28 -0800


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=3D'mono-md5.c' object=3D'mono-md5.lo' libtool=3Dyes \
depfile=3D'.deps/mono-md5.Plo' tmpdepfile=3D'.deps/mono-md5.TPlo' \
depmode=3Dgcc /bin/sh ../../depcomp \
/bin/sh ../../libtool --mode=3Dcompile 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=3D'mono-sha1.c' object=3D'mono-sha1.lo' libtool=3Dyes \
depfile=3D'.deps/mono-sha1.Plo' tmpdepfile=3D'.deps/mono-sha1.TPlo' \
depmode=3Dgcc /bin/sh ../../depcomp \
/bin/sh ../../libtool --mode=3Dcompile 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=3D'monobitset.c' object=3D'monobitset.lo' libtool=3Dyes \
depfile=3D'.deps/monobitset.Plo' tmpdepfile=3D'.deps/monobitset.TPlo' \
depmode=3Dgcc /bin/sh ../../depcomp \
/bin/sh ../../libtool --mode=3Dcompile 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=3D'strtod.c' object=3D'strtod.lo' libtool=3Dyes \
depfile=3D'.deps/strtod.Plo' tmpdepfile=3D'.deps/strtod.TPlo' \
depmode=3Dgcc /bin/sh ../../depcomp \
/bin/sh ../../libtool --mode=3Dcompile 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=3Dlink 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:lupus@ximian.com]
Sent: Friday, February 07, 2003 8:31 AM
To: mono-list@lists.ximian.com
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
>=20
> [localhost:~/dotnet/mono] stevem% pkg-config --libs glib-2.0
>  -L/sw/lib -lglib-2.0 -lintl -liconv =20
>=20
> Here is a dump of the build process. Can someone help?
>=20
> TIA!
>=20
> *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.
>=20
> 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 =
>=3D $GLIB_REQUIRED_VERSION)'
>=20

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=3D"-I /path/where/pkg.m4/is/located" ./autogen.sh

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

lupus

--=20
-----------------------------------------------------------------
lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better
_______________________________________________
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list