Compiling protobuf-2.5.0 on synology

# repairing some system bugs
mkdir -p ~/temp/opt/i686-linux-gnu/lib
mv -v /opt/i686-linux-gnu/lib/libpthread-0.10.so ~/temp/opt/i686-linux-gnu/lib
ln -s /lib/libpthread.so.0 /opt/i686-linux-gnu/lib/libpthread-0.10.so
mkdir -p /usr/local/i686-linux-gnu/i686-linux-gnu/lib
ln -s /opt/lib/libstdc++.la /usr/local/i686-linux-gnu/i686-linux-gnu/lib/libstdc++.la

export CPPFLAGS="-march=i686"
export CXXFLAGS="-march=i686"

cd ~/compile
wget https://protobuf.googlecode.com/files/protobuf-2.5.0.tar.gz
tar xvzf protobuf-2.5.0.tar.gz
cd ~/compile/protobuf-2.5.0
~/x.sh ffpg-no-m4
./configure --prefix=$HOME/apps --enable-dependency-tracking

XPEnology

XPEnology-DSM-Change-Add-Serial-Number
http://cyanlabs.net/Thread-XPEnology-DSM-Change-Add-Serial-Number

XPEnology downloads
http://xpenology.me/downloads/

Synology software
http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/cross/stable/

Synology bootstrap
https://forum.synology.com/MediaWiki/index.php?title=How_to_Install_Bootstrap

Synology gui
http://192.168.1.121:5000/webman/index.cgi

Cases
http://www.inter-tech.de/index.php?option=com_content&view=article&id=1028%3Asy-m-208-desktop&catid=55%3Adesktop-gehaeuse&Itemid=843&lang=en
http://www.tacens.es/cases/mini-towers/versa/

Windows 10 Activator | KMSPico
http://windows10activatordownload.com/

Compiling PHP 7.0.0RC2

#See https://adrhc.go.ro/wordpress/common-commands-when-building/ for building environment, x.sh script and other things not defined here.
#Before starting do declare the environment variables specified to the link above.

NEW_BUILD_NAME=php
NEW_BUILD_VER1=7.0.0RC2
NEW_BUILD_VER=$NEW_BUILD_VER1-zts
MYSQL_BUILD_NAME_AND_VER=mysql-5.6.25
NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$MYSQL_BUILD_NAME_AND_VER-$NEW_BUILD_VER
ls -l /tmp/$NEW_BUILD_NAME-*
ls -l ~/ffp_0.7_armv5/packages/$NEW_BUILD_NAME-*
NEW_BUILD_NR=0

sed -i s/"HAVE_GD_XPM\s1"/"HAVE_GD_XPM 0"/g configure
sed -i s/"lxmlrpc\s"/"lxmlrpc-epi "/g configure

./configure --prefix=/ffp --enable-re2c-cgoto=shared,/ffp --with-apxs2=/ffp/opt/apache-2.2.29-worker/bin/apxs --enable-fpm --with-config-file-path=/ffp/etc/php.ini --with-config-file-scan-dir=/ffp/etc --with-libxml-dir=/ffp --with-openssl=shared,/ffp --with-pcre-regex=/ffp --with-zlib=shared,/ffp --enable-bcmath --with-bz2=shared,/ffp --enable-calendar --with-curl=shared,/ffp --with-enchant=shared,/ffp --enable-exif --enable-ftp --with-gd=shared,/ffp --with-jpeg-dir=/ffp --with-png-dir=/ffp --with-freetype-dir=/ffp --enable-gd-native-ttf --enable-gd-jis-conv --with-gettext=shared,/ffp --with-gmp=shared,/ffp --with-mhash=shared,/ffp --enable-intl --with-icu-dir=/ffp --enable-mbstring --with-mcrypt=shared,/ffp --with-mysql-sock=/ffp/var/run/mysql/mysql.sock --with-mysqli=shared,/ffp/bin/mysql_config --enable-opcache --enable-pcntl --with-pdo-mysql=shared,/ffp --with-readline=shared,/ffp --enable-shmop --enable-soap --enable-sockets --enable-wddx --with-libexpat-dir=/ffp --with-xmlrpc=shared,/ffp --with-iconv=shared,/ffp --with-xsl=/ffp --enable-zip --with-pear --with-pcre-dir=/ffp --with-openssl-dir=/ffp --with-zlib-dir=/ffp --with-iconv-dir=/ffp --with-webp-dir=/ffp --enable-opcache-file

sed -i s/"lxmlrpc\s"/"lxmlrpc-epi "/g Makefile
sed -i s/"define\sHAVE_GD_XPM\s0"/"undef HAVE_GD_XPM"/g main/php_config.h

./Makefile
BUILD_PHPDBG = $(LIBTOOL) --mode=link $(CC) -export-dynamic $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS_PROGRAM) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_BINARY_OBJS) $(PHP_PHPDBG_OBJS) $(EXTRA_LIBS) $(PHPDBG_EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -lreadline -o $(BUILD_BINARY)
BUILD_CGI = $(LIBTOOL) --mode=link $(CC) -export-dynamic $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS_PROGRAM) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_BINARY_OBJS) $(PHP_FASTCGI_OBJS) $(PHP_CGI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -lreadline -o $(SAPI_CGI_PATH)

#INSTALL
rm -r $HOME/temp/$NEW_BUILD_NAME_AND_VER
mkdir -p $HOME/temp/$NEW_BUILD_NAME_AND_VER/ffp/opt/apache-2.2.29-worker/conf/
cp -v /ffp/opt/apache-2.2.29-worker/conf/httpd.conf $HOME/temp/$NEW_BUILD_NAME_AND_VER/ffp/opt/apache-2.2.29-worker/conf/
INSTALL_ROOT=$HOME/temp/$NEW_BUILD_NAME_AND_VER make install
#if after make you are asked for running 'libtool --finish ...' then do it:
libtool --finish libs
#You'll get something like this:
#Libraries have been installed in:
#   /ffp/home/root/compile/$NEW_BUILD_NAME_AND_VER/libs -> here you'll find libphp5.so and libphp5.la
rm -vr $HOME/temp/$NEW_BUILD_NAME_AND_VER/ffp/opt/apache-2.2.29-worker/conf/
cd $HOME/temp/$NEW_BUILD_NAME_AND_VER
ls -l /tmp/php-*
ls -l ~/ffp_0.7_armv5/packages/php-*
#for the files found below remove the -n or/and -q php's call options:
grep -nr "\s\(-q\|-n\)\s" ffp/bin/
sed -i s/"\s-q"/""/ ffp/bin/peardev
sed -i s/"\s-q"/""/ ffp/bin/pear
sed -i s/"\s-q"/""/ ffp/bin/pecl
sed -i s/"\s-n"/""/ ffp/bin/pecl
sed -i s/"\!\/bin"/"\!\/ffp\/bin"/ ffp/bin/pecl
sed -i s/"\!\/bin"/"\!\/ffp\/bin"/ ffp/bin/pear
sed -i s/"\!\/bin"/"\!\/ffp\/bin"/ ffp/bin/peardev
makepkg $NEW_BUILD_NAME-$MYSQL_BUILD_NAME_AND_VER $NEW_BUILD_VER 0
cp -v /tmp/php-*.txz $HOME/ffp_0.7_armv5/packages/
funpkg -i $HOME/ffp_0.7_armv5/packages/$NEW_BUILD_NAME_AND_VER-arm-0.txz