mysql-4.1.0-alpha - compilation issues on AIX5.1L (64 bit)

mysql-4.1.0-alpha - compilation issues on AIX5.1L (64 bit)

am 13.05.2003 18:43:26 von paul.oshea

Hi,

I have built and installed version 4.1.0-alpha on AIX5.1(64 bit) and,
during this process, identified 2 issues.

The following is the technical information relating to the machine on
which it was built

Ouput of /usr/bin/uname -sp
AIX powerpc

Output of gcc --version
gcc (GCC) 3.2

Output of /usr/sbin/lsattr -El proc0
state enable Processor state False
type PowerPC_POWER4 Processor type False
frequency 1000000000 Processor Speed False

Output of /usr/bin/oslevel
5.1.0.0

The following variables were set before running configure
export CXXFLAGS='-fno-weak -maix64 -DHAVE_INT_8_16_32'
export LDFLAGS=' -Wl,-brtl -maix64'
export CPPFLAGS=$CXXFLAGS
export OBJECT_MODE=64

Issue 1:
After running configure, make stops while trying to build client/mysqld.cc

The issue is due to the fact that curses.h is included by mysqld.cc. At
the point of inclusion both __STDC__ and __cplusplus macros are defined
which exposes two conflicting extern prototypes for mvwprintw. Similarly
for mvwscanw.

I stepped around this by temporarily commenting out one set of
prototypes. I guess that a better and more premanent solution would have
been to #undef __cplusplus or __STDC__ in mysqld.cc before including
curses.h. To the best of my knowlege the included curses.h is the one
shippes with gcc 3.2. I have no idea what impact this will have on other
machines or platforms.

This was the only change needed to allow make to proceed to completion


Issue 2:
The system built above was installed and a repository created using
mysql_install_db script. The database was started using
mysqld_safe -user=root
The database was accessible using an older mysql program but the
4.1.0-alpha version of mysql cores immediately.

The problem was corrected by changing the LIBS line in
libmysql/Makefile from
LIBS = -lcrypt -lnsl_r -lm
to
LIBS = -lcrypt -lnsl_r -lm -lpthread
and rebuilding the system.

Again, I don't know if this is the correct place for the fix or whether
this is correct for any other platforms. We found that issue 2 also
occurs in version 3.23.53.

Please contact me if any more information about these issues is needed.
Kind regards,
Paul.


Paul O'Shea,
SivTech Ltd. (trading as Similarity Systems)




--
MySQL Bugs Mailing List
For list archives: http://lists.mysql.com/bugs
To unsubscribe: http://lists.mysql.com/bugs?unsub=gcdmb-bugs@m.gmane.org