Hi everyone,
When trying to compile some libs and programs today I got a very rude
awakening:
gcc -g -O2 -Wall -fomit-frame-pointer -funroll-loops -g -O2 -Wall
-fomit-frame-pointer -funroll-loops -march=i586 -mcpu=pentiumpro -o
.libs/ogle_audio audio_out.o parse_config.o audio_config.o conversion.o
audio_play.o decode.o decode_a52.o decode_lpcm.o decode_mpeg.o
../common/libcommon.a ../ogle/.libs/libmsgevents.so
../libogleao/.libs/libogleao.al /usr/lib/libasound.so -ldl -lpthread
-L/usr/local/lib /usr/local/lib/liba52.a /usr/lib/libmad.so -L/usr/lib
/usr/lib/libxml2.so -L/usr/X11R6/lib -lz -lm -lrt -Wl,--rpath
-Wl,/usr/local/lib/ogle -Wl,--rpath -Wl,/usr/local/lib
../libogleao/.libs/libogleao.al(alsa_audio.lo): In function `alsa_init':
/home/jbailey/src/ogle-0.8.5/libogleao/alsa_audio.c:145: undefined
reference to `assert'
/home/jbailey/src/ogle-0.8.5/libogleao/alsa_audio.c:146: undefined
reference to `assert'
collect2: ld returned 1 exit status
make[1]: *** [ogle_audio] Error 1
make[1]: Leaving directory `/home/jbailey/src/ogle-0.8.5/ac3'
make: *** [all-recursive] Error 1
Yes, I realize this version of ogle I'm trying to compile is quite old;
however, it works, and I am happy with that. I just want it to compile!
Is there a specific -L or -l flag I should add to my $CFLAGS when I
run the configure script (or when editing makefiles if necessary)?
In case this makes a difference:
gcc (GCC) 3.2
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
glibc-html-2.2.5-151
glibc-info-2.2.5-151
glibc-2.2.5-152
glibc-locale-2.2.5-151
glibc-profile-2.2.5-151
glibc-devel-2.2.5-151
The box is running SuSE 8.1 Professional.
Any help is greatly appreciated! Also, I apologize if I've posted to
the wrong group. If I have, please inform me which groups I should post
this kind of problem to and I will post to those groups in the future.
John