Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 18341

Summary: [EBUILD] OpenAFS 1.2.6, 1.2.8, 1.3.2, all fails to merge
Product: Gentoo Linux Reporter: Siuchung Cheung (Clement) <clement.cc>
Component: New packagesAssignee: Brad Cowan (RETIRED) <bcowan>
Status: RESOLVED DUPLICATE    
Severity: blocker CC: bcowan, seemant
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Siuchung Cheung (Clement) 2003-03-28 00:22:49 UTC
undefined reference errno in objects

Reproducible: Always
Steps to Reproduce:
emerge /usr/portage/net-fs/openafs/openafs-1.2.8.ebuild
emerge /usr/portage/net-fs/openafs/openafs-1.2.6.ebuild
emerge /usr/portage/net-fs/openafs/openafs-1.3.2.ebuild
Actual Results:  
undefined reference errno in objects

Expected Results:  
:-)

After adding #include <errno.h> to src/sys/rmtsyss.c and src/ptserver/pt_util.c,
it compiles.

I've checked these files on OpenAFS's CVS, they do have #include <errno.h>. I'm
not sure if Gentoo is using an outdated version or what.
Comment 1 Brad Cowan (RETIRED) gentoo-dev 2003-03-29 14:50:37 UTC
1.2.8 is actually the latest stable release and we are using the 1.3.2 development release. All I can say is the fix must be added on their cvs and we need to add to our package...I'll look into it.
Comment 2 Siuchung Cheung (Clement) 2003-03-29 18:05:06 UTC
FYI I was browsing bugs.gentoo.org to investigate compilation errors I've got in other programs. Looks like this problem is caused by bug #16267, which breaks program that "forget" to #include <errno.h>.

Sounds like OpenAFS is just one of the many programs that would stop working. I've kind of surprised that so many developers use errno in the wrong way.
Comment 3 Vladimir Linek 2003-04-07 10:31:16 UTC
Is possible to fix this bug? It seems to be a simple task and I would (and possibly not  
only me) appreciate a working afs...  
Comment 4 Sebastian Roth 2003-04-09 11:43:27 UTC
See Bug 18658 for patches related to undefined references ...
Comment 5 Arthur Chan 2003-04-24 02:03:10 UTC
i can confirm this for the 1.3.2-r1 ebuild
Comment 6 Brad Cowan (RETIRED) gentoo-dev 2003-05-05 01:55:49 UTC

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