Since 4.1.8a, I've been unable to compile all new releases (including both the 4.1.x and 5.x versions) on Solaris 8 using gcc 3.4.2.
Problem seems to be with zlib (I have version 1.2.3 installed). configure is run with /usr/local
Problem comes in linking libmysqlclient.so, with scads of these errors:
Text relocation remains referenced against symbol offset in file
deflateEnd 0x68 /usr/local/lib/libz.a(compress.o
)
deflateEnd 0x88 /usr/local/lib/libz.a(compress.o
)
deflateEnd 0x104 /usr/local/lib/libz.a(compress.o
)
deflateEnd 0x124 /usr/local/lib/libz.a(compress.o
)
compressBound 0x3bc /usr/local/lib/libz.a(deflate.o)
compressBound 0x3c0 /usr/local/lib/libz.a(deflate.o)
deflateInit_ 0x34 /usr/local/lib/libz.a(compress.o
)
deflateInit_ 0xd0 /usr/local/lib/libz.a(compress.o
)
deflate 0x50 /usr/local/lib/libz.a(compress.o
)
deflate 0xec /usr/local/lib/libz.a(compress.o
)
deflate 0x1420 /usr/local/lib/libz.a(deflate.o)
Again, 4.1.8a built without such errors, but every later release fails.