Custombuild is out of beta.

Is custombuild working fine on your system?


  • Total voters
    110
After you finished testing this build on my server yesterday, I tried this script on my test server, and discovered several times over the same problem. In my case it was stopping on ./build all d with the error to remove the lock file. Without question it was not being built anywhere else.

I got round it in the end by building apache and php separately rather than in one go. So I'm guessing at some point in the process it is checking and finding it's own lock.
 
I just confirmed this issue again so I can give you a bit more detail. It's reproducing for me building php4_cli with apache 2.2, and issuing ./build php d

Your welcome to use my testing server to reproduce this if you like.
 
If you want to make it work
Just do vi build and remove all the next lines in build :P

if [ -e ${WORKDIR}/.custombuild ]; then
echo "Another instance of custombild is running, please delete the .custombuild file if you want to use custombuild."
exit 1
fi
 
Have you tried to delete .custombuild file and run anything again?
 
i get the same error on centos 4.4
trying to delete the .custom file under installation but got some other error.. removing the folder and starting from scratch
 
This is slightly off the current topic.
Has anybody successfully used custombuild to install both php4 & php5?

If so, I could use some direction.:confused:

default_php=4
php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=yes
apache_ver=2.2
dovecot=no
mail-header-patch=yes

Many Thanks
 
i get the same error on centos 4.4
trying to delete the .custom file under installation but got some other error.. removing the folder and starting from scratch

I asked when exactly and didn't get an answer. I don't know what are you trying to compile, so, it's hard to understand where the problem exists.
 
I asked when exactly and didn't get an answer. I don't know what are you trying to compile, so, it's hard to understand where the problem exists.

I got the same problem, when running :

# ./build all y

right after

/bin/sh ./libtool --tag=CC --mode=link gcc -g -O2 -L/usr/local/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib -o gifanimtest gifanimtest.o ./libgd.la -ljpeg -lpng12 -lz -lm
gcc -g -O2 -Wl,-rpath -Wl,/usr/local/lib -o .libs/gifanimtest gifanimtest.o -L/usr/local/lib ./.libs/libgd.so -ljpeg -lpng12 -lz -lm
creating gifanimtest
make[2]: Leaving directory `/usr/local/directadmin/custombuild/gd-2.0.34'
make[1]: Leaving directory `/usr/local/directadmin/custombuild/gd-2.0.34'
Make complete
Installing gd-2.0.34...
Making install in config
make[1]: Entering directory `/usr/local/directadmin/custombuild/gd-2.0.34/config'
make[2]: Entering directory `/usr/local/directadmin/custombuild/gd-2.0.34/config'
test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
/usr/bin/install -c 'gdlib-config' '/usr/local/bin/gdlib-config'
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/usr/local/directadmin/custombuild/gd-2.0.34/config'
make[1]: Leaving directory `/usr/local/directadmin/custombuild/gd-2.0.34/config'
Making install in test
make[1]: Entering directory `/usr/local/directadmin/custombuild/gd-2.0.34/test'
make[2]: Entering directory `/usr/local/directadmin/custombuild/gd-2.0.34/test'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/usr/local/directadmin/custombuild/gd-2.0.34/test'
make[1]: Leaving directory `/usr/local/directadmin/custombuild/gd-2.0.34/test'
make[1]: Entering directory `/usr/local/directadmin/custombuild/gd-2.0.34'
make[2]: Entering directory `/usr/local/directadmin/custombuild/gd-2.0.34'
test -z "/usr/local/lib" || mkdir -p -- "/usr/local/lib"
/bin/sh ./libtool --mode=install /usr/bin/install -c 'libgd.la' '/usr/local/lib/libgd.la'
/usr/bin/install -c .libs/libgd.so.2.0.0 /usr/local/lib/libgd.so.2.0.0
(cd /usr/local/lib && { ln -s -f libgd.so.2.0.0 libgd.so.2 || { rm -f libgd.so.2 && ln -s libgd.so.2.0.0 libgd.so.2; }; })
(cd /usr/local/lib && { ln -s -f libgd.so.2.0.0 libgd.so || { rm -f libgd.so && ln -s libgd.so.2.0.0 libgd.so; }; })
/usr/bin/install -c .libs/libgd.lai /usr/local/lib/libgd.la
/usr/bin/install -c .libs/libgd.a /usr/local/lib/libgd.a
chmod 644 /usr/local/lib/libgd.a
ranlib /usr/local/lib/libgd.a
PATH="$PATH:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
/bin/sh ./libtool --mode=install /usr/bin/install -c 'annotate' '/usr/local/bin/annotate'
/usr/bin/install -c .libs/annotate /usr/local/bin/annotate
/bin/sh ./libtool --mode=install /usr/bin/install -c 'gdparttopng' '/usr/local/bin/gdparttopng'
/usr/bin/install -c .libs/gdparttopng /usr/local/bin/gdparttopng
/bin/sh ./libtool --mode=install /usr/bin/install -c 'gdtopng' '/usr/local/bin/gdtopng'
/usr/bin/install -c .libs/gdtopng /usr/local/bin/gdtopng
/bin/sh ./libtool --mode=install /usr/bin/install -c 'gd2copypal' '/usr/local/bin/gd2copypal'
/usr/bin/install -c .libs/gd2copypal /usr/local/bin/gd2copypal
/bin/sh ./libtool --mode=install /usr/bin/install -c 'gd2topng' '/usr/local/bin/gd2topng'
/usr/bin/install -c .libs/gd2topng /usr/local/bin/gd2topng
/bin/sh ./libtool --mode=install /usr/bin/install -c 'pngtogd' '/usr/local/bin/pngtogd'
/usr/bin/install -c .libs/pngtogd /usr/local/bin/pngtogd
/bin/sh ./libtool --mode=install /usr/bin/install -c 'pngtogd2' '/usr/local/bin/pngtogd2'
/usr/bin/install -c .libs/pngtogd2 /usr/local/bin/pngtogd2
/bin/sh ./libtool --mode=install /usr/bin/install -c 'webpng' '/usr/local/bin/webpng'
/usr/bin/install -c .libs/webpng /usr/local/bin/webpng
/bin/sh ./libtool --mode=install /usr/bin/install -c 'gd2togif' '/usr/local/bin/gd2togif'
/usr/bin/install -c .libs/gd2togif /usr/local/bin/gd2togif
/bin/sh ./libtool --mode=install /usr/bin/install -c 'gdcmpgif' '/usr/local/bin/gdcmpgif'
/usr/bin/install -c .libs/gdcmpgif /usr/local/bin/gdcmpgif
/bin/sh ./libtool --mode=install /usr/bin/install -c 'giftogd2' '/usr/local/bin/giftogd2'
/usr/bin/install -c .libs/giftogd2 /usr/local/bin/giftogd2
test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
/usr/bin/install -c 'bdftogd' '/usr/local/bin/bdftogd'
/usr/bin/install -c 'config/gdlib-config' '/usr/local/bin/gdlib-config'
test -z "/usr/local/include" || mkdir -p -- "/usr/local/include"
/usr/bin/install -c -m 644 'gd.h' '/usr/local/include/gd.h'
/usr/bin/install -c -m 644 'gdfx.h' '/usr/local/include/gdfx.h'
/usr/bin/install -c -m 644 'gd_io.h' '/usr/local/include/gd_io.h'
/usr/bin/install -c -m 644 'gdcache.h' '/usr/local/include/gdcache.h'
/usr/bin/install -c -m 644 'gdfontg.h' '/usr/local/include/gdfontg.h'
/usr/bin/install -c -m 644 'gdfontl.h' '/usr/local/include/gdfontl.h'
/usr/bin/install -c -m 644 'gdfontmb.h' '/usr/local/include/gdfontmb.h'
/usr/bin/install -c -m 644 'gdfonts.h' '/usr/local/include/gdfonts.h'
/usr/bin/install -c -m 644 'gdfontt.h' '/usr/local/include/gdfontt.h'
/usr/bin/install -c -m 644 'entities.h' '/usr/local/include/entities.h'
make[2]: Leaving directory `/usr/local/directadmin/custombuild/gd-2.0.34'
make[1]: Leaving directory `/usr/local/directadmin/custombuild/gd-2.0.34'
Done gd.
Another instance of custombild is running, please delete the .custombuild file if you want to use custombuild.
 
