Ethereal-dev: Re: [Ethereal-dev] Configure failure with lua 5.0.2

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Joerg Mayer <jmayer@xxxxxxxxx>
Date: Sun, 19 Feb 2006 11:37:02 +0100
On Sun, Feb 19, 2006 at 11:24:37AM +0100, LEGO wrote:
> that's odd... I tested it with both 5.1 and 5.0.2 before commiting...
> and it works on my box.
I thought so :-)

> Can you send me the output of ar -t of both libraries so that I can
> build the liblualib like yours.

I think the output of config.log will do:

configure:26467: checking for luaL_openlib in -llualib
configure:26497: gcc -o conftest -D_U_="__attribute__((unused))" -Wall -Wpointer-arith -W  -g -O2 -I/usr/local/include -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -pthread -I/opt/gnome/include/gtk-2.0 -I/opt/gnome/lib/gtk-2.0/include -I/usr/X11R6/include -I/opt/gnome/include/atk-1.0 -I/opt/gnome/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include    -I/usr/local/include  -L/usr/local/lib conftest.c -llualib  -lz -llua >&5
 /usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../liblualib.so: undefined reference to ` log'
 /usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../liblualib.so: undefined reference to ` sqrt'
 /usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../liblualib.so: undefined reference to ` fmod'
 /usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../liblualib.so: undefined reference to ` cos'
 /usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../liblualib.so: undefined reference to ` sin'
 /usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../liblualib.so: undefined reference to ` atan2'
 /usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../liblualib.so: undefined reference to ` pow'
 /usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../liblualib.so: undefined reference to ` log10'
 /usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../liblualib.so: undefined reference to ` exp'
 /usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../liblualib.so: undefined reference to ` tan'
 /usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../liblualib.so: undefined reference to ` atan'
 /usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../liblualib.so: undefined reference to ` asin'
 /usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../liblualib.so: undefined reference to ` acos'
 collect2: ld returned 1 exit status

So it looks like you undid parts of r17198 with your new checkin:
  (make sure the test gets linked with liblua and libm).

Ciao
     Joerg