>Description:
        Got undefined symbol 'errno' in libmysql 
>How-To-Repeat:
        
>Fix:
diff -r -d -u mysql-4.1.old/include/mysys_err.h mysql-4.1/include/mysys_err.h
--- mysql-4.1.old/include/mysys_err.h   2003-02-25 19:01:11.000000000 -0500
+++ mysql-4.1/include/mysys_err.h       2003-02-25 19:02:44.000000000 -0500
@@ -14,8 +14,10 @@
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */

+#include <errno.h>
 #ifndef _mysys_err_h
 #define _mysys_err_h
+
 #ifdef __cplusplus
 extern "C" {
 #endif
diff -r -d -u mysql-4.1.old/mysys/my_seek.c mysql-4.1/mysys/my_seek.c
--- mysql-4.1.old/mysys/my_seek.c       2003-02-25 19:01:49.000000000 -0500
+++ mysql-4.1/mysys/my_seek.c   2003-02-25 19:03:18.000000000 -0500
@@ -15,7 +15,7 @@
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */

 #include "mysys_priv.h"
-
+#include "mysys_err.h"
        /* Seek to position in file */
        /*ARGSUSED*/


>Submitter-Id:  <submitter ID>
>Originator:    
>Organization:
  
  Matthew Taylor
  Applications Developer
  Harvard University Herbaria
  22 Divinity Avenue
  Cambridge, MA  02138
  
  phone:  617-384-7784
  email:  [EMAIL PROTECTED]
  
>
>MySQL support: [none | licence | email support | extended email support ]
>Synopsis:      Got undefined symbol 'errno' in libmysql 
>Severity:      
>Priority:      
>Category:      mysql
>Class:         
>Release:       mysql-4.1.0-alpha (Gentoo mysql-4.1_beta.ebuild package)

>C compiler:    gcc (GCC) 3.2.2
>C++ compiler:  g++ (GCC) 3.2.2
>Environment:
        
System: Linux brummer 2.4.20 #8 Thu Jan 23 22:29:59 EST 2003 i686 Intel(R) Pentium(R) 
III Mobile CPU      1133MHz GenuineIntel GNU/Linux
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/i686-pc-linux-gnu/3.2.2/specs
Configured with: /var/tmp/portage/gcc-3.2.2-r1/work/gcc-3.2.2/configure --prefix=/usr 
--bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.2 
--includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/include 
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2 
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2/man 
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2/info --enable-shared 
--host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib 
--enable-languages=c,c++,ada,f77,objc,java --enable-threads=posix --enable-long-long 
--disable-checking --enable-cstdio=stdio --enable-clocale=generic 
--enable-__cxa_atexit --enable-version-specific-runtime-libs 
--with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/include/g++-v3 
--with-local-prefix=/usr/local --enable-shared --enable-nls --without-included-gettext
Thread model: posix
gcc version 3.2.2
Compilation info: CC='gcc'  CFLAGS=' -march=pentium3 -pipe  -O3'  CXX='g++'  
CXXFLAGS=' -march=pentium3 -pipe  -O3 -felide-constructors -fno-exceptions -fno-rtti'  
LDFLAGS=''  ASFLAGS=''
LIBC: 
lrwxrwxrwx    1 root     root           13 Feb 24 05:48 /lib/libc.so.6 -> libc-2.3.2.so
-rwxr-xr-x    1 root     root      1421532 Feb 24 05:48 /lib/libc-2.3.2.so
-rw-r--r--    1 root     root      2554338 Feb 24 05:48 /usr/lib/libc.a
-rwxr-xr-x    1 root     root          204 Feb 24 05:48 /usr/lib/libc.so
-rwxr-xr-x    1 root     root       580448 Jan 24 02:00 /usr/lib/libc.so.5
Configure command: ./configure '--prefix=/usr' '--host=i686-pc-linux-gnu' 
'--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' 
'--sysconfdir=/etc' '--localstatedir=/var/lib' '--libexecdir=/usr/sbin' 
'--sysconfdir=/etc/mysql' '--localstatedir=/var/lib/mysql' '--with-low-memory' 
'--enable-assembler' '--with-charset=latin1' '--with-mysqld-user=mysql' 
'--with-extra-charsets=complex' '--enable-thread-safe-client' '--with-comment=Gentoo 
mysql-4.1_beta.ebuild package' '--with-unix-socket-path=/var/run/mysqld/mysqld.sock' 
'--without-berkeley-db' '--with-readline' '--enable-shared' '--enable-static' 
'--with-libwrap' '--with-innodb' '--with-vio' '--with-openssl' '--without-debug' 
'CC=gcc' 'CFLAGS= -march=pentium3 -pipe  -O3' 'CXXFLAGS= -march=pentium3 -pipe  -O3 
-felide-constructors -fno-exceptions -fno-rtti' 'CXX=g++' 
'host_alias=i686-pc-linux-gnu'


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