You are not logged in.

#1 2018-07-24 22:00:16

josefk
Member
Registered: 2018-07-24
Posts: 4

[Solved] Missing lib32-json-c package

Hello people,

I'm having issue installing a necessary dependency for a game I just got. When I'm about to install the required package, I have a warning from pacman:

"warning: cannot resolve "lib32-json-c", a dependency of..."

I have the multilib and community repos enabled, however: sudo pacman -S lib32-json-c returns a "target not found" error.

A quick search showed me that this package used to exist: https://bugs.archlinux.org/task/36026

But for some reason is not available for me.

Am I missing something ?
Thanks in advance.

Last edited by josefk (2018-07-25 00:52:16)

Offline

#2 2018-07-24 22:05:22

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] Missing lib32-json-c package


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2018-07-24 22:07:45

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: [Solved] Missing lib32-json-c package

https://git.archlinux.org/svntogit/comm … 59eea3012b removed from multilib as not required.

Offline

#4 2018-07-24 22:32:48

josefk
Member
Registered: 2018-07-24
Posts: 4

Re: [Solved] Missing lib32-json-c package

Thank you jasonwryan and loqs.
I have no idea how I could forget checking the AUR. My mistake.

I'm having another trouble building this package though:
After I've copied the git repo and launched an makepkg -src, I got the following error:

