Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 387065 - net-misc/connman-0.75 USE=tools - tools/alg-test.c:82:18: error: ‘AF_ALG’ undeclared (first use in this function)
Summary: net-misc/connman-0.75 USE=tools - tools/alg-test.c:82:18: error: ‘AF_ALG’ und...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Tony Vroon (RETIRED)
URL:
Whiteboard:
Keywords: Bug
Depends on:
Blocks: 353440
  Show dependency tree
 
Reported: 2011-10-13 20:23 UTC by Ian Delaney (RETIRED)
Modified: 2011-12-25 12:44 UTC (History)
0 users

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


Attachments
the build log (build.log,10.95 KB, text/plain)
2011-10-13 20:25 UTC, Ian Delaney (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Delaney (RETIRED) gentoo-dev 2011-10-13 20:23:35 UTC
Testing for package connman

Reproducible: Always

Steps to Reproduce:
1. # USE="debug -doc -examples -google -ntpd -ofono -openvpn -threads tools -vpnc wimax" emerge  connman
2. 
3.
Actual Results:  

tools/alg-test.c: In function ‘create_socket’:
tools/alg-test.c:82:18: error: ‘AF_ALG’ undeclared (first use in this function)
tools/alg-test.c:82:18: note: each undeclared identifier is reported only once for each function i$
tools/alg-test.c:88:14: error: ‘PF_ALG’ undeclared (first use in this function)
make[1]: *** [tools/alg-test.o] Error 1


Expected Results:  
To compile

This is likely related to linux headers.

archtester connman-0.75 # grep -r PF_ALG .
./tools/alg-test.c:	sk = socket(PF_ALG, SOCK_SEQPACKET, 0);
archtester connman-0.75 # grep -r AF_ALG .
./tools/alg-test.c:		.salg_family = AF_ALG,

This is where it puzzles.  My guess is these functions were present in the previous linux headers.  These functions appear to not be defined anywhere in the source!  Nor do they make an appearance in /usr/include.
This may assist;

archtester connman-0.75 # grep -r _ALG .
./config.h.in:#undef HAVE_LINUX_IF_ALG_H
Binary file ./src/rtnl.o matches
Binary file ./src/6to4.o matches
./tools/alg-test.c:		.salg_family = AF_ALG,
./tools/alg-test.c:	sk = socket(PF_ALG, SOCK_SEQPACKET, 0);
./config.log:#define HAVE_LINUX_IF_ALG_H 1
./config.status:D["HAVE_LINUX_IF_ALG_H"]=" 1"
./config.h:#define HAVE_LINUX_IF_ALG_H 1

right; this

/usr/include/linux/if_alg.h

is the header missing in an include in the source.
Comment 1 Ian Delaney (RETIRED) gentoo-dev 2011-10-13 20:25:29 UTC
Created attachment 289753 [details]
the build log
Comment 2 Rafał Mużyło 2011-10-14 09:10:59 UTC
According to git log, that kernel header is installed since 2.6.38.
Comment 3 Ian Delaney (RETIRED) gentoo-dev 2011-10-14 10:50:05 UTC
yes, it's there, that's not in question. The source just needs an include statement in the .c file, or whichever config file, to find it.
Comment 4 Tony Vroon (RETIRED) gentoo-dev 2011-12-25 12:44:42 UTC
Whilst I was unable to set USE="wimax" due to unrelated build failures; I am unable to make this happen with 0.78 and believe it to be fixed. I will ask for fast-track stabilisation of this version instead.
Thank you for your bug report.