quiniouben / vban

VBAN protocol open-source implementation
GNU General Public License v3.0
450 stars 63 forks source link

Build failure while trying to build it on Ubuntu 16.04 LTS... #5

Closed highgain86j closed 8 years ago

highgain86j commented 8 years ago

The output I got from make VERBOSE=1 is as follows; In file included from /usr/include/alsa/asoundlib.h:54:0, from audio.h:23, from main.c:25: /usr/include/alsa/pcm.h:1010:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void' static inline void snd_pcm_pack_audio_tstamp_config(unsigned int *data, ^ /usr/include/alsa/pcm.h:1018:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void' static inline void snd_pcm_unpack_audio_tstamp_report(unsigned int data, unsigned int accuracy, ^ Makefile:345: recipe for target 'main.o' failed make: *** [main.o] Error 1

Googling suggested me that the issue has something to do with the version of compiler and I got; gcc version 5.3.1 20160413 (Ubuntu 5.3.1-14ubuntu2)

I believe that the necessary headers are in place.

highgain86j commented 8 years ago

One of my campus-mates was clever enough to tackle the issue. Altering AM_CFLAGS = -ansi -Wpedantic -Wall -Wno-multichar -O2 in the resulting src/Makefile with AM_CFLAGS = -std=c99 -Wpedantic -Wall -Wno-multichar -O2 fixed it tentatively. I hope this info is useful enough.

quiniouben commented 8 years ago

Hello, Thank you for reporting the trouble. Yep, I could reach the same conclusion as your mate :). I will update the make options ASAP.

quiniouben commented 8 years ago

Fixed according to proposal in tahiro86j comment.