Tue 31 Jul 2007 05:49:26 PM UTC, comment #6:
thanks Sandr. Here's my Makefile.am followed by the error. I get the same error after running autogen.sh and configure, make, make check.
## Process this fill with automake to generate Makefile.in
#
# Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
AUTOMAKE_OPTIONS = dejagnu
AM_CPPFLAGS = -I.. \
-I$(srcdir) \
-I$(top_srcdir)/testsuite \
-I$(top_srcdir)/libbase \
-I$(top_srcdir)/libgeometry \
-I$(top_srcdir)/server \
-I$(top_srcdir)/server/parser \
-I$(top_srcdir)/server/vm \
$(FFMPEG_CFLAGS) \
$(BOOST_CFLAGS) \
$(NULL)
check_PROGRAMS = \
MatrixTest \
PointTest \
EdgeTest \
PropertyListTest \
GetterSetterTest \
as_prop_flagsTest \
DisplayListTest \
$(NULL)
CLEANFILES = \
testrun.sum \
testrun.log \
gnash-dbg.log \
site.exp.bak \
gnash-dbg.log \
$(NULL)
GNASH_LIBS = \
$(top_builddir)/server/libgnashserver.la \
$(top_builddir)/libbase/libgnashbase.la \
$(top_builddir)/libamf/libgnashamf.la \
$(NULL)
$(FFMPEG_LIBS)
if USE_FFMPEG_ENGINE
GNASH_LIBS += $(FFMPEG_LIBS)
endif
MatrixTest_SOURCES = MatrixTest.cpp
MatrixTest_LDADD = \
$(GNASH_LIBS) \
$(NULL)
PointTest_SOURCES = PointTest.cpp
PointTest_LDADD = \
$(GNASH_LIBS) \
$(NULL)
EdgeTest_SOURCES = EdgeTest.cpp
EdgeTest_LDADD = \
$(GNASH_LIBS) \
$(NULL)
PropertyListTest_SOURCES = PropertyListTest.cpp
PropertyListTest_LDADD = \
$(GNASH_LIBS) \
$(NULL)
GetterSetterTest_SOURCES = GetterSetterTest.cpp
GetterSetterTest_LDADD = \
$(GNASH_LIBS) \
$(NULL)
as_prop_flagsTest_SOURCES = as_prop_flagsTest.cpp
as_prop_flagsTest_LDADD = \
$(GNASH_LIBS) \
$(NULL)
DisplayListTest_SOURCES = DisplayListTest.cpp
DisplayListTest_LDADD = \
$(GNASH_LIBS) \
$(NULL)
TEST_DRIVERS = ../simple.exp
TEST_CASES = \
$(check_PROGRAMS) \
$(NULL)
check-DEJAGNU: site-update $(TEST_CASES)
@runtest=$(RUNTEST); \
if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
$$runtest $(RUNTESTFLAGS) $(TEST_DRIVERS); \
else \
echo "WARNING: could not find \`runtest'" 1>&2; \
for i in "$(TEST_CASES)"; do \
$(SHELL) $$i; \
done; \
fi
site-update: site.exp
@rm -fr site.exp.bak
@cp site.exp site.exp.bak
@sed -e '/testcases/d' site.exp.bak > site.exp
@echo "# This is a list of the pre-compiled testcases" >> site.exp
@echo "set testcases \"$(TEST_CASES)\"" >> site.exp
the error:
make[3]: Entering directory `/home/brianokeefe/gnash/testsuite/server'
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I.. -I. -I../../testsuite -I../../libbase -I../../libgeometry -I../../server -I../../server/parser -I../../server/vm -I/usr/local/include -I/usr/local/include -I/usr/include -g -O2 -pthread -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -MT MatrixTest.o -MD -MP -MF ".deps/MatrixTest.Tpo" -c -o MatrixTest.o MatrixTest.cpp; \
then mv -f ".deps/MatrixTest.Tpo" ".deps/MatrixTest.Po"; else rm -f ".deps/MatrixTest.Tpo"; exit 1; fi
/bin/sh ../../libtool --tag=CXX --mode=link g++ -g -O2 -pthread -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wl,--as-needed -o MatrixTest MatrixTest.o ../../server/libgnashserver.la ../../libbase/libgnashbase.la ../../libamf/libgnashamf.la -lrt -lm
mkdir .libs
g++ -g -O2 -pthread -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wl,--as-needed -o .libs/MatrixTest MatrixTest.o ../../server/.libs/libgnashserver.so -L/usr/lib -L/usr/local/lib /home/brianokeefe/gnash/libamf/.libs/libgnashamf.so /home/brianokeefe/gnash/libgeometry/.libs/libgnashgeo.so /usr/lib/libxml2.so /usr/lib/libfreetype.so -lfontconfig ../../libbase/.libs/libgnashbase.so ../../libamf/.libs/libgnashamf.so /home/brianokeefe/gnash/libbase/.libs/libgnashbase.so /usr/lib/libjpeg.so /usr/lib/libcurl.so -lgssapi_krb5 -lkrb5 -lk5crypto -lkrb5support -lcom_err -lresolv /usr/lib/libidn.so -lssl -lcrypto -lGL -lGLU /usr/lib/libltdl.so -lboost_date_time -lboost_thread -lpthread -ldts -lavformat -lavcodec -lz /usr/lib/liba52.so /usr/lib/libmp3lame.so -lxvidcore -lfaac -lfaad -ldl -lX11 -lXext /usr/lib/libvorbisenc.so /usr/lib/libvorbis.so -lavutil /usr/lib/libtheora.so /usr/lib/libogg.so -lgsm -ldc1394_control -lrt -lm
../../server/.libs/libgnashserver.so: undefined reference to `avcodec_decode_audio2'
collect2: ld returned 1 exit status
make[3]: *** [MatrixTest] Error 1
make[3]: Leaving directory `/home/brianokeefe/gnash/testsuite/server'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/home/brianokeefe/gnash/testsuite/server'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/brianokeefe/gnash/testsuite'
make: *** [check-recursive] Error 1
|