In the last episode (May 22), Jeremy Zawodny said:
> Has anyone built MySQL 4.x from the BitKeeper tree using LinuxThreads
> on FreeBSD?
> If so, how'd you do it?
It looks like someone is in the process of removing getopt_long() usage
from the commandline tools. They're doing it backwards, though,
removing mysys/getopt1.c first, then fixing the programs that break.
You'll have to comment myisam/mi_test1, myisam/myisampack, and
tools/mysqlmanager out of the corresponding Makefiles until they are
I ran configure with
CFLAGS="-D__USE_UNIX98 -D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads
-felide-constructors -fno-rtti -fno-exceptions"
--with-named-thread-libs="-L/usr/local/lib -llthread -llgcc_r"
(same flags as the mysql323-server port adds) and the resulting binary
seems to work fine.