-
Notifications
You must be signed in to change notification settings - Fork 7
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
Compile errors with latest libspotify (ARM support) #2
Comments
Have you made sure that libspotify[1] is the latest version? I tried to recreate it on a fresh VM (ubuntu) by installing the latest libspotify, and the latest libspotify-php and it compiled without any problems. |
Yes it is, but I'm using a Raspberry Pi (ARMv6) so maybe libspotify isn't fully compatible with it. They have a link for ARMv6 devices on their site though. |
Then it's probably only a problem on ARM. I don't have a ARM device to recreate the problem on, and (my) development platforms is only linux x86 32/64 bit. If I ever get lots of time on my hands I'll see if I can get it work on ARM anyway though. |
Ok, thanks :) |
Hiya. I'm getting the same issue building against libspotify 12.1.51 x86_64. Am I doing anything obviously wrong (I suspect that I am as nothing in the output suggests that the make process knows where I've installed libspotify to (/usr/local/)) ;-)
|
Exactly the same problem here. Could you shed some light on this problem? Thanks a lot. |
I've found this patch that seems to solve this problem in another project, so it may be useful for the patch: http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2012-May/233574.html |
Cannot compile on Ubuntu Linux i686. |
I saw the commits earlier today so I tried compiling with the updated repo. It failed again.
pi@samrpi ~/libspotify-php $ make
/bin/bash /home/pi/libspotify-php/libtool --mode=compile cc -I. -I/home/pi/libspotify-php -DPHP_ATOM_INC -I/home/pi/libspotify-php/include -I/home/pi/libspotify-php/main -I/home/pi/libspotify-php -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -g -O2 -c /home/pi/libspotify-php/spotify.c -o spotify.lo
libtool: compile: cc -I. -I/home/pi/libspotify-php -DPHP_ATOM_INC -I/home/pi/libspotify-php/include -I/home/pi/libspotify-php/main -I/home/pi/libspotify-php -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -g -O2 -c /home/pi/libspotify-php/spotify.c -fPIC -DPIC -o .libs/spotify.o
/home/pi/libspotify-php/spotify.c:428:1: error: unknown type name 'function_entry'
/home/pi/libspotify-php/spotify.c:429:2: warning: braces around scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:429:2: warning: (near initialization for 'spotify_methods[0]') [enabled by default]
/home/pi/libspotify-php/spotify.c:429:2: warning: initialization makes integer from pointer without a cast [enabled by default]
/home/pi/libspotify-php/spotify.c:429:2: warning: (near initialization for 'spotify_methods[0]') [enabled by default]
/home/pi/libspotify-php/spotify.c:429:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:429:2: warning: (near initialization for 'spotify_methods[0]') [enabled by default]
/home/pi/libspotify-php/spotify.c:429:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:429:2: warning: (near initialization for 'spotify_methods[0]') [enabled by default]
/home/pi/libspotify-php/spotify.c:429:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:429:2: warning: (near initialization for 'spotify_methods[0]') [enabled by default]
/home/pi/libspotify-php/spotify.c:429:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:429:2: warning: (near initialization for 'spotify_methods[0]') [enabled by default]
/home/pi/libspotify-php/spotify.c:430:2: warning: braces around scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:430:2: warning: (near initialization for 'spotify_methods[1]') [enabled by default]
/home/pi/libspotify-php/spotify.c:430:2: warning: initialization makes integer from pointer without a cast [enabled by default]
/home/pi/libspotify-php/spotify.c:430:2: warning: (near initialization for 'spotify_methods[1]') [enabled by default]
/home/pi/libspotify-php/spotify.c:430:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:430:2: warning: (near initialization for 'spotify_methods[1]') [enabled by default]
/home/pi/libspotify-php/spotify.c:430:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:430:2: warning: (near initialization for 'spotify_methods[1]') [enabled by default]
/home/pi/libspotify-php/spotify.c:430:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:430:2: warning: (near initialization for 'spotify_methods[1]') [enabled by default]
/home/pi/libspotify-php/spotify.c:430:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:430:2: warning: (near initialization for 'spotify_methods[1]') [enabled by default]
/home/pi/libspotify-php/spotify.c:431:2: warning: braces around scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:431:2: warning: (near initialization for 'spotify_methods[2]') [enabled by default]
/home/pi/libspotify-php/spotify.c:431:2: warning: initialization makes integer from pointer without a cast [enabled by default]
/home/pi/libspotify-php/spotify.c:431:2: warning: (near initialization for 'spotify_methods[2]') [enabled by default]
/home/pi/libspotify-php/spotify.c:431:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:431:2: warning: (near initialization for 'spotify_methods[2]') [enabled by default]
/home/pi/libspotify-php/spotify.c:431:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:431:2: warning: (near initialization for 'spotify_methods[2]') [enabled by default]
/home/pi/libspotify-php/spotify.c:431:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:431:2: warning: (near initialization for 'spotify_methods[2]') [enabled by default]
/home/pi/libspotify-php/spotify.c:431:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:431:2: warning: (near initialization for 'spotify_methods[2]') [enabled by default]
/home/pi/libspotify-php/spotify.c:432:2: warning: braces around scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:432:2: warning: (near initialization for 'spotify_methods[3]') [enabled by default]
/home/pi/libspotify-php/spotify.c:432:2: warning: initialization makes integer from pointer without a cast [enabled by default]
/home/pi/libspotify-php/spotify.c:432:2: warning: (near initialization for 'spotify_methods[3]') [enabled by default]
/home/pi/libspotify-php/spotify.c:432:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:432:2: warning: (near initialization for 'spotify_methods[3]') [enabled by default]
/home/pi/libspotify-php/spotify.c:432:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:432:2: warning: (near initialization for 'spotify_methods[3]') [enabled by default]
/home/pi/libspotify-php/spotify.c:432:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:432:2: warning: (near initialization for 'spotify_methods[3]') [enabled by default]
/home/pi/libspotify-php/spotify.c:432:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:432:2: warning: (near initialization for 'spotify_methods[3]') [enabled by default]
/home/pi/libspotify-php/spotify.c:433:2: warning: braces around scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:433:2: warning: (near initialization for 'spotify_methods[4]') [enabled by default]
/home/pi/libspotify-php/spotify.c:433:2: warning: initialization makes integer from pointer without a cast [enabled by default]
/home/pi/libspotify-php/spotify.c:433:2: warning: (near initialization for 'spotify_methods[4]') [enabled by default]
/home/pi/libspotify-php/spotify.c:433:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:433:2: warning: (near initialization for 'spotify_methods[4]') [enabled by default]
/home/pi/libspotify-php/spotify.c:433:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:433:2: warning: (near initialization for 'spotify_methods[4]') [enabled by default]
/home/pi/libspotify-php/spotify.c:433:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:433:2: warning: (near initialization for 'spotify_methods[4]') [enabled by default]
/home/pi/libspotify-php/spotify.c:433:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:433:2: warning: (near initialization for 'spotify_methods[4]') [enabled by default]
/home/pi/libspotify-php/spotify.c:434:2: warning: braces around scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:434:2: warning: (near initialization for 'spotify_methods[5]') [enabled by default]
/home/pi/libspotify-php/spotify.c:434:2: warning: initialization makes integer from pointer without a cast [enabled by default]
/home/pi/libspotify-php/spotify.c:434:2: warning: (near initialization for 'spotify_methods[5]') [enabled by default]
/home/pi/libspotify-php/spotify.c:434:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:434:2: warning: (near initialization for 'spotify_methods[5]') [enabled by default]
/home/pi/libspotify-php/spotify.c:434:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:434:2: warning: (near initialization for 'spotify_methods[5]') [enabled by default]
/home/pi/libspotify-php/spotify.c:434:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:434:2: warning: (near initialization for 'spotify_methods[5]') [enabled by default]
/home/pi/libspotify-php/spotify.c:434:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:434:2: warning: (near initialization for 'spotify_methods[5]') [enabled by default]
/home/pi/libspotify-php/spotify.c:435:2: warning: braces around scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:435:2: warning: (near initialization for 'spotify_methods[6]') [enabled by default]
/home/pi/libspotify-php/spotify.c:435:2: warning: initialization makes integer from pointer without a cast [enabled by default]
/home/pi/libspotify-php/spotify.c:435:2: warning: (near initialization for 'spotify_methods[6]') [enabled by default]
/home/pi/libspotify-php/spotify.c:435:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:435:2: warning: (near initialization for 'spotify_methods[6]') [enabled by default]
/home/pi/libspotify-php/spotify.c:435:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:435:2: warning: (near initialization for 'spotify_methods[6]') [enabled by default]
/home/pi/libspotify-php/spotify.c:435:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:435:2: warning: (near initialization for 'spotify_methods[6]') [enabled by default]
/home/pi/libspotify-php/spotify.c:435:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:435:2: warning: (near initialization for 'spotify_methods[6]') [enabled by default]
/home/pi/libspotify-php/spotify.c:436:2: warning: braces around scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:436:2: warning: (near initialization for 'spotify_methods[7]') [enabled by default]
/home/pi/libspotify-php/spotify.c:436:2: warning: initialization makes integer from pointer without a cast [enabled by default]
/home/pi/libspotify-php/spotify.c:436:2: warning: (near initialization for 'spotify_methods[7]') [enabled by default]
/home/pi/libspotify-php/spotify.c:436:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:436:2: warning: (near initialization for 'spotify_methods[7]') [enabled by default]
/home/pi/libspotify-php/spotify.c:436:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:436:2: warning: (near initialization for 'spotify_methods[7]') [enabled by default]
/home/pi/libspotify-php/spotify.c:436:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:436:2: warning: (near initialization for 'spotify_methods[7]') [enabled by default]
/home/pi/libspotify-php/spotify.c:436:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:436:2: warning: (near initialization for 'spotify_methods[7]') [enabled by default]
/home/pi/libspotify-php/spotify.c:437:2: warning: braces around scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:437:2: warning: (near initialization for 'spotify_methods[8]') [enabled by default]
/home/pi/libspotify-php/spotify.c:437:2: warning: initialization makes integer from pointer without a cast [enabled by default]
/home/pi/libspotify-php/spotify.c:437:2: warning: (near initialization for 'spotify_methods[8]') [enabled by default]
/home/pi/libspotify-php/spotify.c:437:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:437:2: warning: (near initialization for 'spotify_methods[8]') [enabled by default]
/home/pi/libspotify-php/spotify.c:437:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:437:2: warning: (near initialization for 'spotify_methods[8]') [enabled by default]
/home/pi/libspotify-php/spotify.c:437:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:437:2: warning: (near initialization for 'spotify_methods[8]') [enabled by default]
/home/pi/libspotify-php/spotify.c:437:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:437:2: warning: (near initialization for 'spotify_methods[8]') [enabled by default]
/home/pi/libspotify-php/spotify.c:438:2: warning: braces around scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:438:2: warning: (near initialization for 'spotify_methods[9]') [enabled by default]
/home/pi/libspotify-php/spotify.c:438:2: warning: initialization makes integer from pointer without a cast [enabled by default]
/home/pi/libspotify-php/spotify.c:438:2: warning: (near initialization for 'spotify_methods[9]') [enabled by default]
/home/pi/libspotify-php/spotify.c:438:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:438:2: warning: (near initialization for 'spotify_methods[9]') [enabled by default]
/home/pi/libspotify-php/spotify.c:438:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:438:2: warning: (near initialization for 'spotify_methods[9]') [enabled by default]
/home/pi/libspotify-php/spotify.c:438:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:438:2: warning: (near initialization for 'spotify_methods[9]') [enabled by default]
/home/pi/libspotify-php/spotify.c:438:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:438:2: warning: (near initialization for 'spotify_methods[9]') [enabled by default]
/home/pi/libspotify-php/spotify.c:439:2: warning: braces around scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:439:2: warning: (near initialization for 'spotify_methods[10]') [enabled by default]
/home/pi/libspotify-php/spotify.c:439:2: warning: initialization makes integer from pointer without a cast [enabled by default]
/home/pi/libspotify-php/spotify.c:439:2: warning: (near initialization for 'spotify_methods[10]') [enabled by default]
/home/pi/libspotify-php/spotify.c:439:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:439:2: warning: (near initialization for 'spotify_methods[10]') [enabled by default]
/home/pi/libspotify-php/spotify.c:439:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:439:2: warning: (near initialization for 'spotify_methods[10]') [enabled by default]
/home/pi/libspotify-php/spotify.c:439:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:439:2: warning: (near initialization for 'spotify_methods[10]') [enabled by default]
/home/pi/libspotify-php/spotify.c:439:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:439:2: warning: (near initialization for 'spotify_methods[10]') [enabled by default]
/home/pi/libspotify-php/spotify.c:440:2: warning: braces around scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:440:2: warning: (near initialization for 'spotify_methods[11]') [enabled by default]
/home/pi/libspotify-php/spotify.c:440:2: warning: initialization makes integer from pointer without a cast [enabled by default]
/home/pi/libspotify-php/spotify.c:440:2: warning: (near initialization for 'spotify_methods[11]') [enabled by default]
/home/pi/libspotify-php/spotify.c:440:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:440:2: warning: (near initialization for 'spotify_methods[11]') [enabled by default]
/home/pi/libspotify-php/spotify.c:440:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:440:2: warning: (near initialization for 'spotify_methods[11]') [enabled by default]
/home/pi/libspotify-php/spotify.c:440:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:440:2: warning: (near initialization for 'spotify_methods[11]') [enabled by default]
/home/pi/libspotify-php/spotify.c:440:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:440:2: warning: (near initialization for 'spotify_methods[11]') [enabled by default]
/home/pi/libspotify-php/spotify.c:441:2: warning: braces around scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:441:2: warning: (near initialization for 'spotify_methods[12]') [enabled by default]
/home/pi/libspotify-php/spotify.c:441:2: warning: initialization makes integer from pointer without a cast [enabled by default]
/home/pi/libspotify-php/spotify.c:441:2: warning: (near initialization for 'spotify_methods[12]') [enabled by default]
/home/pi/libspotify-php/spotify.c:441:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:441:2: warning: (near initialization for 'spotify_methods[12]') [enabled by default]
/home/pi/libspotify-php/spotify.c:441:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:441:2: warning: (near initialization for 'spotify_methods[12]') [enabled by default]
/home/pi/libspotify-php/spotify.c:441:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:441:2: warning: (near initialization for 'spotify_methods[12]') [enabled by default]
/home/pi/libspotify-php/spotify.c:441:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:441:2: warning: (near initialization for 'spotify_methods[12]') [enabled by default]
/home/pi/libspotify-php/spotify.c:442:2: warning: braces around scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:442:2: warning: (near initialization for 'spotify_methods[13]') [enabled by default]
/home/pi/libspotify-php/spotify.c:442:2: warning: initialization makes integer from pointer without a cast [enabled by default]
/home/pi/libspotify-php/spotify.c:442:2: warning: (near initialization for 'spotify_methods[13]') [enabled by default]
/home/pi/libspotify-php/spotify.c:442:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:442:2: warning: (near initialization for 'spotify_methods[13]') [enabled by default]
/home/pi/libspotify-php/spotify.c:442:2: warning: excess elements in scalar initializer [enabled by default]
/home/pi/libspotify-php/spotify.c:442:2: warning: (near initialization for 'spotify_methods[13]') [enabled by default]
/home/pi/libspotify-php/spotify.c: In function 'spotify_create_handler':
/home/pi/libspotify-php/spotify.c:465:46: error: 'zend_class_entry' has no member named 'default_properties'
/home/pi/libspotify-php/spotify.c: In function 'zm_startup_spotify':
/home/pi/libspotify-php/spotify.c:485:2: warning: assignment from incompatible pointer type [enabled by default]
make: *** [spotify.lo] Error 1
The text was updated successfully, but these errors were encountered: