FireFly Media Server › Firefly Media Server Forums › Firefly Media Server › Nightlies Feedback › svn-909 on the Sun
- This topic has 0 replies, 1 voice, and was last updated 18 years, 8 months ago by whocares.
-
AuthorPosts
-
02/04/2006 at 8:31 PM #218whocaresGuest
Since I’ve got a Sun T2000 right now I tried to make mt-daapd compile on that platform as well. The tips from Gonzo (see older postings) were quite helpful, but I found that for some reasons mt-daapd wouldn’t find the sqlite3 libraries when compiling and also wasn’t able to find libFLAC.so.7 on startup. So I took the liberty to modify “configure” a bit. Three changes there:
1) accept additional parameter –with-sqlite3 to specifiy the library path
2) if running on solaris add “-R/usr/local/lib:/opt/csw/lib:/usr/sfw/lib” to the LDFLAGS. This will put an additional search path for libraries into the binaries. Mind the order: I put my own stuff in /usr/local so that comes first. Second in the list comes the files I installed from the BlastWave repository. Last come the files from SunFreeware.
3) Small change to make ./configure –help output the info about “–with-sqlite3”Also incorporated in the patch file is the patch to “src/scan-xml.c” to include the timegm() function when being compiled on Solaris.
diff -ruN ./configure ../mt-daapd-svn-909.ru/configure
--- ./configure 2006-04-02 15:10:33.864560000 +0200
+++ ../mt-daapd-svn-909.ru/configure 2006-04-02 14:47:30.688526000 +0200
@@ -870,6 +870,7 @@
--with-gdbm-includes[=DIR] use gdbm include files in DIR
--with-gdbm-libs[=DIR] use gdbm lib files in DIR
--with-id3tag[=DIR] use id3tag in DIR
+--with-sqlite3[=DIR] use sqlite3 in DIR
Some influential environment variables:
CC C compiler command
@@ -4208,7 +4209,8 @@
CPPFLAGS="$CPPFLAGS -DNOT_HAVE_SA_LEN -D_XPG4_2"
CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__ -DHAVE_BROKEN_RECVIF_NAME"
CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
- LIBS="${LIBS} -lnsl -lsocket";;
+ LIBS="${LIBS} -lnsl -lsocket"
+ LDFLAGS="$LDFLAGS -R/usr/local/lib:/opt/csw/lib:/usr/sfw/lib";;
*freebsd*)
CPPFLAGS="$CPPFLAGS -DFREEBSD";;
*linux*)
@@ -4325,6 +4327,17 @@
fi;
+# Check whether --with-sqlite3 or --without-sqlite3 was given.
+if test "${with_sqlite3+set}" = set; then
+ withval="$with_sqlite3"
+
+ if test "$withval" != "no" -a "$withval" != "yes"; then
+ Z_DIR=$withval
+ CPPFLAGS="${CPPFLAGS} -I$withval/include"
+ LDFLAGS="${LDFLAGS} -L$withval/lib"
+ fi
+
+fi;
for ac_header in getopt.h
do
diff -ruN ./src/scan-xml.c ../mt-daapd-svn-909.ru/src/scan-xml.c
--- ./src/scan-xml.c 2006-04-02 15:10:33.867451000 +0200
+++ ../mt-daapd-svn-909.ru/src/scan-xml.c 2006-04-02 14:47:37.050530000 +0200
@@ -39,6 +39,24 @@
#include "redblack.h"
#include "strptime.h"
+#ifdef __sun__
+time_t timegm (struct tm *tm) {
+ time_t ret;
+ char *tz;
+
+ tz = getenv("TZ"«»);
+ setenv("TZ", "", 1);
+ tzset();
+ ret = mktime(tm);
+ if (tz)
+ setenv("TZ", tz, 1);
+ else
+ unsetenv("TZ"«»);
+ tzset();
+ return ret;
+}
+#endif
+
/* Forwards */
int scan_xml_playlist(char *filename);
void scan_xml_handler(int action,void* puser,char* info);
Feel free to use and/or incorporate into the next nightlies 😉
mt-daapd-svn-909.solaris10.patch.tar.gz
Post edited by: whocares, at: 2006/04/02 13:36
-
AuthorPosts
- The forum ‘Nightlies Feedback’ is closed to new topics and replies.