hundreds of undefined references from innobase when linking mysql(fwd)

hundreds of undefined references from innobase when linking mysql(fwd)

am 09.07.2002 00:22:50 von William Barber

>Description:
(I tried to send this to mysql@lists.mysql.com, but it bounced because
the mailbox was full).

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/srv0sr v.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/srv0sr v.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/srv0sr v.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/srv0st art.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/dict0 boot.c:132:
undefined reference to `buf_frame_get_page_no'

I must be missing some configure flag or CFLAG option?

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


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

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-assembler
--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 bugs-thread12166@lists.mysql.com
To unsubscribe, e-mail

Re: hundreds of undefined references from innobase when linking mysql(fwd)

am 09.07.2002 14:37:50 von Sinisa Milivojevic

William Barber writes:
>
> >Description:
> (I tried to send this to mysql@lists.mysql.com, but it bounced because
> the mailbox was full).
>
> 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/srv0sr v.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/srv0sr v.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/srv0sr v.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/srv0st art.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/dict0 boot.c:132:
> undefined reference to `buf_frame_get_page_no'
>
> I must be missing some configure flag or CFLAG option?
>
> >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


Hi!

Looks to me like potential problems with GNU software versions you are
using.

Start from a fresh tarball and run:

automake
autoconf
../configure .. with the above options
make

--
Regards,
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Mr. Sinisa Milivojevic
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Fulltime Developer
/_/ /_/\_, /___/\___\_\___/ Larnaca, Cyprus
<___/ www.mysql.com


------------------------------------------------------------ ---------
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 bugs-thread12167@lists.mysql.com
To unsubscribe, e-mail

Re: hundreds of undefined references from innobase when linking mysql

am 09.07.2002 17:13:12 von Heikki Tuuri

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"
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/srv0sr v.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/srv0sr v.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/srv0sr v.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/srv0st art.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/dict0 boot.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:
> lines)>
>
> >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:
>
> 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
> To unsubscribe, e-mail

> 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 bugs-thread12170@lists.mysql.com
To unsubscribe, e-mail

Re: hundreds of undefined references from innobase when linking mysql(fwd)

am 23.07.2002 23:46:16 von Michael Widenius

Hi!

>>>>> "Sinisa" == Sinisa Milivojevic writes:

Sinisa> Looks to me like potential problems with GNU software versions you are
Sinisa> using.

Sinisa> Start from a fresh tarball and run:

Sinisa> automake
Sinisa> autoconf
Sinisa> ./configure .. with the above options
Sinisa> make

Just a note about this.

With a fresh tarball, you should NOT use automake or autoconf, but
just run configure and make.

For William I can only recommend to use our binaries if he can't get
this to work. (The standard binary distribution should work ok in
this case)

Before releasing a MySQL source release, we have test-compiled it on
many different platforms. This means that when there is some problem
compiling MySQL, the problem is usually that the target system is
wrongly configured in some way.

In this case it could be a Debian problem; We have recently been
emailed about another compile problem with 3.23.51 on Debian and we
will solve this in the next release.

Regards,
Monty

--
For technical support contracts, goto https://order.mysql.com/
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Mr. Michael Widenius
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, CTO
/_/ /_/\_, /___/\___\_\___/ Helsinki, Finland
<___/ www.mysql.com

------------------------------------------------------------ ---------
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 bugs-thread12225@lists.mysql.com
To unsubscribe, e-mail