#5 closed defect (fixed)
Cannot build on freebsd
| Reported by: | Adam | Owned by: | somebody |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | component1 | Version: | |
| Keywords: | Cc: | ||
| Application: | PHP Version: | ||
| Other Exts: | SAPI: | ||
| Probability: | Blocked By: | ||
| Blocking: |
Description
make generates:
/usr/local/src/xcache/processor.c:1:28: processor_real.c: No such file or directory
* Error code 1
Stop in /usr/local/src/xcache/build.
Exit 1
So I tried gmake:
22:22 adam@admin # gmake /usr/local/src/xcache/build
gcc -I. -I/usr/local/src/xcache -DPHP_ATOM_INC -I/usr/local/src/xcache/build/include -I/usr/local/src/xcache/build/main -I/usr/local/src/xcache -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -DHAVE_CONFIG_H -g -O2 -E /usr/local/src/xcache/includes.c -o ./includes.i
/usr/bin/awk -f /usr/local/src/xcache/mkstructinfo.awk < ./includes.i > ./structinfo.m4
/usr/bin/awk: syntax error at source line 56 source file /usr/local/src/xcache/mkstructinfo.awk
context is
if (match(str, /\([ >>> ]*\*([)]+)\)/, <<< a)) {
/usr/bin/awk: illegal statement at source line 57 source file /usr/local/src/xcache/mkstructinfo.awk
/usr/bin/awk: syntax error at source line 63 source file /usr/local/src/xcache/mkstructinfo.awk
3 missing }'s
gmake: * [structinfo.m4] Error 2
This is freebsd 6.0 amd64
Change History (6)
comment:1 Changed 7 years ago by moo
- Resolution set to fixed
- Status changed from new to closed
comment:2 Changed 7 years ago by Adam
- Resolution fixed deleted
- Status changed from closed to reopened
12:25 adam@admin # svn up /usr/local/src/xcache
At revision 31.
Tried to run make again and got the same errors on the latest svn trunk.
comment:3 Changed 7 years ago by moo
did u run phpize/configure again after svn up? the last version have configure relative updates. it might hit the same problem but try to skip/ignore it.
i've also fixed any non posix compliant in mkstructinfo.awk except match(), it seems hard for me to find a substitute way. anyone got a patch?
i have no a bsd box to test, btw.
comment:4 Changed 7 years ago by ale@…
It still doesn't work, neither bsd make (this is not important, we have gmake) or awk or m4. This is the output from the current svn sources:
%gmake
gcc -I. -I/usr/home/alex/xcache-trunk -DPHP_ATOM_INC -I/usr/home/alex/xcache-trunk/include -I/usr/home/alex/xcache-trunk/main -I/usr/home/alex/xcache-trunk -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -DHAVE_CONFIG_H -g -O2 -E /usr/home/alex/xcache-trunk/includes.c -o ./includes.i
./structinfo.m4 is optional if XCache test is not enabled, feel free if it awk failed to produce it
/usr/bin/awk -f /usr/home/alex/xcache-trunk/mkstructinfo.awk < ./includes.i > ./structinfo.m4.tmp && mv -f ./structinfo.m4.tmp ./structinfo.m4
/usr/bin/awk: syntax error at source line 57 source file /usr/home/alex/xcache-trunk/mkstructinfo.awk
context is
if (match(str, /\([ >>> ]*\*([)]+)\)/, <<< a)) {
/usr/bin/awk: illegal statement at source line 58 source file /usr/home/alex/xcache-trunk/mkstructinfo.awk
/usr/bin/awk: syntax error at source line 64 source file /usr/home/alex/xcache-trunk/mkstructinfo.awk
3 missing }'s
gmake: [structinfo.m4] Error 2 (ignored)
/usr/bin/m4 -D srcdir="/usr/home/alex/xcache-trunk" -D builddir="." -E /usr/home/alex/xcache-trunk/processor/main.m4 > ./processor.out.tmp
m4: illegal option -- E
usage: m4 [-d flags] [-t name] [-gs] [-D name[=value]]...
[-U name]... [-I dirname]... file...
gmake: * [processor.out] Error 1
%
If you need I can give you a FreeBSD shell access.
comment:5 Changed 7 years ago by moo
- Resolution set to fixed
- Status changed from reopened to closed
comment:6 Changed 7 years ago by anonymous
Milestone milestone1 deleted


the problem should be gone. fixed in [22]. see [GettingSource] about getting source from svn.
btw, posix make/m4 should be enough now.
if would be nice if you keep on testing.