View Post - post9745
RE: RE: MySQL client package looks for curses library
Yes, that appears to solve the curses problem.

There is still the problem that readline is not built.  You have to run
bmake in the readline directory and then restart bmake in the parent.
Also in the mysql5-server package readline is not even configured so
there is no Makefile at all.

Thanx
Tim

-----Original Message-----
From: Christian Leutloff [mailto:christian.leutloff@xoxind.de] 
Sent: Thursday, June 26, 2008 8:20 AM
To: general-pkgsrc
Subject: Re: RE: MySQL client package looks for curses library

> Here is the relevant output
> 
> Making all in client
> gmake[2]: Entering directory
> `/pkgsrc/databases/mysql5-client/work/mysql-5.0.51/client'
> cd .. && /usr/pkg/bin/gmake  am--refresh
> gmake[3]: Entering directory
> `/pkgsrc/databases/mysql5-client/work/mysql-5.0.51'
> /bin/sh ./config.status --recheck
> gmake[3]: Leaving directory
> `/pkgsrc/databases/mysql5-client/work/mysql-5.0.51'
> /bin/sh ../libtool --preserve-dup-deps --tag=CXX --mode=link c++
> -DDBUG_OFF -O2 -DUSE_OLD_FUNCTIONS -I/usr/pkg/include -I/usr/include
> -fno-implicit-templates -fno-exceptions -fno-rtti
> -Wl,-R/usr/pkg/lib/mysql -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib
> -Wl,-R/usr/lib  -o mysql  mysql.o readline.o sql_string.o
> completion_hash.o ../cmd-line-utils/readline/libreadline.a -lcurses
> -ltermcap ../libmysql/libmysqlclient.la  -lsocket -lm  -L/usr/pkg/lib
> -lssl -lcrypto -L/usr/pkg/lib -lz 
> c++ -DDBUG_OFF -O2 -DUSE_OLD_FUNCTIONS
> -I/pkgsrc/databases/mysql5-client/work/.buildlink/include
> -fno-implicit-templates -fno-exceptions -fno-rtti
> -Wl,-R/usr/pkg/lib/mysql -Wl,-R/usr/pkg/lib -o .libs/mysql mysql.o
> readline.o sql_string.o completion_hash.o
> -L/pkgsrc/databases/mysql5-client/work/.buildlink/lib
> ../cmd-line-utils/readline/libreadline.a -lcurses -ltermcap
> ../libmysql/.libs/libmysqlclient.so -lsocket -lm -lssl -lcrypto
> /pkgsrc/databases/mysql5-client/work/.buildlink/lib/libz.so
-Wl,--rpath
> -Wl,/usr/pkg/lib/mysql -Wl,--rpath
> -Wl,/pkgsrc/databases/mysql5-client/work/.buildlink/lib
> /usr/qnx632/host/qnx6/x86/usr/bin/i386-pc-nto-qnx6.3.0-ld: cannot find
> -lcurses
> cc: /usr/qnx632/host/qnx6/x86/usr/bini386-pc-nto-qnx6.3.0-ld error 1
> gmake[2]: *** [mysql] Error 1
> gmake[2]: Leaving directory
> `/pkgsrc/databases/mysql5-client/work/mysql-5.0.51/client'
> gmake[1]: 888 [all-recursive] Error 1
> gmake[1]: Leaving directory
> `/pkgsrc/databases/mysql5-client/work/mysql-5.0.51'
> gmake: *** [all] Error 2
> *** Error code 2

why are you using gmake and not bmake!? (but that will not be the
problem)

How have you overcome configure problem?

In the file
pkgsrc/databases/mysql5-client/work/mysql-5.0.51/config.log
the used configure command is noted:

 $ ./configure --with-openssl=/usr/pkg --localstatedir=/var/mysql
--with-named-z-libs=z --without-libwrap --with-name
d-curses-libs=-lcurses -ltermcap --without-readline --without-libedit
--disable-dependency-tracking --without-debug --
without-bench --with-low-memory --with-zlib-dir=/usr/pkg --with-vio
--with-charset=latin1 --with-extra-charsets=all --
enable-assembler --without-extra-tools --without-server
--enable-thread-safe-client --prefix=/usr/pkg --host=i386-pc-n
to-qnx6.3.2 --infodir=/usr/pkg/info --mandir=/usr/pkg/man

This is IMHO the cause of your problem because -lcurses is explicitly
mentioned. The fix would be to change the call to configure to NOT use
-lcurses but instead use -lncurses . 


You may change this in Makefile.common. Here is the patch:


$ svn diff
Index: Makefile.common
===================================================================
--- Makefile.common     (revision 79)
+++ Makefile.common     (working copy)
@@ -35,7 +35,12 @@
 CONFIGURE_ARGS+=       --localstatedir=${MYSQL_DATADIR:Q}
 CONFIGURE_ARGS+=       --with-named-z-libs=z
 CONFIGURE_ARGS+=       --without-libwrap
+.if ${OPSYS} == "QNX"
+# QNX provides libnurses instead of libcurses
+CONFIGURE_ARGS+=       --with-named-curses-libs="-lncurses -ltermcap"
+.else
 CONFIGURE_ARGS+=       --with-named-curses-libs="-lcurses -ltermcap"
+.endif

 .if ${OPSYS} == "IRIX"
 CFLAGS+=               -DIRIX5 -DNEEDS_BSTRING_H


Can you please try the patch? If it works I apply it to the svn
repository.

Bye
Christian






_______________________________________________
General
http://community.qnx.com/sf/go/post9731