Compillation error (Fixed)

This section is now closed.
Forum rules
Audacity 1.3.x is now obsolete. Please use the current Audacity 2.x.x package for your distribution or compile Audacity from the source code.
Locked
tadi70
Posts: 2
Joined: Sat Jul 25, 2009 9:56 am
Operating System: Please select

Compillation error (Fixed)

Post by tadi70 » Sat Jul 25, 2009 10:21 am

Hello there,

Trying to compile Audacity 1.3.8 on Slackware with gcc 4.3.3:

make[3]: Entering directory `/tmp/slackpack/audacity-1.3.8/audacity-1.3.8/lib-src/twolame/libtwolame'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../build -I ../build/ -O2 -march=i686 -mtune=i686 -std=c99 -Wunused -Wall -g -Werror -pedantic -MT crc.lo -MD -MP -MF .deps/crc.Tpo -c -o crc.lo crc.c
gcc -DHAVE_CONFIG_H -I. -I../build -I ../build/ -O2 -march=i686 -mtune=i686 -std=c99 -Wunused -Wall -g -Werror -pedantic -MT crc.lo -MD -MP -MF .deps/crc.Tpo -c crc.c -fPIC -DPIC -o .libs/crc.o
cc1: warnings being treated as errors
bitbuffer.h:47: error: inline function 'buffer_sstell' declared but never defined
bitbuffer.h:46: error: inline function 'buffer_putbits' declared but never defined
bitbuffer.h:45: error: inline function 'buffer_put1bit' declared but never defined
make[3]: *** [crc.lo] Error 1
make[3]: Leaving directory `/tmp/slackpack/audacity-1.3.8/audacity-1.3.8/lib-src/twolame/libtwolame'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/slackpack/audacity-1.3.8/audacity-1.3.8/lib-src/twolame'
make[1]: *** [libtwolame-recursive] Error 2
make[1]: Leaving directory `/tmp/slackpack/audacity-1.3.8/audacity-1.3.8/lib-src'
make: *** [audacity] Error 2


Any idea?
Thanks,
tadi

tadi70
Posts: 2
Joined: Sat Jul 25, 2009 9:56 am
Operating System: Please select

Re: Compillation error

Post by tadi70 » Sat Jul 25, 2009 11:24 am

Fixed!!!
After some time spent I managed to fix that compilation error. Here is the patch I did:

--- lib-src/twolame/libtwolame/common.h 2009-07-16 06:27:35.000000000 +0300
+++ lib-src/twolame/libtwolame/common.h 2009-07-25 13:52:57.412328582 +0300
@@ -41,7 +41,7 @@
* extern inline. This fix appears earlier in Apple GCC than in main-line GCC
*/
#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
-#define NO_DLL_INLINE extern inline
+#define NO_DLL_INLINE extern
#elif (__APPLE_CC__ >= 5465)
#define NO_DLL_INLINE extern inline
# else

Locked