-
Notifications
You must be signed in to change notification settings - Fork 45
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
configure doesn't find libunistring #6
Comments
I'm having the same problems on FreeBSD 8.1-RELEASE |
Same issue here on FreeBSD 8.1-STABLE, I installed libunistring from sources, and that worked, fine, but even though I specify --with-libunistring-prefix=/usr/local I can't find it. (I've verified that libunistring is installed to /usr/local/lib). |
I downloaded the sources from git, then copied the src/pregen folder from the tarball sources into the git sources. I then modified configure.in and changed the CFLAGS variable to: CFLAGS="$CFLAGS -I/usr/local/include -L/usr/local/lib -Wall -D_LARGEFILE_SOURCE" then I ran: autoreconf -i -Wno-portability and then: ./configure and I was able to get it to detect GNU libunistring and GNU libiconv. Since then, I've steadily worked at installing other library dependencies. Remember, libavl is not the GNU or FreeBSD ports version, you must download it from a site like: http://www.debian.co.il/debian/pool/main/liba/libavl/libavl_0.3.5.orig.tar.gz and modify the GNUconfig file to remove the mcpu= option from the CFLAGS and also modify the install portion to install into the correct areas and make the correct symlinks. I had to uninstall GNU libavl and the FreeBSD libavl and create a symlink in /usr/lib back to /usr/local/lib/ port before I was able to get configure to detect the correct version of libavl. lrwxr-xr-x 1 root wheel 28 Sep 6 22:18 libavl.so@ -> /usr/local/lib/libavl.so.1.5 I really hope libavl is replaced or removed in the future, it's a pain to get working and looks like it will conflict with the real version of libavl (GNU or FreeBSD port) if you use software that relies on it. Remember, if the dependency you are compiling is giving you an error, try using gmake (GNU make) rather than FreeBSD's make. |
I managed to get through configure, but it still doesn't compile. raop.c includes <endian.h> , but on FreeBSD atleast, this needs to be <sys/endian.h>, with that altered, I still get the following errors: |
SorcererX, I'm pretty sure you can overcome that last error on line 1837 of raop.c by changing:
to
Maybe the change could be wrapped in #ifdefs, like:
Damn these macros, only bring more trouble. That's just a wrapper to memcmp. In Linux, it uses the s6_addr32 union member so it's 4 32-bit integer comparisons. If I was the author, I would replace the whole thing with a memcmp of sin6_addr instead of using a BSD-inspired macro that no-one is willing to standardize. I'm having trouble getting past configure... I know too little about autoconf. Can you help? |
Did anyone finally manage to install forked-daapd on FreeBSD 8.1? |
Install forked-daapd on FreeBSD 8.2-RELEASEHere is what I did to install forked-daapd on my FreeBSD 8.2 box. It definitely took quite some time to gather all the dependencies and figure out how to build them. So hopefully this helps others that want to do the same. Get build and run dependenciesGet port management tools
Install necessary packages. (This list is probably not complete.)
Install Java (for antlr3). This was kinda tricky because I had to Google the tar archives and put them manually in /usr/ports/distfiles (due to licensing issues)
Setup space for local packages
Compile AVL 0.3.5 statically
Get antlr3 and create a wrapper shell script
Get the C-Bindings for antlr3 and compile static libs
Compile and Install forked-daapd
If everything worked you should now be able to start all services:
|
How did you manage to get it to find libunistring? |
libunistring is in the ports tree, so it is quite simple. |
configure can't find libunistring on MacOS X. I'v installed libunistring locally at
/tmp_libs and start ./configure --with-libunistring-prefix=/tmp_libs and the configure start ends withchecking for libunistring... no, consider installing GNU libunistring
checking for libunistring... no, consider installing GNU libunistring
configure: error: GNU libunistring is required
Setting CFLAGS manually to include the libunistring include and lib dir works fine however.
Greetings
The text was updated successfully, but these errors were encountered: