Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 836572 - net-libs/libotr-4.1.1 with dev-libs/libgcrypt-1.10: client.c:624:30: error: ‘PF_UNIX’ undeclared (first use in this function)
Summary: net-libs/libotr-4.1.1 with dev-libs/libgcrypt-1.10: client.c:624:30: error: ‘...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-04-01 05:52 UTC by Kobboi
Modified: 2022-12-05 03:49 UTC (History)
1 user (show)

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


Attachments
build.log.gz (build.log.gz,5.20 KB, application/gzip)
2022-04-01 05:53 UTC, Kobboi
Details
emerge-info.txt (emerge-info.txt,7.72 KB, text/plain)
2022-04-01 05:53 UTC, Kobboi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2022-04-01 05:52:51 UTC
Making all in client
make[4]: Entering directory '/var/tmp/portage/net-libs/libotr-4.1.1/work/libotr-4.1.1/tests/regression/client'
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../..    -I../../../include -I../../../src -I../../../tests/utils/ -I.  -O2 -march=znver3 -pipe -g -ggdb3 -D_FORTIFY_SOURCE=2 -fstack-protector-all -Wstack-protector -fwrapv -fno-strict-overflow -Wall -Wextra -Wno-unused-parameter -Wformat-security --param ssp-buffer-size=1 -fPIE -c -o client.o client.c
client.c: In function ‘ops_inject_msg’:
client.c:151:15: warning: implicit declaration of function ‘send’ [-Wimplicit-function-declaration]
  151 |         ret = send(oinfo->sock, &msg, sizeof(msg), 0);
      |               ^~~~
client.c: In function ‘recv_otr_msg’:
client.c:553:15: warning: implicit declaration of function ‘recv’ [-Wimplicit-function-declaration]
  553 |         ret = recv(sock, &omsg, sizeof(omsg), 0);
      |               ^~~~
client.c: In function ‘alice_thread’:
client.c:624:23: warning: implicit declaration of function ‘socket’ [-Wimplicit-function-declaration]
  624 |         sock_to_bob = socket(PF_UNIX, SOCK_STREAM, 0);
      |                       ^~~~~~
client.c:624:30: error: ‘PF_UNIX’ undeclared (first use in this function)
  624 |         sock_to_bob = socket(PF_UNIX, SOCK_STREAM, 0);
      |                              ^~~~~~~
client.c:624:30: note: each undeclared identifier is reported only once for each function it appears in
client.c:624:39: error: ‘SOCK_STREAM’ undeclared (first use in this function)
  624 |         sock_to_bob = socket(PF_UNIX, SOCK_STREAM, 0);
      |                                       ^~~~~~~~~~~
client.c:638:15: warning: implicit declaration of function ‘connect’ [-Wimplicit-function-declaration]
  638 |         ret = connect(sock_to_bob, (struct sockaddr *) &bob_sun,
      |               ^~~~~~~
client.c:725:57: warning: implicit declaration of function ‘accept’; did you mean ‘acct’? [-Wimplicit-function-declaration]
  725 |                                         sock_from_bob = accept(fd, (struct sockaddr *) &sun,
      |                                                         ^~~~~~
      |                                                         acct
client.c: In function ‘bob_thread’:
client.c:776:32: error: ‘PF_UNIX’ undeclared (first use in this function)
  776 |         sock_to_alice = socket(PF_UNIX, SOCK_STREAM, 0);
      |                                ^~~~~~~
client.c:776:41: error: ‘SOCK_STREAM’ undeclared (first use in this function)
  776 |         sock_to_alice = socket(PF_UNIX, SOCK_STREAM, 0);
      |                                         ^~~~~~~~~~~
client.c: In function ‘create_unix_socket’:
client.c:979:28: error: ‘PF_UNIX’ undeclared (first use in this function)
  979 |         if ((sock = socket(PF_UNIX, SOCK_STREAM, 0)) < 0) {
      |                            ^~~~~~~
client.c:979:37: error: ‘SOCK_STREAM’ undeclared (first use in this function)
  979 |         if ((sock = socket(PF_UNIX, SOCK_STREAM, 0)) < 0) {
      |                                     ^~~~~~~~~~~
client.c:986:27: error: ‘AF_UNIX’ undeclared (first use in this function)
  986 |         sun->sun_family = AF_UNIX;
      |                           ^~~~~~~
client.c:990:15: warning: implicit declaration of function ‘bind’ [-Wimplicit-function-declaration]
  990 |         ret = bind(sock, (struct sockaddr *) sun, sizeof(struct sockaddr_un));
      |               ^~~~
client.c:996:15: warning: implicit declaration of function ‘listen’ [-Wimplicit-function-declaration]
  996 |         ret = listen(sock, 10);
      |               ^~~~~~
make[4]: *** [Makefile:356: client.o] Error 1
make[4]: Leaving directory '/var/tmp/portage/net-libs/libotr-4.1.1/work/libotr-4.1.1/tests/regression/client'
make[3]: *** [Makefile:345: all-recursive] Error 1
make[3]: Leaving directory '/var/tmp/portage/net-libs/libotr-4.1.1/work/libotr-4.1.1/tests/regression'
make[2]: *** [Makefile:348: all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-libs/libotr-4.1.1/work/libotr-4.1.1/tests'
make[1]: *** [Makefile:476: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-libs/libotr-4.1.1/work/libotr-4.1.1'
make: *** [Makefile:363: all] Error 2


Reproducible: Always
Comment 1 Kobboi 2022-04-01 05:53:08 UTC
Created attachment 768348 [details]
build.log.gz
Comment 2 Kobboi 2022-04-01 05:53:11 UTC
Created attachment 768349 [details]
emerge-info.txt
Comment 3 Kobboi 2022-04-01 05:54:50 UTC
Compiled fine on March 1st. glibc update to 2.35?
Comment 4 Kobboi 2022-04-01 06:01:00 UTC
Compiles fine with libgcrypt-1.9.4-r1, I guess they cleaned up their #includes.
Comment 5 Kobboi 2022-04-01 11:10:32 UTC
PR @ https://github.com/gentoo/gentoo/pull/24847