==> Making package: lib32-libjson 0.8-1 (Wed 25 Jul 2018 07:28:42 AM JST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found libjson-0.8.tar.gz
==> Validating source files with md5sums...
    libjson-0.8.tar.gz ... Passed
==> Extracting sources...
  -> Extracting libjson-0.8.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
gcc -m32 -Wall -Os -fPIC -L. -Wl,-soname -Wl,libjson.so.0.8.0 -shared -o libjson.so.0.8.0 json.o
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/8.1.1/../../../libgcc_s.so.1 when searching for libgcc_s.so.1
/usr/bin/ld: skipping incompatible /usr/lib/libgcc_s.so.1 when searching for libgcc_s.so.1
/usr/bin/ld: cannot find libgcc_s.so.1
collect2: error: ld returned 1 exit status
make: *** [Makefile:45: libjson.so.0.8.0] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

I have gcc-multilib installed, not really sure why this doesn't get picked up. The MAKEPKG also specifies the -m32 flags.

Any suggestions on where I could start digging to fix this ? All early indices I found point to these gcc-multilib pkg and -m32 flags ones.

Thanks again for your support.

Last edited by josefk (2018-07-24 22:34:37)

Offline

#5 2018-07-24 22:42:11

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: [Solved] Missing lib32-json-c package

If you try the last PKGBUILD arch was using instead?

# $Id$
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Geoffroy Carrier <geoffroy.carrier@koon.fr>
# Contributor: congyiwu <congyiwu AT gmail DOT com>
_pkgbasename=json-c
pkgname=lib32-$_pkgbasename
pkgver=0.12.1
pkgrel=1
pkgdesc="A JSON implementation in C (32-bit)"
url="https://github.com/json-c/json-c/wiki"
license=(MIT)
arch=(x86_64)
depends=(lib32-glibc $_pkgbasename)
makedepends=(gcc-multilib libtool-multilib)
options=(!libtool !makeflags)
source=(https://s3.amazonaws.com/${_pkgbasename}_releases/releases/$_pkgbasename-${pkgver}.tar.gz)
sha256sums=('2a136451a7932d80b7d197b10441e26e39428d67b1443ec43bbba824705e1123')

build() {
  cd $_pkgbasename-$pkgver
  export CC="gcc -m32" PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
  CFLAGS="$CFLAGS -Wno-error"
  ./configure --prefix=/usr --disable-static --libdir=/usr/lib32
  make
}

package() {
  cd $_pkgbasename-$pkgver
  make DESTDIR="$pkgdir" install

  rm -r "$pkgdir/usr/include"

  mkdir -p "$pkgdir/usr/share/licenses"
  ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
}

Offline

#6 2018-07-24 23:04:15

josefk
Member
Registered: 2018-07-24
Posts: 4

Re: [Solved] Missing lib32-json-c package

Thanks loqs for the quick reply.

Unfortunately, I'm still having issues when building the package. Error message is different now, but even more obscure:

==> Making package: lib32-json-c 0.12.1-1 (Wed 25 Jul 2018 07:48:44 AM JST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found json-c-0.12.1.tar.gz
==> Validating source files with sha256sums...
    json-c-0.12.1.tar.gz ... Passed
==> Extracting sources...
  -> Extracting json-c-0.12.1.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make sets $(MAKE)... (cached) yes
RDRAND Hardware RNG Hash Seed disabled. Use --enable-rdrand to enable
checking for style of include used by make... GNU
checking for gcc... gcc -m32
checking whether the C compiler works... no
configure: error: in `/home/josefk/aur/lib32-libjson/src/json-c-0.12.1':
configure: error: C compiler cannot create executables
See `config.log' for more details
==> ERROR: A failure occurred in build().
    Aborting...

Not really sure why my C compiler is reported as not working. Here is the config.log file mentioned:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by json-c configure 0.12.1, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure --prefix=/usr --disable-static --libdir=/usr/lib32

## --------- ##
## Platform. ##
## --------- ##

hostname = asx12
uname -m = x86_64
uname -r = 4.17.8-1-ARCH
uname -s = Linux
uname -v = #1 SMP PREEMPT Wed Jul 18 09:56:24 UTC 2018

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /usr/bin/site_perl
PATH: /usr/bin/vendor_perl
PATH: /usr/bin/core_perl
PATH: /home/josefk/.antigen/bundles/robbyrussell/oh-my-zsh/lib
PATH: /home/josefk/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/git
PATH: /home/josefk/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/command-not-found
PATH: /home/josefk/.antigen/bundles/zsh-users/zsh-syntax-highlighting
PATH: /home/josefk/.antigen/bundles/zsh-users/zsh-completions
PATH: /home/josefk/.antigen/bundles/zsh-users/zsh-autosuggestions
PATH: /home/josefk/.antigen/bundles/milipili/zsh-less-colors


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2356: checking for a BSD-compatible install
configure:2424: result: /usr/bin/install -c
configure:2435: checking whether build environment is sane
configure:2490: result: yes
configure:2641: checking for a thread-safe mkdir -p
configure:2680: result: /usr/bin/mkdir -p
configure:2687: checking for gawk
configure:2703: found /usr/bin/gawk
configure:2714: result: gawk
configure:2725: checking whether make sets $(MAKE)
configure:2747: result: yes
configure:2776: checking whether make supports nested variables
configure:2793: result: yes
configure:2920: checking whether make sets $(MAKE)
configure:2942: result: yes
configure:2967: result: RDRAND Hardware RNG Hash Seed disabled. Use --enable-rdrand to enable
configure:2988: checking for style of include used by make
configure:3016: result: GNU
configure:3087: checking for gcc
configure:3114: result: gcc -m32
configure:3343: checking for C compiler version
configure:3352: gcc -m32 --version >&5
gcc (GCC) 8.1.1 20180531
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3363: $? = 0
configure:3352: gcc -m32 -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/8.1.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=release --enable-default-pie --enable-default-ssp
Thread model: posix
gcc version 8.1.1 20180531 (GCC) 
configure:3363: $? = 0
configure:3352: gcc -m32 -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3363: $? = 1
configure:3352: gcc -m32 -qversion >&5
gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:3363: $? = 1
configure:3383: checking whether the C compiler works
configure:3405: gcc -m32 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wno-error -D_FORTIFY_SOURCE=2 -Wl,-O1,--sort-common,--as-needed,-z,relro conftest.c  >&5
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/8.1.1/../../../libgcc_s.so.1 when searching for libgcc_s.so.1
/usr/bin/ld: skipping incompatible /usr/lib/libgcc_s.so.1 when searching for libgcc_s.so.1
/usr/bin/ld: cannot find libgcc_s.so.1
collect2: error: ld returned 1 exit status
configure:3409: $? = 1
configure:3447: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "json-c"
| #define PACKAGE_TARNAME "json-c"
| #define PACKAGE_VERSION "0.12.1"
| #define PACKAGE_STRING "json-c 0.12.1"
| #define PACKAGE_BUGREPORT "json-c@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "json-c"
| #define VERSION "0.12.1"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3452: error: in `/home/josefk/aur/lib32-libjson/src/json-c-0.12.1':
configure:3454: error: C compiler cannot create executables
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CC_set=set
ac_cv_env_CC_value='gcc -m32'
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wno-error'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=-D_FORTIFY_SOURCE=2
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=-Wl,-O1,--sort-common,--as-needed,-z,relro
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/usr/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC='gcc -m32'
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /home/josefk/aur/lib32-libjson/src/json-c-0.12.1/missing aclocal-1.15'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AR=''
AUTOCONF='${SHELL} /home/josefk/aur/lib32-libjson/src/json-c-0.12.1/missing autoconf'
AUTOHEADER='${SHELL} /home/josefk/aur/lib32-libjson/src/json-c-0.12.1/missing autoheader'
AUTOMAKE='${SHELL} /home/josefk/aur/lib32-libjson/src/json-c-0.12.1/missing automake-1.15'
AWK='gawk'
CC='gcc -m32'
CCDEPMODE=''
CFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wno-error'
CPP=''
CPPFLAGS='-D_FORTIFY_SOURCE=2'
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FGREP=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
JSON_BSYMBOLIC_LDFLAGS=''
LD=''
LDFLAGS='-Wl,-O1,--sort-common,--as-needed,-z,relro'
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/josefk/aur/lib32-libjson/src/json-c-0.12.1/missing makeinfo'
MANIFEST_TOOL=''
MKDIR_P='/usr/bin/mkdir -p'
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='json-c'
PACKAGE_BUGREPORT='json-c@googlegroups.com'
PACKAGE_NAME='json-c'
PACKAGE_STRING='json-c 0.12.1'
PACKAGE_TARNAME='json-c'
PACKAGE_URL=''
PACKAGE_VERSION='0.12.1'
PATH_SEPARATOR=':'
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='0.12.1'
ac_ct_AR=''
ac_ct_CC='gcc -m32'
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/josefk/aur/lib32-libjson/src/json-c-0.12.1/install-sh'
libdir='/usr/lib32'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "json-c"
#define PACKAGE_TARNAME "json-c"
#define PACKAGE_VERSION "0.12.1"
#define PACKAGE_STRING "json-c 0.12.1"
#define PACKAGE_BUGREPORT "json-c@googlegroups.com"
#define PACKAGE_URL ""
#define PACKAGE "json-c"
#define VERSION "0.12.1"

configure: exit 77

Same error mentioned as before: "/usr/bin/ld: cannot find libgcc_s.so.1".
So we're not there yet but thanks for the suggestion.

Offline

#7 2018-07-25 00:43:39

josefk
Member
Registered: 2018-07-24
Posts: 4

Re: [Solved] Missing lib32-json-c package

After more digging, I found out that I was missing one particular package: lib32-gcc-libs.

I installed the files via the normal:
# pacman -S lib32-gcc-libs

And was able to successfully build the required lib32-json package.

Thanks everyone for the help.

Offline

#8 2018-07-25 00:50:41

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] Missing lib32-json-c package

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB