Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79867 - netatalk-2.0.x cannot find afs installation
Summary: netatalk-2.0.x cannot find afs installation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Diego Elio Pettenò (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-28 09:37 UTC by Ben Ridenhour
Modified: 2005-08-24 12:57 UTC (History)
2 users (show)

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


Attachments
Configuration log from the netatalk-2.0.1 build (config.log,117.99 KB, text/plain)
2005-01-28 09:40 UTC, Ben Ridenhour
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Ridenhour 2005-01-28 09:37:05 UTC
When I try to emerge netatalk the configuration fails, complaining that it can't find my AFS installation: 

configure: error: AFS installation not found

However, I have openafs-1.2.10-r1 currently installed.  Configure bails out with after this message:

checking for pioctl in -lafsauthent... no

Doing 'locate afsauth' yields:

/usr/afsws/lib/libafsauthent.a
/usr/afsws/lib/libafsauthent.so
/usr/afsws/lib/libafsauthent.so.1.0

I'm not sure what the problem is here, or what the necessary fix is.

Reproducible: Always
Steps to Reproduce:
1.emerge netatalk
2.
3.

Actual Results:  
Emerge of netatalk-2.0.1 failed.

Expected Results:  
Successfully built netatalk!

I've attached the configure.log from the netatalk build.

emerge info

Portage 2.0.51-r15 (default-linux/x86/2004.0, gcc-3.4.3,
glibc-2.3.4.20041102-r0, 2.6.10-rc2 i686)
=================================================================
System uname: 2.6.10-rc2 i686 Intel(R) Xeon(TM) CPU 2.80GHz
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jun 22 2004, 14:55:37)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r3
virtual/os-headers:  2.4.22
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -mcpu=i686 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config
/usr/kde/3.3/env/usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -mcpu=i686 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://gentoo.agsn.ca/
ftp://gentoo.mirrors.tds.net/gentoo"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dfx 3dnow X Xaw3d aalib acpi adns afs aim alsa apache2 arts atlas avi
berkdb bitmap-fonts caps cdparanoia cdr crypt cups dga directfb doc dvd emacs
encode esd f77 fam fbcon fdftk flac font-server foomaticdb fortran freetds gd
gdbm ggi gif ginac gphoto2 gpm gps gstreamer icc icq imagemagick imap imlib ipv6
jabber java jike jpeg junit kde kerberos krb4 lcms ldap libg++ libwww mad mbox
mikmod mmx motif mozilla mpeg msn mule mysql nas ncurses nls odbc oggvorbis
opengl oscar oss pam pda pdflib perl plotutils png postgres ppds python qt
quicktime readline samba sasl scanner sdl slang slp snmp socks5 spell sqlite sse
ssl svga tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts
unicode usb videos voodoo3 wmf xinerama xml xml2 xmms xosds xv yahoo zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS
Comment 1 Ben Ridenhour 2005-01-28 09:40:28 UTC
Created attachment 49754 [details]
Configuration log from the netatalk-2.0.1 build
Comment 2 Maurice van der Pot (RETIRED) gentoo-dev 2005-06-30 14:31:43 UTC
netatalk needs a developer to take up maintenance.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-06-30 16:58:38 UTC
Please try with new netatalk-2.0.3 and report back thanks. 
Comment 4 Ben Ridenhour 2005-07-01 15:49:08 UTC
The same problem occurs with 2.0.3.  I have to remove the afs use flag to make 
netatalk emerge still.
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-07-01 15:56:36 UTC
Ok I'm going to look at this  
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-07-01 17:01:50 UTC
Please try with latest ebuild (time that it hits the sync mirrors), should 
work around this. 
 
Comment 7 Martin Mokrejš 2005-07-25 20:42:56 UTC
I believe the problem is that configure did not find afs. Inspecting your
config.log I don't see any -L and -I related to afs to be used when that test
for afs went on. Check configure script where does it actually look for afs sources.
maybe it failed because it needed some other library, like krb4 library .;)

I had a look at netatalk homeopage, there's just nothing about kerberos and AFS.
Changelog shows few changes several years ago.

The krb5 USE flags are nonsense. Remove kerberos also and depend only on kth-krb
. Maybe also mit-krb5 has directly krb4 code (not just support using krb4 libs
like heimdal does, btw.). I proposed somewhwere else to zap most of current USE
flags as they are useless including the virtuals. People will use heimdal and
kth-krb together and is legitimate to have even mit-krb5 as the third on same
host. Do not trust kerberos related virtuals.

Googling around for heimdal and netatalk gives me few hit, and almsot no recent
em,ail postings to some discussion lists, except years like 1992 or 1998. It afs
really supported? 

