Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jan 2007 17:01:27 GMT
From:      "Richard S. Conto"<rsc@umich.edu>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/108560: liblua*.a is stripped for lua50
Message-ID:  <200701301701.l0UH1RJY070331@www.freebsd.org>
Resent-Message-ID: <200701301710.l0UHALgO082566@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         108560
>Category:       ports
>Synopsis:       liblua*.a is stripped for lua50
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 30 17:10:20 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Richard S. Conto
>Release:        FreeBSD 6.2-STABLE
>Organization:
Merit Network Inc., & University of Michigan
>Environment:
FreeBSD brambles 6.2-STABLE FreeBSD 6.2-STABLE #0: Tue Jan 16 20:06:00 EST 2007     rsc@brambles:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
When trying to build a software package (StepMania, not ported yet) that depends on "liblua" and "liblualib", I discovered that there were no symbols in "liblua.a" and "liblualib.a"
>How-To-Repeat:
(1) (cd /usr/ports/lang/lua50; make install)
(2) nm /usr/local/lib/lua50/lib*.a 


>Fix:
Change /usr/ports/lang/lua50/Makefile as follows & remake/reinstall:

diff -c -b -w -r1.26 Makefile
*** Makefile    16 Sep 2006 22:01:36 -0000      1.26
--- Makefile    30 Jan 2007 16:52:23 -0000
***************
*** 66,73 ****
  # Libraries.
        ${MKDIR} ${LUA_LIBDIR}
  .for f in ${LUA_LIB}
!       ${INSTALL_PROGRAM} ${WRKSRC}/lib/lib${f}.a ${LUA_LIBDIR}
!       ${INSTALL_PROGRAM} ${WRKSRC}/lib/lib${f}.so \
                ${LUA_LIBDIR}/lib${f}-${LUA_VER}.so.${LUA_VER_SH}
        @${LN} -sf lib${f}-${LUA_VER}.so.${LUA_VER_SH} ${LUA_LIBDIR}/lib${f}.so
        @${LN} -sf ${LUA_SUBDIR}/lib${f}-${LUA_VER}.so.${LUA_VER_SH} \
--- 66,73 ----
  # Libraries.
        ${MKDIR} ${LUA_LIBDIR}
  .for f in ${LUA_LIB}
!       ${INSTALL_DATA} ${WRKSRC}/lib/lib${f}.a ${LUA_LIBDIR}
!       ${INSTALL_DATA} ${WRKSRC}/lib/lib${f}.so \
                ${LUA_LIBDIR}/lib${f}-${LUA_VER}.so.${LUA_VER_SH}
        @${LN} -sf lib${f}-${LUA_VER}.so.${LUA_VER_SH} ${LUA_LIBDIR}/lib${f}.so
        @${LN} -sf ${LUA_SUBDIR}/lib${f}-${LUA_VER}.so.${LUA_VER_SH} \

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701301701.l0UH1RJY070331>