patched configure.ac for failed liblua detection

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

patched configure.ac for failed liblua detection

Tim Lapawa
Hello list,
I got into trouble with configure.ac file from the todays cvs HEAD.
The configure script failed to accept my liblua libraries because of some
unresolved symbols. I've changed the AC_SEARCH_LIBS macro in
configure.ac to link with some additional libraries.
My current lua version is v5.0.2 from the gentoo distribution and the
changes are work with this patch at least for me.

cmd: cvs  -f diff "configure.ac"
Index: configure.ac
===================================================================
RCS file: /cvsroot/ethernut/nut/configure.ac,v
retrieving revision 1.3
diff -r1.3 configure.ac
127c127
<       AC_SEARCH_LIBS([luaL_loadfile], [lualib lualib50], [nutconf_tools_ok="yes"], [nutconf_tools_ok="no"])
---
>       AC_SEARCH_LIBS([luaL_loadfile], [lualib lualib50], [nutconf_tools_ok="yes"], [nutconf_tools_ok="no"],[-lm -ldl])


Best regards
  Tim

--
                \\\///  
  Tim Lapawa    (o  -)   [hidden email]
-------------oo0-(_)-0oo----------------------
   ,ooo0                 Where do you want
  (     )         0ooo,     to go tomorrow?
---\   (---------(     )----------------------
    \ _ )         )   /
                 ( _ /
_______________________________________________
En-Nut-Discussion mailing list
[hidden email]
http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
Reply | Threaded
Open this post in threaded view
|

Re: patched configure.ac for failed liblua detection

Harald Kipp
Tim,

Special thanks for this. Up to now I'd been unable to find out,
why this failed with some Lua packages. This one explains it.
Now I'm puzzled, why the macro worked on my Debian machine.
Anyway, I committed your change.

Harald

>===================================================================
>RCS file: /cvsroot/ethernut/nut/configure.ac,v
>retrieving revision 1.3
>diff -r1.3 configure.ac
>127c127
><       AC_SEARCH_LIBS([luaL_loadfile], [lualib lualib50],
>[nutconf_tools_ok="yes"], [nutconf_tools_ok="no"])
>---
> >       AC_SEARCH_LIBS([luaL_loadfile], [lualib lualib50],
> [nutconf_tools_ok="yes"], [nutconf_tools_ok="no"],[-lm -ldl])
>

_______________________________________________
En-Nut-Discussion mailing list
[hidden email]
http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
Reply | Threaded
Open this post in threaded view
|

Re: patched configure.ac for failed liblua detection

Tim Lapawa
Hello Harald,
today I've found out that the patched configure.ac is still not functional.
The two libs m and ld must be added to LIBS variable, too.
I patched it again with  two added calls to AC_SEARCH_LIBS for both libraries.
In the config.log My compiler (v3.5.5) warns about a conflicting type of
 function sqrt with the buildin function.
I am not very familiar with the autotools and do not know how I can check
on buildin compiler functions.
Perhaps the debian guys managed that the rigth way and the
lua shared libraries use the buildin gcc functions right away.
But I can't verify that on my other linux box running Debian, because of the
stripped shared libraries debian uses.
I've found an unresolved symbols for sqrt in the gentoos lualib:
$ nm /usr/lib/liblualib.a |grep sqrt
000003f0 t math_sqrt
         U sqrt
But thats what the configure script finds out, too.
I think you should test the configure.ac on your Debian system before
committing it.

cheers
        Tim

 $ cvs diff -r1.4 configure.ac
Index: configure.ac
===================================================================
RCS file: /cvsroot/ethernut/nut/configure.ac,v
retrieving revision 1.4
diff -r1.4 configure.ac
129a130,131
>       AC_SEARCH_LIBS([sqrt],[m], [nutconf_tools_ok="yes"],[nutconf_tools_ok="no"])
>       AC_SEARCH_LIBS([dlopen],[dl], [nutconf_tools_ok="yes"],[nutconf_tools_ok="no"])
131c133
<       AC_SEARCH_LIBS([luaL_loadfile], [lualib lualib50], [nutconf_tools_ok="yes"], [nutconf_tools_ok="no"],[-lm -ldl])
---
>       AC_SEARCH_LIBS([luaL_loadfile], [lualib lualib50], [nutconf_tools_ok="yes"], [nutconf_tools_ok="no"])



On Fri, Jun 10, 2005 at 03:33:29PM +0200, Harald Kipp wrote:

> Tim,
>
> Special thanks for this. Up to now I'd been unable to find out,
> why this failed with some Lua packages. This one explains it.
> Now I'm puzzled, why the macro worked on my Debian machine.
> Anyway, I committed your change.
>
> Harald
>
>
>
> _______________________________________________
> En-Nut-Discussion mailing list
> [hidden email]
> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion

--
                \\\///  
  Tim Lapawa    (o  -)   [hidden email]
-------------oo0-(_)-0oo----------------------
   ,ooo0                 Where do you want
  (     )         0ooo,     to go tomorrow?
---\   (---------(     )----------------------
    \ _ )         )   /
                 ( _ /
_______________________________________________
En-Nut-Discussion mailing list
[hidden email]
http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion