Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to make on Raspberry Pi #27

Closed
phillipsnick opened this issue Jan 2, 2015 · 2 comments
Closed

Unable to make on Raspberry Pi #27

phillipsnick opened this issue Jan 2, 2015 · 2 comments

Comments

@phillipsnick
Copy link

Just installed a fresh image of raspbian on a SD card to play with Shairport sync but hitting an error during make

Makefile:370: recipe for target 'shairport-sync' failed

Here are the steps I took to install

$ sudo apt-get install autoconf libtool libdaemon-dev libasound2-dev libpopt-dev
$ sudo apt-get install avahi-daemon libavahi-client-dev
$ autoreconf -i -f
$ ./configure --with-alsa --with-avahi

Also tried

$ ./configure --with-alsa

The full output from the error

$ make
make  all-recursive
make[1]: Entering directory '/home/pi/projects/airplay/shairport-sync'
Making all in man
make[2]: Entering directory '/home/pi/projects/airplay/shairport-sync/man'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/pi/projects/airplay/shairport-sync/man'
make[2]: Entering directory '/home/pi/projects/airplay/shairport-sync'
gcc -DHAVE_CONFIG_H -I.     -g -O2 -MT shairport.o -MD -MP -MF .deps/shairport.Tpo -c -o shairport.o shairport.c
mv -f .deps/shairport.Tpo .deps/shairport.Po
gcc -DHAVE_CONFIG_H -I.     -g -O2 -MT rtsp.o -MD -MP -MF .deps/rtsp.Tpo -c -o rtsp.o rtsp.c
mv -f .deps/rtsp.Tpo .deps/rtsp.Po
gcc -DHAVE_CONFIG_H -I.     -g -O2 -MT mdns.o -MD -MP -MF .deps/mdns.Tpo -c -o mdns.o mdns.c
mv -f .deps/mdns.Tpo .deps/mdns.Po
gcc -DHAVE_CONFIG_H -I.     -g -O2 -MT mdns_external.o -MD -MP -MF .deps/mdns_external.Tpo -c -o mdns_external.o mdns_external.c
mv -f .deps/mdns_external.Tpo .deps/mdns_external.Po
gcc -DHAVE_CONFIG_H -I.     -g -O2 -MT common.o -MD -MP -MF .deps/common.Tpo -c -o common.o common.c
mv -f .deps/common.Tpo .deps/common.Po
gcc -DHAVE_CONFIG_H -I.     -g -O2 -MT rtp.o -MD -MP -MF .deps/rtp.Tpo -c -o rtp.o rtp.c
mv -f .deps/rtp.Tpo .deps/rtp.Po
gcc -DHAVE_CONFIG_H -I.     -g -O2 -MT player.o -MD -MP -MF .deps/player.Tpo -c -o player.o player.c
mv -f .deps/player.Tpo .deps/player.Po
gcc -DHAVE_CONFIG_H -I.     -g -O2 -MT audio.o -MD -MP -MF .deps/audio.Tpo -c -o audio.o audio.c
mv -f .deps/audio.Tpo .deps/audio.Po
gcc -DHAVE_CONFIG_H -I.     -g -O2 -MT audio_pipe.o -MD -MP -MF .deps/audio_pipe.Tpo -c -o audio_pipe.o audio_pipe.c
mv -f .deps/audio_pipe.Tpo .deps/audio_pipe.Po
gcc -DHAVE_CONFIG_H -I.     -g -O2 -MT audio_alsa.o -MD -MP -MF .deps/audio_alsa.Tpo -c -o audio_alsa.o audio_alsa.c
mv -f .deps/audio_alsa.Tpo .deps/audio_alsa.Po
gcc  -g -O2   -o shairport-sync shairport.o rtsp.o mdns.o mdns_external.o common.o rtp.o player.o alac.o audio.o audio_dummy.o audio_pipe.o   audio_alsa.o      -lasound   -lpopt   -lm -lpthread -ldaemon -lrt
rtsp.o: In function `handle_announce':
/home/pi/projects/airplay/shairport-sync/rtsp.c:597: undefined reference to `base64_dec'
/home/pi/projects/airplay/shairport-sync/rtsp.c:606: undefined reference to `base64_dec'
/home/pi/projects/airplay/shairport-sync/rtsp.c:607: undefined reference to `rsa_apply'
rtsp.o: In function `apple_challenge':
/home/pi/projects/airplay/shairport-sync/rtsp.c:663: undefined reference to `base64_dec'
/home/pi/projects/airplay/shairport-sync/rtsp.c:698: undefined reference to `rsa_apply'
/home/pi/projects/airplay/shairport-sync/rtsp.c:699: undefined reference to `base64_enc'
rtsp.o: In function `make_nonce':
/home/pi/projects/airplay/shairport-sync/rtsp.c:718: undefined reference to `base64_enc'
collect2: ld returned 1 exit status
Makefile:370: recipe for target 'shairport-sync' failed
make[2]: *** [shairport-sync] Error 1
make[2]: Leaving directory '/home/pi/projects/airplay/shairport-sync'
Makefile:420: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/pi/projects/airplay/shairport-sync'
Makefile:276: recipe for target 'all' failed
make: *** [all] Error 2

Am I doing something wrong or have I found a bug?

@mikebrady
Copy link
Owner

Yep – you're doing something wrong :). The ./configure arguments should include a --with-ssl argument. Have a look at the build instructions in the README.md file. (Sorry to be terse – I'm replying on a phone.)

@phillipsnick
Copy link
Author

Thanks! Really shouldn't try do these things when tired and hungover haha

Cheers :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants