William,

I assume you are compiling with the -O3 gcc flag? Otherwise gcc does not
handle 'extern inline' functions right.

The problem is probably that your gcc/libtool/linker is configured in a way
that it does not do inlining as instructed by the 'extern inline' directive,
or it removes the generated code from the archives.

An easy way to fix the problem is to add

#define UNIV_MUST_NOT_INLINE

to /mysql/innobase/include/univ.i

Best regards,

Heikki Tuuri
Innobase Oy
---
Order technical MySQL/InnoDB support at https://order.mysql.com/
See http://www.innodb.com for the online manual and latest news on InnoDB

----- Original Message -----
From: "William Barber" <[EMAIL PROTECTED]>
Newsgroups: mailing.database.mysql
Sent: Tuesday, July 09, 2002 12:40 AM
Subject: hundreds of undefined references from innobase when linking mysql


> >Description:
>         While attempting to build mysql with Innobase, the final link step
>         encounters hundreds (thousands?) of "undefined references" such
as:
>
>         ../innobase/srv/libsrv.a(srv0srv.o): In function
`srv_get_n_threads':
>
/home/wbarber/flow/contrib/mysql-3.23.51/innobase/srv/srv0srv.c:520:
> undefined reference to `mutex_enter_func'
>         ../innobase/srv/libsrv.a(srv0srv.o): In function `srv_init':
>
/home/wbarber/flow/contrib/mysql-3.23.51/innobase/srv/srv0srv.c:1614:
> undefined reference to `mem_alloc_func'
>         ../innobase/srv/libsrv.a(srv0srv.o): In function
> `srv_suspend_mysql_thread':
>
/home/wbarber/flow/contrib/mysql-3.23.51/innobase/srv/srv0srv.c:2030:
> undefined reference to `thr_get_trx'
>         ../innobase/srv/libsrv.a(srv0start.o): In function
> `srv_parse_data_file_paths_and_sizes':
>
/home/wbarber/flow/contrib/mysql-3.23.51/innobase/srv/srv0start.c:153:
> undefined reference to `ut_strlen'
>         ../innobase/dict/libdict.a(dict0boot.o): In function
`dict_hdr_create':
>
/home/wbarber/flow/contrib/mysql-3.23.51/innobase/dict/dict0boot.c:132:
> undefined reference to `buf_frame_get_page_no'
>
> >How-To-Repeat:
>




    ./configure --prefix=/home/wbarber/mysql --with-debug=full --with-innodb
> --with-low-memory --enable-thread-safe-client --enable-assembler
> --with-mysqld-ldflags=-all-static
>
>         make
> >Fix:
>         <how to correct or work around the problem, if known (multiple
lines)>
>
> >Submitter-Id:  <submitter ID>
> >Originator:    Bill Barber
> >Organization:
> Los Alamos National Laboratory
> >MySQL support: [none | licence | email support | extended email support ]
> >Synopsis:  undefined reference errors during mysql link step.
> >Severity:      serious
> >Priority:      <[ low | medium | high ] (one line)>
> >Category:      mysql
> >Class:         <[ sw-bug | doc-bug | change-request | support ] (one
line)>
> >Release:       mysql-3.23.51 (Source distribution)
>
> >Environment:
>         <machine, os, target, libraries (multiple lines)>
> System: Linux crackerjack 2.4.16-686-smp #1 SMP Wed Nov 28 10:00:01 EST
2001
> i686 unknown
> Architecture: i686
>
> Some paths:  /usr/bin/perl /usr/bin/make /usr/bin/gcc /usr/bin/cc
> GCC: Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
> gcc version 2.95.4 20011002 (Debian prerelease)
> Compilation info: CC='gcc'  CFLAGS=''  CXX='c++'  CXXFLAGS=''  LDFLAGS=''
> LIBC:
> lrwxrwxrwx    1 root     root           13 Jun 20 10:38 /lib/libc.so.6 ->
> libc-2.2.5.so
> -rwxr-xr-x    1 root     root      1153784 Apr 28 03:57 /lib/libc-2.2.5.so
> -rw-r--r--    1 root     root      2390922 Apr 28 03:58 /usr/lib/libc.a
> -rw-r--r--    1 root     root          178 Apr 28 03:58 /usr/lib/libc.so
> Configure command:
./configure  --prefix=/home/wbarber/mysql --with-debug=full
> --with-innodb --with-low-memory --enable-thread-safe-client --enable-assem
bler
> --with-mysqld-ldflags=-all-static
>
>
> ---------------------------------------------------------------------
> 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
>



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