[vorbis] Ogg / Vorbis Compiling under W32 with MingW ** Problem **

Stephen So s.so at griffith.edu.au
Sat Mar 13 16:00:10 PST 2004



Took me a while to find this problem.  Apparently, ld.exe in mingw32 
uses the switch --no-undefined while in the Makefile, we got -no-undefined.

Just go to the Makefile in /src and find the tag 'libogg_la_LDFLAGS'.  
Put an extra '-' at the front of -no-undefined. :)

Best regards,

Steve.

<p>owner-vorbis at xiph.org wrote:

> $ make
> Making all in src
> make[1]: Entering directory `/home/resT1/libogg-1.1/src'
> source='framing.c' object='framing.lo' libtool=yes \
> depfile='.deps/framing.Plo' tmpdepfile='.deps/framing.TPlo' \
> depmode=gcc3 /bin/sh ../depcomp \
> /bin/sh ../libtool --mode=compile gcc -DPACKAGE_NAME=\"\" 
> -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" 
> -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libogg\" -DVERSION=\"1.1\" 
> -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 
> -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 
> -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 
> -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 
> -DSIZEOF_LONG=4 -DSIZEOF_LONG_LONG=8  -I. -I. -I../include 
> -I../include    -O20 -fsigned-char -g -O2 -c -o framing.lo `test -f 
> 'framing.c' || echo './'`framing.c
> rm -f .libs/framing.lo
> gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" 
> -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libogg\" 
> -DVERSION=\"1.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 
> -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 
> -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 
> -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DSIZEOF_SHORT=2 
> -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DSIZEOF_LONG_LONG=8 -I. -I. 
> -I../include -I../include -O20 -fsigned-char -g -O2 -c framing.c -MT 
> framing.lo -MD -MP -MF .deps/framing.TPlo  -DDLL_EXPORT -DPIC -o 
> .libs/framing.lo
> gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" 
> -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libogg\" 
> -DVERSION=\"1.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 
> -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 
> -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 
> -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DSIZEOF_SHORT=2 
> -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DSIZEOF_LONG_LONG=8 -I. -I. 
> -I../include -I../include -O20 -fsigned-char -g -O2 -c framing.c -MT 
> framing.lo -MD -MP -MF .deps/framing.TPlo -o framing.o >/dev/null 2>&1
> mv -f .libs/framing.lo framing.lo
> source='bitwise.c' object='bitwise.lo' libtool=yes \
> depfile='.deps/bitwise.Plo' tmpdepfile='.deps/bitwise.TPlo' \
> depmode=gcc3 /bin/sh ../depcomp \
> /bin/sh ../libtool --mode=compile gcc -DPACKAGE_NAME=\"\" 
> -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" 
> -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libogg\" -DVERSION=\"1.1\" 
> -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 
> -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 
> -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 
> -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 
> -DSIZEOF_LONG=4 -DSIZEOF_LONG_LONG=8  -I. -I. -I../include 
> -I../include    -O20 -fsigned-char -g -O2 -c -o bitwise.lo `test -f 
> 'bitwise.c' || echo './'`bitwise.c
> rm -f .libs/bitwise.lo
> gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" 
> -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libogg\" 
> -DVERSION=\"1.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 
> -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 
> -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 
> -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DSIZEOF_SHORT=2 
> -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DSIZEOF_LONG_LONG=8 -I. -I. 
> -I../include -I../include -O20 -fsigned-char -g -O2 -c bitwise.c -MT 
> bitwise.lo -MD -MP -MF .deps/bitwise.TPlo  -DDLL_EXPORT -DPIC -o 
> .libs/bitwise.lo
> gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" 
> -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libogg\" 
> -DVERSION=\"1.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 
> -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 
> -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 
> -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DSIZEOF_SHORT=2 
> -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DSIZEOF_LONG_LONG=8 -I. -I. 
> -I../include -I../include -O20 -fsigned-char -g -O2 -c bitwise.c -MT 
> bitwise.lo -MD -MP -MF .deps/bitwise.TPlo -o bitwise.o >/dev/null 2>&1
> mv -f .libs/bitwise.lo bitwise.lo
> /bin/sh ../libtool --mode=link gcc  -O20 -fsigned-char -g -O2   -o 
> libogg.la -rpath /usr/local/lib -no-undefined -version-info 5:0:5 
> framing.lo bitwise.lo rm -fr .libs/libogg.la .libs/libogg.* 
> .libs/libogg.*
> generating symbol list for `libogg.la'
> dlltool --export-all --exclude-symbols 
> DllMain at 12,_cygwin_dll_entry at 12,_cygwin_noncygwin_dll_entry at 12,DllMainCRTStartup at 12,DllEntryPoint at 12 
> --output-def .libs/libogg-0.dll-def  framing.lo bitwise.lo
> sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < 
> .libs/libogg-0.dll-def > .libs/libogg.exp
> if test "x`sed 1q .libs/libogg.exp`" = xEXPORTS; then cp 
> .libs/libogg.exp .libs/libogg-0.dll-def; else echo EXPORTS > 
> .libs/libogg-0.dll-def; _lt_hint=1; cat .libs/libogg.exp | while read 
> symbol; do set dummy $symbol; case $# in 2) echo " $2 @ $_lt_hint ; " 
> >> .libs/libogg-0.dll-def;; 4) echo " $2 $3 $4 ; " >> 
> .libs/libogg-0.dll-def; _lt_hint=`expr $_lt_hint - 1`;; *) echo " $2 @ 
> $_lt_hint $3 ; " >> .libs/libogg-0.dll-def;; esac; _lt_hint=`expr 1 + 
> $_lt_hint`; done; fi
> gcc -Wl,--base-file,.libs/libogg-0.dll-base 
> -Wl,-e,_DllMainCRTStartup at 12 -o .libs/libogg-0.dll  framing.lo 
> bitwise.lo 
> c:\MingW\bin\..\lib\gcc-lib\mingw32\3.2.3\..\..\..\..\mingw32\bin\ld.exe: 
> warning: cannot find entry symbol _DllMainCRTStartup at 12; defaulting to 
> 00401000
> c:/MingW/bin/../lib/gcc-lib/mingw32/3.2.3/../../../libmingw32.a(main.o)(.text+0x97):main.c: 
> undefined reference to `WinMain at 16'
> make[1]: *** [libogg.la] Error 1
> make[1]: Leaving directory `/home/resT1/libogg-1.1/src'
> make: *** [all-recursive] Error 1
>
> This Time the error is different.
> How can I fix that?
>
> --- >8 ----
> List archives:  http://www.xiph.org/archives/
> Ogg project homepage: http://www.xiph.org/ogg/
> To unsubscribe from this list, send a message to 
> 'vorbis-request at xiph.org'
> containing only the word 'unsubscribe' in the body.  No subject is 
> needed.
> Unsubscribe messages sent to the list will be ignored/filtered.
>


-- 
-------------------------------------------------
Stephen So PhD Student
Signal Processing Laboratory
School of Microelectronic Engineering
Faculty of Engineering and Information Technology
Nathan Campus Griffith University
Brisbane QLD Australia 4111.

Phone: +61-7-387 53754
Fax:   +61-7-387 55198
E-mail: s.so at griffith.edu.au
-------------------------------------------------

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.




More information about the Vorbis mailing list