Unable to compile vorbis-tools due to problems with libgetopt
I'm using MacOS X 10.1
cc -fno-common -O4 -Wall -fsigned-char -ffast-math -o oggenc oggenc.o audio.o
encode.o platform.o -L/usr/local/lib -lvorbisenc -lvorbis -lm -logg
../share/libutf8.a ../share/libgetopt.a
/usr/bin/ld: multiple definitions of symbol _getopt
/usr/lib/libm.dylib(getopt.o) definition of _getopt
../share/libgetopt.a(getopt.o) definition of _getopt in section (__TEXT,__text)
/usr/bin/ld: multiple definitions of symbol _optarg
/usr/lib/libm.dylib(getopt.o) definition of _optarg
../share/libgetopt.a(getopt.o) definition of _optarg in section (__DATA,__common)
/usr/bin/ld: multiple definitions of symbol _opterr
/usr/lib/libm.dylib(getopt.o) definition of _opterr
../share/libgetopt.a(getopt.o) definition of _opterr in section (__DATA,__data)
/usr/bin/ld: multiple definitions of symbol _optind
/usr/lib/libm.dylib(getopt.o) definition of _optind
../share/libgetopt.a(getopt.o) definition of _optind in section (__DATA,__data)
/usr/bin/ld: multiple definitions of symbol _optopt
/usr/lib/libm.dylib(getopt.o) definition of _optopt
../share/libgetopt.a(getopt.o) definition of _optopt in section (__DATA,__data)
make[2]: *** [oggenc] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1