Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 875515 - net-libs/libtirpc-1.3.3::gentoo_prefix fails during compilation
Summary: net-libs/libtirpc-1.3.3::gentoo_prefix fails during compilation
Status: RESOLVED DUPLICATE of bug 878101
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: Normal normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-05 19:01 UTC by Askar Bektassov
Modified: 2022-10-26 21:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Askar Bektassov 2022-10-05 19:01:39 UTC
compilation fails when building .libs/libtirpc_la-auth_none.o due to error: unknown type name 'mutex_t'

Reproducible: Always

Steps to Reproduce:
emerge =net-libs/libtirpc-1.3.3
Actual Results:  
>>> Compiling source in /Users/askarbektassov/Gentoo/var/tmp/portage/net-libs/libtirpc-1.3.3/work/libtirpc-1.3.3 ...
 * .arm64: running multilib-minimal_abi_src_compile
make SHELL=/Users/askarbektassov/Gentoo/usr/bin/bash -j1
make  all-recursive
make[1]: Entering directory '/Users/askarbektassov/Gentoo/var/tmp/portage/net-libs/libtirpc-1.3.3/work/libtirpc-1.3.3-.arm64'
Making all in src
make[2]: Entering directory '/Users/askarbektassov/Gentoo/var/tmp/portage/net-libs/libtirpc-1.3.3/work/libtirpc-1.3.3-.arm64/src'
/Users/askarbektassov/Gentoo/usr/bin/bash ../libtool  --tag=CC   --mode=compile arm64-apple-darwin21-gcc -DHAVE_CONFIG_H -I. -I/Users/askarbektassov/Gentoo/var/tmp/portage/net-libs/libtirpc-1.3.3/work/libtirpc-1.3.3/src -I..  -I/Users/askarbektassov/Gentoo/var/tmp/portage/net-libs/libtirpc-1.3.3/work/libtirpc-1.3.3/tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe   -O2 -pipe -c -o libtirpc_la-auth_none.lo `test -f 'auth_none.c' || echo '/Users/askarbektassov/Gentoo/var/tmp/portage/net-libs/libtirpc-1.3.3/work/libtirpc-1.3.3/src/'`auth_none.c
libtool: compile:  arm64-apple-darwin21-gcc -DHAVE_CONFIG_H -I. -I/Users/askarbektassov/Gentoo/var/tmp/portage/net-libs/libtirpc-1.3.3/work/libtirpc-1.3.3/src -I.. -I/Users/askarbektassov/Gentoo/var/tmp/portage/net-libs/libtirpc-1.3.3/work/libtirpc-1.3.3/tirpc -include config.h -DPORTMAP -DINET6 -D_GNU_SOURCE -Wall -pipe -O2 -pipe -c /Users/askarbektassov/Gentoo/var/tmp/portage/net-libs/libtirpc-1.3.3/work/libtirpc-1.3.3/src/auth_none.c  -fno-common -DPIC -o .libs/libtirpc_la-auth_none.o
/Users/askarbektassov/Gentoo/var/tmp/portage/net-libs/libtirpc-1.3.3/work/libtirpc-1.3.3/src/auth_none.c: In function 'authnone_create':
/Users/askarbektassov/Gentoo/var/tmp/portage/net-libs/libtirpc-1.3.3/work/libtirpc-1.3.3/src/auth_none.c:81:16: error: unknown type name 'mutex_t'
   81 |         extern mutex_t authnone_lock;
      |                ^~~~~~~
/Users/askarbektassov/Gentoo/var/tmp/portage/net-libs/libtirpc-1.3.3/work/libtirpc-1.3.3/src/auth_none.c:83:9: warning: implicit declaration of function 'mutex_lock' [-Wimplicit-function-declaration]
   83 |         mutex_lock(&authnone_lock);
      |         ^~~~~~~~~~
/Users/askarbektassov/Gentoo/var/tmp/portage/net-libs/libtirpc-1.3.3/work/libtirpc-1.3.3/src/auth_none.c:87:25: warning: implicit declaration of function 'mutex_unlock' [-Wimplicit-function-declaration]
   87 |                         mutex_unlock(&authnone_lock);
      |                         ^~~~~~~~~~~~
/Users/askarbektassov/Gentoo/var/tmp/portage/net-libs/libtirpc-1.3.3/work/libtirpc-1.3.3/src/auth_none.c: In function 'authnone_marshal':
/Users/askarbektassov/Gentoo/var/tmp/portage/net-libs/libtirpc-1.3.3/work/libtirpc-1.3.3/src/auth_none.c:113:16: error: unknown type name 'mutex_t'
  113 |         extern mutex_t authnone_lock;
      |                ^~~~~~~
/Users/askarbektassov/Gentoo/var/tmp/portage/net-libs/libtirpc-1.3.3/work/libtirpc-1.3.3/src/auth_none.c: In function 'authnone_ops':
/Users/askarbektassov/Gentoo/var/tmp/portage/net-libs/libtirpc-1.3.3/work/libtirpc-1.3.3/src/auth_none.c:166:16: error: unknown type name 'mutex_t'
  166 |         extern mutex_t ops_lock;
      |                ^~~~~~~
make[2]: *** [Makefile:671: libtirpc_la-auth_none.lo] Error 1

Expected Results:  
>>> Source compiled.

Above error is obtained when running with MAKEOPTS="-j1". With multiple jobs, some other errors may appear.
Comment 1 Askar Bektassov 2022-10-26 21:55:20 UTC
I just realised that submitted the same bug twice. Not a Canadian, but still sorry.

*** This bug has been marked as a duplicate of bug 878101 ***