Just a thought:
http://homepage3.nifty.com/hatada/pc/net/readme.afs.html


I downloaded netatalk-2.0.3 myself from ran configure without any arguments on a
machine running openafs and having /usr/heimdal and /usr/athena/



checking whether to enable AFS support... no
[cut]
checking whether the PGP UAM should be build... no
checking whether the Kerberos IV UAM should be build... no
checking whether Kerberos V UAM should be build... no

configure just doesn't look for kerberos, maybe not even afs


I played with the switches and this makes configure immediately when it does not
find AFS:

./configure --enable-afs=/usr/afsws/i386_linux24 --with-gssapi=/usr/heimdal
--enable-afs --enable-krbV-uam



And the next confirms configure does not pass path information to the compiler
when compiling the tescase, as seen in original bugreport. This helps to find
libafsauthent but needs more libs:

CFLAGS=-I/usr/afsws/i386_linux24/include LDFLAGS=-L/usr/afsws/i386_linux24/lib
./configure --enable-afs=/usr/afsws/i386_linux24 --with-gssapi=/usr/heimdal
--enable-afs --enable-krbV-uam

configure:13706: checking for pioctl in -lafsauthent
configure:13737: gcc -o conftest -I/usr/afsws/i386_linux24/include 
-L/usr/afsws/i386_linux24/lib conftest.c -lafsauthent  -l
nsl -ldl  >&5
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld:
warning: libafsrpc.so, needed by /usr/afsws/i3
86_linux24/lib/libafsauthent.so, not found (try using -rpath or -rpath-link)
/usr/afsws/i386_linux24/lib/libafsauthent.so: undefined reference to
`rxkad_NewServerSecurityObject'
/usr/afsws/i386_linux24/lib/libafsauthent.so: undefined reference to `__dn_expand'
/usr/afsws/i386_linux24/lib/libafsauthent.so: undefined reference to
`pthread_getspecific'
/usr/afsws/i386_linux24/lib/libafsauthent.so: undefined reference to
`rx_enable_stats'
/usr/afsws/i386_linux24/lib/libafsauthent.so: undefined reference to `rx_socket'






Well, I'll make it short, this makes configure allmost completely get it right,
except two symbols (probably because I run different kernel or have different libc):


LIBS='-lpthread' LD_LIBRARY_PATH=/usr/afsws/i386_linux24/lib
CFLAGS=-I/usr/afsws/i386_linux24/include LDFLAGS='-L/usr/afsws/i386_linux24/lib'
./configure --enable-afs=/usr/afsws/i386_linux24 --with-gssapi=/usr/heimdal
--enable-afs --enable-krbV-uam



configure:13706: checking for pioctl in -lafsauthent
configure:13737: gcc -o conftest -I/usr/afsws/i386_linux24/dest/include 
-L/usr/afsws/i386_linux24/dest/lib conftest.c -lafsa
uthent  -lnsl -ldl -lresolv -lpthread >&5
/usr/afsws/i386_linux24/dest/lib/libafsauthent.so: undefined reference to
`LogThreadNum'
collect2: ld returned 1 exit status


Comment 8 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-07-30 05:10:47 UTC
I've disabled afs support until openafs is fixed upstream. 
 
Comment 9 Martin Mokrejš 2005-08-08 09:30:53 UTC
This patch fixes the problem. Simplay, require at least openafs-1.3.87 and above.
http://www.openafs.org/cgi-bin/wdelta/logthreadnum-libafsauthent-20050808?diff&f=u

More details at
http://rt.central.org/rt/Ticket/Display.html?id=20412

Please reopen and apply.
Comment 10 Martin Mokrejš 2005-08-24 12:57:12 UTC
Diego,
  here is an answer from netatalk developers ... asking for afs testing.
Maybe you could help as well? I don't have any macs and never ever faced
netatalk. :( So, have not much clue how much effort it is, but anyway, this
should be enough for upstream confirmation that "it works":




1) you need to check it out from cvs
cvs co test-suite
(I can mail you a tarball with the right stuff if you don't have automake/autoconf).
2) autogen.sh
3) make
4) run the tests
You need a netatalk server with clear text password enable and an empty volume
in test-suite/test folder:
Ex:
./spectest  -u foo -w bar -s vol
run the test suite for user foo with password bar on volume vol

./spectest  -4  -u foo -w bar -s volume
same with AFP 3.1

./spectest  -u foo -d foo1 -w bar -s vol
run tests with two users foo and foo1, must the same password.

Feel free to ask if you have a problem.

Didier <dgautheron@magic.fr>