Bug #26048 Can't compile MySQL 5.0.34 on Cygwin
Submitted: 3 Feb 2007 11:35 Modified: 3 Feb 2007 13:14
Reporter: Sebastian Nohn Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.0.34 OS:CYGWIN_NT-5.1 1.5.24
Assigned to: CPU Architecture:Any

[3 Feb 2007 11:35] Sebastian Nohn
Description:
/factorial.Tpo"; exit 1; fi
In file included from sanity.c:3:
../include/my_global.h:545: warning: weak declaration of '__cxa_pure_virtual' no
t supported
In file included from my_main.c:10:
../include/my_global.h:545: warning: weak declaration of '__cxa_pure_virtual' no
t supported
In file included from factorial.c:5:
../include/my_global.h:545: warning: weak declaration of '__cxa_pure_virtual' no
t supported
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include    -DDBUG_OFF -Wim
plicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wforma
t -Wparentheses -Wsign-compare -Wwrite-strings -Wunused -mtune=pentium-m -march=
pentium-m -O3 -fno-omit-frame-pointer   -MT dbug_analyze.o -MD -MP -MF ".deps/db
ug_analyze.Tpo" -c -o dbug_analyze.o dbug_analyze.c; \
        then mv -f ".deps/dbug_analyze.Tpo" ".deps/dbug_analyze.Po"; else rm -f 
".deps/dbug_analyze.Tpo"; exit 1; fi
/usr/bin/rm -f example1.r
In file included from dbug_analyze.c:52:
../include/my_global.h:545: warning: weak declaration of '__cxa_pure_virtual' no
t supported
/usr/bin/sed -e 's!\\!\\\\!g' example1.c > example1.r
/usr/bin/rm -f example2.r
/usr/bin/rm -f example3.r
/usr/bin/sed -e 's!\\!\\\\!g' example2.c > example2.r
/usr/bin/sed -e 's!\\!\\\\!g' example3.c > example3.r
/usr/bin/rm -f main.r
/usr/bin/rm -f factorial.r
/usr/bin/sed -e 's!\\!\\\\!g' main.c > main.r
/usr/bin/sed -e 's!\\!\\\\!g' factorial.c > factorial.r
gcc -DDBUG_OFF -Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar
-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Wunused -mtun
e=pentium-m -march=pentium-m -O3 -fno-omit-frame-pointer      factorial.c   -o f
actorial
factorial.c:5:23: my_global.h: No such file or directory
factorial.c: In function `factorial':
factorial.c:10: warning: implicit declaration of function `DBUG_ENTER'
factorial.c:11: warning: implicit declaration of function `DBUG_PRINT'
factorial.c:11: warning: left-hand operand of comma expression has no effect
factorial.c:15: warning: left-hand operand of comma expression has no effect
factorial.c:16: warning: implicit declaration of function `DBUG_RETURN'
factorial.c:17: warning: no return statement in function returning non-void
factorial.c:17: warning: control reaches end of non-void function
rm -f libdbug.a
make[2]: *** [factorial] Error 1
make[2]: *** Waiting for unfinished jobs....
ar cru libdbug.a dbug.o sanity.o 
ranlib libdbug.a
make[2]: Leaving directory `/cygdrive/c/temp/mysql-5.0.34/dbug'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/temp/mysql-5.0.34'
make: *** [all] Error 2

How to repeat:
$ wget ftp://ftp.mysql.com/pub/mysql/src/mysql-5.0.34.tar.gz
$ tar xzvf mysql-5.0.34.tar.gz
$ cd mysql-5.0.34
$ BUILD/compile-pentium
[3 Feb 2007 13:14] Valeriy Kravchuk
Please do not submit the same bug more than once. Your bug report, http://bugs.mysql.com/bug.php?id=25873, already describes this very problem (for 5.0.33). I'll re-open that bug instead.