Subject: mysql4-client on FreeBSD-4-STABLE
To: None <>
From: Michal Pasternak <>
List: tech-pkg
Date: 03/17/2004 19:10:09
requires to be built with USE_GNU_READLINE=yes:

mysql.o: In function main':
mysql.o(.text+0x3eb): undefined reference to read_history'
mysql.o: In function mysql_end(int)':
mysql.o(.text+0x4b9): undefined reference to write_history'
mysql.o: In function read_lines(bool)':
mysql.o(.text+0xcc9): undefined reference to add_history'
mysql.o(.text+0xdac): undefined reference to readline'
mysql.o: In function add_line(String &, char *, char *)':
mysql.o(.text+0x1004): undefined reference to add_history'
mysql.o: In function initialize_readline(char *)':
mysql.o(.text+0x139b): undefined reference to rl_readline_name'
mysql.o(.text+0x13a1): undefined reference to
mysql.o(.text+0x13ab): undefined reference to rl_completion_entry_function'
mysql.o: In function new_mysql_completion(char *, int, int)':
mysql.o(.text+0x13dc): undefined reference to completion_matches'
gmake[2]: *** [mysql] Błąd 1
gmake[2]: Leaving directory
gmake[1]: *** [all-recursive] Błąd 1
gmake[1]: Leaving directory
gmake: *** [all] Błąd 2
*** Error code 2

bmake: stopped in /build/

After adding USE_GNU_READLINE=yes to Makefile:
===> Packaging mysql-client-4.0.18
===> Building binary package for mysql-client-4.0.18
Creating package /usr/pkgsrc/packages-FreeBSD-STABLE/All/mysql-client-4.0.18.tgz


I have no idea about FreeBSD-current, perhaps xtraeme@ could check this.

In case this is needed only on FreeBSD-4, you could write it this way:

.if ${OPSYS} == "FreeBSD" && ${LOWER_OPSYS_VERSUFFIX} == "4"

Also, mysql4-configure sucks badly with:

checking "how to check if pid exists"... configure: error: Could not find
the right ps switches. Which OS is this ?. See the Installation chapter in
the Reference Manual.
*** Error code 1
... sometimes it works, sometimes it doesnt, but that's *another* story.

Please commit this before freeze,
Michal Pasternak :: ::
Trying to be happy is like trying to build a machine for which the only
specification is that it should run noiselessly.