Other compilation problems [calculation/test, tax/us/test/]

Dave Peticolas dave@krondo.com
23 Nov 2001 14:09:26 -0800


--=-IwgLynI/DKaEZc+QqHR+
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Fri, 2001-11-23 at 14:07, Josh Sled wrote:
> In src/calculation/test/:
>=20
> /bin/sh ../../../libtool --mode=3Dlink gcc  -O3 -Wall -Wunused  -Wall -Wn=
o-unused -Werror-implicit-function-declaration -g -g -o test-link  test-lin=
k.o ../libgncmod-calculation.la  -lpopt -lm  -lm
> gcc -O3 -Wall -Wunused -Wall -Wno-unused -Werror-implicit-function-declar=
ation -g -g -o .libs/test-link test-link.o  ../.libs/libgncmod-calculation.=
so -lm -lm /usr/lib/libpopt.so -lm -lm -Wl,--rpath -Wl,/opt/gnucash-unstabl=
e/lib/gnucash
> ../.libs/libgncmod-calculation.so: undefined reference to `g_malloc0'
> ../.libs/libgncmod-calculation.so: undefined reference to `g_realloc'
> ../.libs/libgncmod-calculation.so: undefined reference to `g_strdup'
> ../.libs/libgncmod-calculation.so: undefined reference to `g_free'
>=20
> jsled's fix: add $(GLIB_LIBS) to 'test_link_module_LDFLAGS'.
>=20
> ------
>=20
> make[3]: Entering directory `/mnt/b/jsled/gnucash-budget/gnucash/src/tax/=
us/test'
> gcc -DHAVE_CONFIG_H -I. -I. -I../../../..     -O3 -Wall -Wunused  -Wall -=
Wno-unused -Werror-implicit-function-declaration -g -c test-link-module.c
> /bin/sh ../../../../libtool --mode=3Dlink gcc  -O3 -Wall -Wunused  -Wall =
-Wno-unused -Werror-implicit-function-declaration -g -g -o test-link-module=
  test-link-module.o ../libgncmod-tax-us.la  -lpopt -lm  -lm
> mkdir .libs
> gcc -O3 -Wall -Wunused -Wall -Wno-unused -Werror-implicit-function-declar=
ation -g -g -o .libs/test-link-module test-link-module.o  ../.libs/libgncmo=
d-tax-us.so -lm -lm /usr/lib/libpopt.so -lm -lm -Wl,--rpath -Wl,/opt/gnucas=
h-unstable/lib/gnucash
> ../.libs/libgncmod-tax-us.so: undefined reference to `g_strdup_printf'
> ../.libs/libgncmod-tax-us.so: undefined reference to `g_strdup'
> ../.libs/libgncmod-tax-us.so: undefined reference to `gh_eval_str'
> ../.libs/libgncmod-tax-us.so: undefined reference to `g_free'
> collect2: ld returned 1 exit status
>=20
> jsled's fix: add $(GLIB_LIBS) and $(GUILE_LIBS) to 'test_link_module_LDFL=
AGS'.
>=20
>=20
> Better fixes?

Those look right to me. Feel free to commit them.

dave


--=-IwgLynI/DKaEZc+QqHR+
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQA7/skW5effKKCmfpIRArVoAKDqFIk6LV1ncqJzWRkQgQmgAUIKCwCfT72+
riCwKJRxNJWoi2sqTMRdS20=
=7ngo
-----END PGP SIGNATURE-----

--=-IwgLynI/DKaEZc+QqHR+--