[WORKAROUND] Successful 8.2-RELEASE installation

farmer

New member
Joined
Oct 14, 2010
Messages
2
When running setup.sh on fresh 8.2-RELEASE I got the following error:

Code:
./configure:break:15627: not in while, until, select, or repeat loop
Done. Making pcre-8.12...
Trying to make PCRE...
make: no target to make.

so to fix it after some investigation I did this:
(you need to run atleast one failed setup.sh before this)
Code:
# cd /usr/local/directadmin/pcre-8.12
# vim configure +15627 [ or use another editor and go to line 15627 ]
> remove ";break" from line, and save file
# make distclean
# cd ..
# tar cvfx pcre-8.12.tar.gz pcre-8.12/
# md5 pcre-8.12.tar.gz [ and copy new hash ]
# vim versions.txt
> find pcre md5 hash and replace it with updated one, save file
# chflags schg versions.txt pcre-8.12.tar.gz 
> run setup.sh again, this time it should work!

to unlock files run:
# chflags noschg versions.txt pcre-8.12.tar.gz

### to directadmin dev team:
I am wondering why compile extra pcre version on FreeBSD if the script could just pkg_add -r it?
Also the script should be smarter and not install 8.0-release packages on 8.2..
 
made a mistake

that should be:
Code:
tar cvf[B]z[/B] pcre-8.12.tar.gz pcre-8.12/
 
Hello,

Thanks for the report.

1) The ./build pcre command seems to work fine on our 8.0 box, so I'm guessing that 8.2 is more strict about certain scripting syntax, hence the configure error is ignored on all versions except for 8.2. Either way, it would seem to be a bug in the pcre configure, as mentioned in the error, a break shouldn't exist if it's not in a loop (or perhaps they made up this rule for 8.2). They may release a fix if they know of the issue, else we may need to change our original source to remove the "break" line if it's an issue for all new 8.2 installs.

2) As for the reason for the source compile: It's because it's OS independent. The same code works on all of our supported operating systems without the need for OS/version checks. Also, on many older boxes, the pkg_add -r command doesn't work forever (once support is dropped FreeBSD). But with our own system, it works forever, all OS's, all versions, regardless of package system and EOL dates.

John
 
fourth

hi
tnk

on freebsd 8.3 i can not find cd /usr/local/directadmin/pcre-8.12
but i think is here : /usr/local/directadmin/custombuild/pcre-8.20

on configure file , line +15627 no see i ";break"

make distclean is not work
vps1# make distclean
make: don't know how to make distclean. Stop


not work : tar cvfx pcre-8.12.tar.gz pcre-8.12/ :
vps1# tar cvfx pcre-8.12.tar.gz pcre-8.12/
tar: Can't specify both -x and -c

but tar -xv pcre-8.12.tar.gz pcre-8.12/ :
tar: Error opening archive: Failed to open '/dev/sa0'

!!!

i see pcre-8.20.tar.gz version on my dir

i runing setup.sh again and see error again :(

help me

FreeBSD vps1 8.3-RELEASE-p3 FreeBSD 8.3-RELEASE-p3 #0: Tue Jun 12 00:39:29 UTC 2012 [email protected]:/usr/obj/usr/src/sys/GENERIC amd64
 
Code:
cd /usr/local/directadmin/custombuild
 ./build pcre

?

Code:
vps1# cd /usr/local/directadmin/custombuild
vps1# ./build pcre
mail-header-patch=yes is set in the options.conf, but is not required with this php version.
To enable the X-Mail header, set mail.add_x_header to 1 in your php.ini
File already exists:    pcre-8.20.tar.gz
MD5 Checksum on pcre-8.20.tar.gz passed.
Found /usr/local/directadmin/custombuild/pcre-8.20.tar.gz
Extracting ...
Done.
Configuring pcre-8.20...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for int64_t... yes
checking build system type... x86_64-unknown-freebsd8.3
checking host system type... x86_64-unknown-freebsd8.3
checking how to print strings... print -r
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-freebsd8.3 file names to x86_64-unknown-freebsd8.3 format... func_convert_file_noop
checking how to convert x86_64-unknown-freebsd8.3 file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... dlltool
checking how to associate runtime and link libraries... print -r --
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... freebsd8.3 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... freebsd8.3 ld.so
checking how to hardcode library paths into programs... immediate
checking whether ln -s works... yes
checking for ANSI C header files... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking for alias support in the linker... no
checking for alias support in the linker... no
checking string usability... yes
checking string presence... yes
checking for string... yes
checking bits/type_traits.h usability... no
checking bits/type_traits.h presence... no
checking for bits/type_traits.h... no
checking type_traits.h usability... no
checking type_traits.h presence... no
checking for type_traits.h... no
checking for strtoq... yes
checking for long long... yes
checking for unsigned long long... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for bcopy... yes
checking for memmove... yes
checking for strerror... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for gzopen in -lz... yes
checking bzlib.h usability... yes
checking bzlib.h presence... yes
checking for bzlib.h... yes
checking for libbz2... yes
./configure:break:16521: not in while, until, select, or repeat loop
Done. Making pcre-8.20...
Trying to make PCRE...
make: no target to make.

*** The make has failed, would you like to try to make again? (y,n):
y

Trying to make PCRE...
make: no target to make.

*** The make has failed, would you like to try to make again? (y,n):
 
What if you try to install pcre from FreeBSd ports?

Code:
cd /usr/ports/devel/pcre
make clean && make install all

and then try to install Directadmin once more.

Note, if you might want somebody to do it for you, please do not hesitate, as there are some guys (including me) here who are ready to give the best commerce service to solve your issue.
 
not work !
./configure:break:16521: not in while, until, select, or repeat loop
Done. Making pcre-8.20...
Trying to make PCRE...
make: no target to make.
 
Back
Top