You are not logged in.
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.
Offline
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
Offline
Hey, thanks for the link and instructions
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
You need to apply the upstream commit ca20de254808e143a97a4f8c99b9deb252c57043 or ask the AUR package maintainer to do so.
Offline