Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 874651

Summary: games-engines/love-0.8.0-r100 - libraries/.../unix.c: error: implicit declaration of function luaL_openlib
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Marek Szuba <marecki>
Status: RESOLVED FIXED    
Severity: normal CC: sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.bz2
games-engines:love-0.8.0-r100:20221003-125459.log
logs.tar.bz2
temp.tar.bz2

Description Toralf Förster gentoo-dev 2022-10-03 14:08:04 UTC
too long lines were shrinked:

x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -I. -I./modules -I./libraries -I/usr/include/AL -I/usr/include/freetype2  -I/usr/include/lua5.1 -I/usr/include/SDL -D_FILE_OFFSET_BITS=64   -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -c -
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -I. -I./modules -I./libraries -I/usr/include/AL -I/usr/include/freetype2  -I/usr/include/lua5.1 -I/usr/include/SDL -D_FILE_OFFSET_BITS=64   -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -c -
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -I. -I./modules -I./libraries -I/usr/include/AL -I/usr/include/freetype2  -I/usr/include/lua5.1 -I/usr/include/SDL -D_FILE_OFFSET_BITS=64   -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -c -
libraries/luasocket/libluasocket/unix.c: In function luaopen_socket_unix:
libraries/luasocket/libluasocket/unix.c:93:5: error: implicit declaration of function luaL_openlib; did you mean luaI_openlib? [-Werror=implicit-function-declaration]
   93 |     luaL_openlib(L, "socket", func, 0);
      |     ^~~~~~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd-j4-20221002-192609

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
/usr/lib/llvm/15
15.0.1
Python 3.10.7
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.64.0 *
The following VMs are available for generation-2:
1)	OpenJDK 17.0.5_p5 [openjdk-17]
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-17 
  [2]   openjdk-bin-8 
  [3]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
GNU Make 4.3

  HEAD of ::gentoo
commit efae18a5fbb6519e3f5149f7fdfbc153404ede03
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Oct 3 10:16:52 2022 +0000

    2022-10-03 10:16:51 UTC

emerge -qpvO games-engines/love
[ebuild  N    ] games-engines/love-11.4  USE="gme" LUA_SINGLE_TARGET="lua5-1 -lua5-3 -lua5-4 -luajit"
Comment 1 Toralf Förster gentoo-dev 2022-10-03 14:08:05 UTC
Created attachment 817696 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-03 14:08:07 UTC
Created attachment 817699 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-10-03 14:08:08 UTC
Created attachment 817702 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-10-03 14:08:09 UTC
Created attachment 817705 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-10-03 14:08:11 UTC
Created attachment 817708 [details]
games-engines:love-0.8.0-r100:20221003-125459.log
Comment 6 Toralf Förster gentoo-dev 2022-10-03 14:08:12 UTC
Created attachment 817711 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-10-03 14:08:13 UTC
Created attachment 817714 [details]
temp.tar.bz2
Comment 8 Larry the Git Cow gentoo-dev 2022-10-04 12:50:29 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df42fda1b1c333d9e02a965d71fc2bbd2b808951

commit df42fda1b1c333d9e02a965d71fc2bbd2b808951
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2022-10-04 12:45:49 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2022-10-04 12:50:23 +0000

    games-engines/love: allow implicit function declarations in legacy slots
    
    For the record, :0.7 and :0.8 are both ancient versions of LOVE which we
    only keep in the tree because of reverse dependencies - of which there
    are very few and which themselves are rather old.
    
    Closes: https://bugs.gentoo.org/874651
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 games-engines/love/love-0.7.2-r100.ebuild | 9 +++++++--
 games-engines/love/love-0.8.0-r100.ebuild | 9 +++++++--
 2 files changed, 14 insertions(+), 4 deletions(-)
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-04 13:04:51 UTC
Try -DLUA_COMPAT_OPENLIB=1 instead (https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b1436c7434d763f06dda60229747997664fb5c5). It seems to do the job.
Comment 10 Marek Szuba archtester gentoo-dev 2022-10-04 13:14:50 UTC
Thanks, pushed.