• Updated 2023-07-12: Hello, Guest! Welcome back, and be sure to check out this follow-up post about our outage a week or so ago.

Netatalk 2.2.8 Released

CTB

Well-known member
I just tried the full install process again to use a bigger SD card. I got the following errors.


Make sure you have the required Berkeley DB libraries AND headers installed.
You can download the latest version from http://www.sleepycat.com. If you have installed BDB in a non standard location use the --with-bdb=/path/to/bdb configure option and make sure your linker is configured to check for libraries there.
configure: error: Berkeley DB library required but not found!

apple@retroPi:~/netatalk-2.2.8 $ make all
make: *** No rule to make target 'all'. Stop.
 

slipperygrey

Well-known member
I just tried the full install process again to use a bigger SD card. I got the following errors.


Make sure you have the required Berkeley DB libraries AND headers installed.
You can download the latest version from http://www.sleepycat.com. If you have installed BDB in a non standard location use the --with-bdb=/path/to/bdb configure option and make sure your linker is configured to check for libraries there.
configure: error: Berkeley DB library required but not found!

apple@retroPi:~/netatalk-2.2.8 $ make all
make: *** No rule to make target 'all'. Stop.
Are you sure you have installed all of the dependencies? This error usually indicates just that: The Berkeley DB dev package hasn't been installed.

I created a wiki page recently for documenting the required packages for various OSes. Please look under the Debian section: https://github.com/Netatalk/netatalk/wiki/Installation-Notes#debian-linux
 

CTB

Well-known member
Ah, the latest build on the Raspberry Pi site still needed an update (apt-get update). I didn't expect that.

c..
 

paws

Well-known member
For some reason I'd always thought setting this up was difficult, but it turned out to be no trouble at all. I now have AFP access to my NAS and little web server. Though the UTF-8 Markdown format I normally put online is a little unwieldy on OS 9, maybe I should get into Dreamweaver or finally learn (Mac)Perl. But that's for another thread. Thanks for this software and this thread!
 

slipperygrey

Well-known member
For some reason I'd always thought setting this up was difficult, but it turned out to be no trouble at all. I now have AFP access to my NAS and little web server. Though the UTF-8 Markdown format I normally put online is a little unwieldy on OS 9, maybe I should get into Dreamweaver or finally learn (Mac)Perl. But that's for another thread. Thanks for this software and this thread!
You're very welcome! I'm glad to hear that it worked out well for your setup.
 

Admiral Ackbar

Well-known member
Failure to get AppleTalk support built into kernel, using latest Raspbian image download. Following https://github.com/PiSCSI/piscsi/wiki/AFP-File-Sharing.

Getting to this step:

make -j4 Image.gz modules dtbs

Shows the below. What did I miss? Using Raspberry Pi 4 Model B Rev 1.2 hardware. Intent to use netatalk 2.2.10


warning: ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum
warning: LSE atomics not supported by binutils
./arch/arm64/include/asm/atomic_ll_sc.h: In function ‘__ll_sc__cmpxchg_double’:
./arch/arm64/include/asm/atomic_ll_sc.h:318:38: error: ‘__uint128_t’ undeclared (first use in this function); did you mean ‘__int128__’?
318 | : "=&r" (tmp), "=&r" (ret), "+Q" (*(__uint128_t *)ptr) \
| ^~~~~~~~~~~
./arch/arm64/include/asm/atomic_ll_sc.h:325:1: note: in expansion of macro ‘__CMPXCHG_DBL’
325 | __CMPXCHG_DBL( , , , )
| ^~~~~~~~~~~~~
./arch/arm64/include/asm/atomic_ll_sc.h:318:38: note: each undeclared identifier is reported only once for each function it appears in
318 | : "=&r" (tmp), "=&r" (ret), "+Q" (*(__uint128_t *)ptr) \
| ^~~~~~~~~~~
./arch/arm64/include/asm/atomic_ll_sc.h:325:1: note: in expansion of macro ‘__CMPXCHG_DBL’
325 | __CMPXCHG_DBL( , , , )
| ^~~~~~~~~~~~~
./arch/arm64/include/asm/atomic_ll_sc.h:318:51: error: expected expression before ‘)’ token
318 | : "=&r" (tmp), "=&r" (ret), "+Q" (*(__uint128_t *)ptr) \
| ^
./arch/arm64/include/asm/atomic_ll_sc.h:325:1: note: in expansion of macro ‘__CMPXCHG_DBL’
325 | __CMPXCHG_DBL( , , , )
| ^~~~~~~~~~~~~
./arch/arm64/include/asm/atomic_ll_sc.h: In function ‘__ll_sc__cmpxchg_double_mb’:
./arch/arm64/include/asm/atomic_ll_sc.h:318:38: error: ‘__uint128_t’ undeclared (first use in this function); did you mean ‘__int128__’?
318 | : "=&r" (tmp), "=&r" (ret), "+Q" (*(__uint128_t *)ptr) \
| ^~~~~~~~~~~
./arch/arm64/include/asm/atomic_ll_sc.h:326:1: note: in expansion of macro ‘__CMPXCHG_DBL’
326 | __CMPXCHG_DBL(_mb, dmb ish, l, "memory")
| ^~~~~~~~~~~~~
./arch/arm64/include/asm/atomic_ll_sc.h:318:51: error: expected expression before ‘)’ token
318 | : "=&r" (tmp), "=&r" (ret), "+Q" (*(__uint128_t *)ptr) \
| ^
./arch/arm64/include/asm/atomic_ll_sc.h:326:1: note: in expansion of macro ‘__CMPXCHG_DBL’
326 | __CMPXCHG_DBL(_mb, dmb ish, l, "memory")
| ^~~~~~~~~~~~~

make[1]: *** [scripts/Makefile.build:118: kernel/bounds.s] Error 1
make: *** [Makefile:1289: prepare0] Error 2
make: *** Waiting for unfinished jobs....
 

slipperygrey

Well-known member
@Admiral Ackbar Unless you're using a very early Raspbian Buster, or previous releases, you shouldn't have to modify the kernel to get appletalk. If the module isn't loaded when you run lsmod, try starting atalkd which should dynamically load the model if it isn't already.
 

Admiral Ackbar

Well-known member
@Admiral Ackbar Unless you're using a very early Raspbian Buster, or previous releases, you shouldn't have to modify the kernel to get appletalk. If the module isn't loaded when you run lsmod, try starting atalkd which should dynamically load the model if it isn't already.

Thanks. I don't understand what could have been wrong, and since I was working from a Raspbian image from a few weeks ago, I just tossed it and tried https://www.macip.net/ so I could get the module bits integrated already in the image. Now I need to see if it is indeed 2.x of netatalk and how I can get it over UDP so it will work with AirTalk devices I bought.
 

slipperygrey

Well-known member
I removed the section on compiling the Linux kernel from my wiki page. It's not relevant right now. It was only early on in the lifecycle of Debian Buster around 3 years ago when appletalk had suffered a critical bug and you had to build the kernel yourself.
 

Vaelen

New member
In case anyone else runs into the "missing appletalk kernel module" issue on RPi, I just had to do a "sudo apt upgrade" to pull in the newest kernel and that fixed the issue for me. (I'm running Debian 11.9 Bullseye on a RPi 4, for reference.)
 
Top