MySql 4.1 Solaris 8.2/x86 compile anomoly (includes pos. soln.)

MySql 4.1 Solaris 8.2/x86 compile anomoly (includes pos. soln.)

am 08.12.2003 00:19:09 von David John PENTON

Description:
------------
Mysql fails to install due to compile error on line 655. Unable to find
constant VIS_WHITE. This is due to not having the correct vis.h.

ie. HAVE_VIS_H should be false and this library should not be included
line 49.
(although there is a different vis.h library installed - from the BSD ver).

Replacing strvis & unstrvis with strcpy allows compile and install
however it may have
implications...

How-To-Repeat:
--------------
Install on a protected Solaris 8.2/x86 machine using 3.2 where system
libraries cannot be installed in standard positions.

Fix:
----
wrap HAVE_VIS_H tests around line 655 and 617. If not true just do
strcpy. It at then allows it to compile and run - though it may cause
trouble for those people without vis.h later on.

> Submitter-Id:
> Originator: David John PENTON
> Organization: Research Assistant - The University of Melbourne
> MySQL support: [none]
> Synopsis: Compile error due to vis.h existance assumption
> Severity: serious
> Priority: high
> Category: mysql
> Class: sw-bug
> Release: mysql-4.1.0-alpha (Source distribution)
> C compiler: gcc (GCC) 3.2
> C++ compiler: g++ (GCC) 3.2
> Environment:

System: SunOS queeg 5.8 Generic_108529-21 i86pc i386 i86pc Architecture:
i86pc Some paths: /bin/perl /usr/local/bin/make /usr/local/bin/gmake
/usr/local/bin/gcc /opt/SUNWspro/bin/cc GCC: Reading specs from
/usr/local/bin/../lib/gcc-lib/i386-pc-solaris2.8/3.2/specs Configured
with: ../gcc-3.2/configure --prefix=/usr/local/apps/gcc-3.2
--enable-version-specific-runtime-libs Thread model: posix gcc version
3.2 Compilation info: CC='gcc'
CFLAGS='-I/mount/autofs/home_se440/s440gf/workspaces/djpento n/app/include/'
CXX='g++' CXXFLAGS=''
LDFLAGS='-L/mount/autofs/home_se440/s440gf/workspaces/djpent on/app/lib/'
ASFLAGS='' LIBC: -rw-r--r-- 1 root bin 1608148 Jun 20 11:06 /lib/libc.a
lrwxrwxrwx 1 root root 11 Nov 11 2002 /lib/libc.so -> ./libc.so.1
-rwxr-xr-x 1 root bin 956112 Jun 20 11:07 /lib/libc.so.1 -rw-r--r-- 1
root bin 1608148 Jun 20 11:06 /usr/lib/libc.a lrwxrwxrwx 1 root root 11
Nov 11 2002 /usr/lib/libc.so -> ./libc.so.1 -rwxr-xr-x 1 root bin 956112
Jun 20 11:07 /usr/lib/libc.so.1 Configure command: ./configure
'--prefix=/home/projects/lt/summer0304/mysql-queeg' '--without-innodb'
'--with-unix-socket-path=/tmp/mysqld-djpenton.sock'
'--with-tcp-port=33303' '--with-mysqld-user=djpenton' '--without-debug'
'--disable-largefile'
'CFLAGS=-I/mount/autofs/home_se440/s440gf/workspaces/djpento n/app/include/'
'LDFLAGS=-L/mount/autofs/home_se440/s440gf/workspaces/djpent on/app/lib/'
Perl: This is perl, version 5.005_03 built for i86pc-solaris



--
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

Re: MySql 4.1 Solaris 8.2/x86 compile anomoly (includes pos. soln.)

am 08.12.2003 13:47:26 von Sinisa Milivojevic

David John PENTON writes:
> Description:
> ------------
> Mysql fails to install due to compile error on line 655. Unable to find
> constant VIS_WHITE. This is due to not having the correct vis.h.
>
> ie. HAVE_VIS_H should be false and this library should not be included
> line 49.
> (although there is a different vis.h library installed - from the BSD ver).
>
> Replacing strvis & unstrvis with strcpy allows compile and install
> however it may have
> implications...
>
> How-To-Repeat:
> --------------
> Install on a protected Solaris 8.2/x86 machine using 3.2 where system
> libraries cannot be installed in standard positions.
>
> Fix:
> ----
> wrap HAVE_VIS_H tests around line 655 and 617. If not true just do
> strcpy. It at then allows it to compile and run - though it may cause
> trouble for those people without vis.h later on.
>

[skip]

Thank you for your bug report.

The above fix would not work for those that have a proper library,
which is why our production dept. will have to improve upon the
testing of the existence of this library.

--

Sincerely,

--
For technical support contracts, go to https://order.mysql.com/?ref=msmi
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Mr. Sinisa Milivojevic
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB
/_/ /_/\_, /___/\___\_\___/ Fulltime Developer and Support Coordinator
<___/ www.mysql.com Larnaca, Cyprus


--
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