If you want to make it work
Just do vi build and remove all the next lines in build :P

if [ -e ${WORKDIR}/.custombuild ]; then
echo "Another instance of custombild is running, please delete the .custombuild file if you want to use custombuild."
exit 1
fi

Easier, remove just the exit 1 and add a ; to the echo line.
 
Thank you, Maniak.

Please find:
Code:
echo "Done gd.";
Code:
And add after:
rm -f ${WORKDIR}/.custombuild
 
Can't test the above fix because I hit a new bug. I noticed before I complied that running ./build update_data got a file not found when trying to dowload a file. It was trying to download zziplib-.tar.gz.

This is with version 1.0.11.

Looking at the script, it's not setting the version variable for this one, for redhat enterprise based distros.

This is the error I get when I compile:


gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error exit delayed from previous errors
Done.
./build: line 2320: cd: zziplib-: No such file or directory
Configuring zziplib-...
./build: line 2323: ./configure: is a directory
Done. Making zziplib-...
Trying to make zZip...
make: *** No targets specified and no makefile found. Stop.



And this is the area of code that is not defining the variable:

if [ $OS = "FreeBSD" ]; then
OS_VER=`uname -r | cut -d- -f1`
elif [ -e /etc/fedora-release ]; then
OS=fedora
OS_VER=`cat /etc/fedora-release | cut -d\ -f4`
if [ "$OS_VER" -ge "4" ]; then
ZZIP_VER=0.13.38
fi
elif [ -e $DEBIAN_VERSION ]; then
OS_VER=3.1
else
OS_VER=`cat /etc/redhat-release | cut -d\ -f5`
if [ "$OS_VER" = "" ]; then
OS_VER=`cat /etc/redhat-release | cut -d\ -f1`
fi
fi
 
little problem with php 5 compile

Trying this out on a new server with default options.conf file, './build all d' flies through gloriously until...

Code:
gcc: /usr/lib64/mysql/libmysqlclient.so: No such file or directory
make: *** [libphp5.la] Error 1

Of course, that object file exists, but in a slightly different location, so a little symbolic link fixed that.

Then, I ran into the next issue, and I couldn't find such an easy fix for it...

Code:
ext/openssl/.libs/openssl.o(.text+0x7294): In function `zif_openssl_seal':
/usr/local/directadmin/custombuild/php-5.2.3/ext/openssl/openssl.c:3608: undefined reference to `EVP_CIPHER_CTX_block_size'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

To go ahead and get this up and running, I compiled php from source. I know this really isn't really a custombuild problem, but it's an example of it not working on CentOS 4.4 64.
 
Anyone tried a new version of Custombuild with FreeType support? :) 1.0.13 will be released soon too.
 
Back
Top