| 1 | | |
| | 1 | Currently, Transmission 0.96 is the last known version to have an easy to fix BeOS GUI client. |
| | 2 | Any version beyond 0.96 requires significant updating of the BeOS GUI client to reflect libtransmission's code refactoring. |
| | 3 | However, the CLI client still compiles easily. |
| | 4 | |
| | 5 | Install intltool-0.23 http://ftp.gnome.org/pub/gnome/sources/intltool/0.23/ |
| | 6 | |
| | 7 | Other dependencies were previously installed. |
| | 8 | |
| | 9 | apply patch -p0 < transmission-1.42-haiku.diff |
| | 10 | |
| | 11 | libtoolize --force --copy |
| | 12 | autoreconf --force --install -I config -I m4 |
| | 13 | ./configure --prefix=/boot/common LDFLAGS="-lnetwork -lintl" |
| | 14 | |
| | 15 | in files: |
| | 16 | third-party/libnatpmp/Makefile |
| | 17 | third-party/miniupnp/Makefile |
| | 18 | libtransmission/Makefile |
| | 19 | daemon/Makefile |
| | 20 | cli/Makefile |
| | 21 | remove: |
| | 22 | -Wdeclaration-after-statement |
| | 23 | |
| | 24 | make |
| | 25 | |
| | 26 | transmissioncli will be located in $(topsrcdir)/cli |
| | 27 | |
| | 28 | |
| | 29 | |
| | 30 | |
| | 31 | |
| | 32 | |
| | 33 | |
| | 34 | |
| | 35 | ----------- |
| | 36 | NOTE: |
| | 37 | ------------ |
| | 38 | The following two code blocks and make output are referring to third-party/libnatpmp/getgateway.c |
| | 39 | They are included purely for reference as to why #define USE_PROC_NET_ROUTE is being used. |
| | 40 | |
| | 41 | |
| | 42 | |
| | 43 | ################ |
| | 44 | #ifdef __HAIKU__ |
| | 45 | #undef USE_PROC_NET_ROUTE |
| | 46 | #undef USE_SOCKET_ROUTE |
| | 47 | #define USE_SYSCTL_NET_ROUTE |
| | 48 | #endif |
| | 49 | ################ |
| | 50 | |
| | 51 | make[2]: Entering directory `/stuff-a/_code/transmission/transmission-1.42-patched/third-party/libnatpmp' |
| | 52 | source='getgateway.c' object='getgateway.o' libtool=no \ |
| | 53 | DEPDIR=.deps depmode=gcc /bin/sh ../../depcomp \ |
| | 54 | gcc -DPACKAGE_NAME=\"transmission\" -DPACKAGE_TARNAME=\"transmission\" -DPACKAGE_VERSION=\"1.42\" -DPACKAGE_STRING=\"transmission\ 1.42\" -DPACKAGE_BUGREPORT=\"http://trac.transmissionbt.com/newticket\" -DPACKAGE=\"transmission\" -DVERSION=\"1.42\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSTDC_HEADERS=1 -Dva_copy\(dest,src\)=memcpy\(\&dest,\&src,sizeof\(va_list\)\) -DHAVE_LIBINTL_H=1 -DGETTEXT_PACKAGE=\"transmission\" -DHAVE_LOCALE_H=1 -I. -DENABLE_STRNATPMPERR -g -Wall -Wformat-security -W -Wmissing-prototypes -Wdeclaration-after-statement -O3 -funroll-loops -c getgateway.c |
| | 55 | /stuff-a/_code/transmission/transmission-1.42-patched/third-party/libnatpmp/getgateway.c:67: sys/sysctl.h: No such file or directory |
| | 56 | make[2]: *** [getgateway.o] Error 1 |
| | 57 | make[2]: Leaving directory `/stuff-a/_code/transmission/transmission-1.42-patched/third-party/libnatpmp' |
| | 58 | make[1]: *** [all-recursive] Error 1 |
| | 59 | make[1]: Leaving directory `/stuff-a/_code/transmission/transmission-1.42-patched/third-party' |
| | 60 | |
| | 61 | |
| | 62 | |
| | 63 | ################ |
| | 64 | #ifdef __HAIKU__ |
| | 65 | #undef USE_PROC_NET_ROUTE |
| | 66 | #define USE_SOCKET_ROUTE |
| | 67 | #undef USE_SYSCTL_NET_ROUTE |
| | 68 | #endif |
| | 69 | ################ |
| | 70 | |
| | 71 | make[2]: Entering directory `/stuff-a/_code/transmission/transmission-1.42-patched/third-party/libnatpmp' |
| | 72 | source='getgateway.c' object='getgateway.o' libtool=no \ |
| | 73 | DEPDIR=.deps depmode=gcc /bin/sh ../../depcomp \ |
| | 74 | gcc -DPACKAGE_NAME=\"transmission\" -DPACKAGE_TARNAME=\"transmission\" -DPACKAGE_VERSION=\"1.42\" -DPACKAGE_STRING=\"transmission\ 1.42\" -DPACKAGE_BUGREPORT=\"http://trac.transmissionbt.com/newticket\" -DPACKAGE=\"transmission\" -DVERSION=\"1.42\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSTDC_HEADERS=1 -Dva_copy\(dest,src\)=memcpy\(\&dest,\&src,sizeof\(va_list\)\) -DHAVE_LIBINTL_H=1 -DGETTEXT_PACKAGE=\"transmission\" -DHAVE_LOCALE_H=1 -I. -DENABLE_STRNATPMPERR -g -Wall -Wformat-security -W -Wmissing-prototypes -Wdeclaration-after-statement -O3 -funroll-loops -c getgateway.c |
| | 75 | cc1: Invalid option `-Wdeclaration-after-statement' |
| | 76 | /stuff-a/_code/transmission/transmission-1.42-patched/third-party/libnatpmp/getgateway.c:195: field `m_rtm' has incomplete type |
| | 77 | /stuff-a/_code/transmission/transmission-1.42-patched/third-party/libnatpmp/getgateway.c: In function `getdefaultgateway': |
| | 78 | /stuff-a/_code/transmission/transmission-1.42-patched/third-party/libnatpmp/getgateway.c:210: `RTA_DST' undeclared (first use in this function) |
| | 79 | /stuff-a/_code/transmission/transmission-1.42-patched/third-party/libnatpmp/getgateway.c:210: (Each undeclared identifier is reported only once |
| | 80 | /stuff-a/_code/transmission/transmission-1.42-patched/third-party/libnatpmp/getgateway.c:210: for each function it appears in.) |
| | 81 | /stuff-a/_code/transmission/transmission-1.42-patched/third-party/libnatpmp/getgateway.c:210: `RTA_NETMASK' undeclared (first use in this function) |
| | 82 | /stuff-a/_code/transmission/transmission-1.42-patched/third-party/libnatpmp/getgateway.c:214: sizeof applied to an incomplete type |
| | 83 | /stuff-a/_code/transmission/transmission-1.42-patched/third-party/libnatpmp/getgateway.c:216: `RTM_GET' undeclared (first use in this function) |
| | 84 | /stuff-a/_code/transmission/transmission-1.42-patched/third-party/libnatpmp/getgateway.c:218: `RTM_VERSION' undeclared (first use in this function) |
| | 85 | /stuff-a/_code/transmission/transmission-1.42-patched/third-party/libnatpmp/getgateway.c:245: arithmetic on pointer to an incomplete type |
| | 86 | /stuff-a/_code/transmission/transmission-1.42-patched/third-party/libnatpmp/getgateway.c:246: dereferencing pointer to incomplete type |
| | 87 | /stuff-a/_code/transmission/transmission-1.42-patched/third-party/libnatpmp/getgateway.c:248: dereferencing pointer to incomplete type |
| | 88 | /stuff-a/_code/transmission/transmission-1.42-patched/third-party/libnatpmp/getgateway.c:250: `RTA_GATEWAY' undeclared (first use in this function) |
| | 89 | /stuff-a/_code/transmission/transmission-1.42-patched/third-party/libnatpmp/getgateway.c:206: warning: `msg_hdr' might be used uninitialized in this function |
| | 90 | make[2]: *** [getgateway.o] Error 1 |
| | 91 | make[2]: Leaving directory `/stuff-a/_code/transmission/transmission-1.42-patched/third-party/libnatpmp' |
| | 92 | make[1]: *** [all-recursive] Error 1 |
| | 93 | make[1]: Leaving directory `/stuff-a/_code/transmission/transmission-1.42-patched/third-party' |