You are not logged in.

#1 2024-05-25 06:58:56

JoelMyBoy
Member
Registered: 2024-05-25
Posts: 2

Issue installing Hashlink for Heaps.io

Howdy, I'm trying to install Hashlink for the Heaps.io Game engine using the hashlink aur package.

Before installing hashlink, I updated my system with 'pacman -Syu'.

Then I ran 'yay -S hashlink'

It compiled for awhile and then:

libs/mysql/socket.c: In function ‘phost_resolve’:
libs/mysql/socket.c:130:17: error: implicit declaration of function ‘gethostbyname_r’; did you mean ‘gethostbyname’? [-Wimplicit-function-declaration]
  130 |                 gethostbyname_r(host,&hbase,buf,1024,&h,&errcode);
      |                 ^~~~~~~~~~~~~~~
      |                 gethostbyname
make: *** [Makefile:289: libs/mysql/socket.o] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
-> error making: hashlink-exit status 4
-> Failed to install the following packages. Manual intervention is required:
hashlink - exit status 4

From my limited knowledge I saw the issue was with something to do with "sql", And from comparing the dependency list from the AUR (https://aur.archlinux.org/packages/hashlink) and the hashlink repo (https://github.com/HaxeFoundation/hashlink), I see that the AUR repo doesn't have the dependency "libsqlite3-dev".

Am I correct in that the issue is from the missing libsqlite3-dev dependency and if so, how would I go about adding that to the pkgbuild? And if the issue isn't that what can I do to further troubleshoot.

Thank you, and I appreciate your patience with me. I'm not the most well-versed in C or linux. Let me know if there is any other information I should share.

smile

Offline

#2 2024-05-25 10:51:41

gromit
Package Maintainer (PM)
From: Germany
Registered: 2024-02-10
Posts: 120
Website

Re: Issue installing Hashlink for Heaps.io

Just clone the repo with the PKGBUILD and then edit it and add the dependency to its dependencies:

git clone https://aur.archlinux.org/hashlink.git

https://wiki.archlinux.org/title/Arch_U … g_packages

Offline

#3 2024-05-25 20:55:37

JoelMyBoy
Member
Registered: 2024-05-25
Posts: 2

Re: Issue installing Hashlink for Heaps.io

Hey, thanks for the link and instructions smile

I cloned the repo,
I added sqlite to the depends in the pkgbuild:

depends=(
   'libpng'
   'libjpeg-turbo'
   'libvorbis'
   'openal'
   'sdl2'
   'mbedtls2'
   'libuv'
   'glu'
  'sqlite'
)

and then I ran 'makepkg' and got the same error

libs/mysql/socket.c: In function ‘phost_resolve’:
libs/mysql/socket.c:130:17: error: implicit declaration of function ‘gethostbyname_r’; did you mean ‘gethostbyname’? [-Wimplicit-function-declaration]
  130 |                 gethostbyname_r(host,&hbase,buf,1024,&h,&errcode);
      |                 ^~~~~~~~~~~~~~~
      |                 gethostbyname
make: *** [Makefile:289: libs/mysql/socket.o] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

I don't really know what else to try? I'm thinking maybe sqlite isn't the missing package? The HaxeFoundation/hashlink repo says "sqlite: libsqlite3-dev" but I only found a 'sqlite' arch package so maybe thats it?

How else can I troubleshoot the issue, either figure out what dependency is missing or something else?

Offline

#4 2024-05-25 22:47:24

loqs
Member
Registered: 2014-03-06
Posts: 17,719

Re: Issue installing Hashlink for Heaps.io

You need to apply the upstream commit ca20de254808e143a97a4f8c99b9deb252c57043 or ask the AUR package maintainer to do so.

Offline

Board footer

Powered by FluxBB