>Description:
        The code that checks for cc may pick the "first" cc it finds in its path, 
which may not be the same cc used for compling, eg it may choose /usr/bin/gcc over 
/usr/local/bin/gcc
>How-To-Repeat:
        Look in the code for mysqlbug
>Fix:
        Ah this depends on finding the complier used for compling, maybe a makefile 
addition to add the path / CC used.

>Submitter-Id:  <submitter ID>
>Originator:    root (aka greg)
>Organization:
 Never !
>MySQL support: [none ]
>Synopsis:      mysqlbug may pick the wrong complier
>Severity:      
>Priority:      
>Category:      mysql
>Class:         
>Release:       mysql-3.23.34a (Source distribution)
>Server: /usr/local/mysql/bin/mysqladmin  Ver 8.18 Distrib 3.23.34a, for pc-linux-gnu 
>on i686
Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license

Server version          3.23.34a-log
Protocol version        10
Connection              Localhost via UNIX socket
UNIX socket             /tmp/mysql.sock
Uptime:                 9 min 46 sec

Threads: 2  Questions: 9  Slow queries: 0  Opens: 7  Flush tables: 1  Open tables: 1 
Queries per second avg: 0.015
>Environment:
        
System: Linux duck.webarmadillo.com 2.4.2-ac18 #1 Sun Mar 11 21:09:43 GMT 2001 i686 
unknown
Architecture: i686

Some paths:  /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc /usr/bin/cc
GCC: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This is wrong for my system.

I actually used:

Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/pgcc-2.95.2.1/specs
gcc version pgcc-2.95.2.1 20001224 (release)


Compilation info: CC='/usr/local/bin/gcc'  CFLAGS='-O6 -mpentiumpro 
-mstack-align-double'  CXX='/usr/local/bin/gcc'  CXXFLAGS='-O6 -mpentiumpro 
-mstack-align-double -felide-constructors -fno-exceptions -fno-rtti'  LDFLAGS=''
LIBC: 
lrwxrwxrwx    1 root     root           13 May 21  2000 /lib/libc.so.6 -> libc-2.1.3.so
-rwxr-xr-x    1 root     root      4101836 Jan 15 15:49 /lib/libc-2.1.3.so
-rw-r--r--    1 root     root     20273324 Jan 15 15:49 /usr/lib/libc.a
-rw-r--r--    1 root     root          178 Jan 15 15:49 /usr/lib/libc.so
Configure command: ./configure  --prefix=/usr/local/mysql-3.23.34a 
--with-mysqld-ldflags=-all-static --with-mysqld-user=mysql --without-debug 
--with-berkeley-db --with-innobase --without-bench --datadir=/var/lib/mysql 
--localstatedir=/var/lib/mysql --sysconfdir=/etc --infodir=/usr/local/info 
--mandir=/usr/local/man --enable-assembler --with-libwrap
Perl: This is perl, version 5.005_03 built for i386-linux

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to