Page 1 of 1

Compilation errors with TRE library

Posted: Fri Jun 11, 2004 3:16 pm
by z0ny
I get various compilation errors during an Unreal3.2 compile on a SuSE machine:

Code: Select all

[...]

Configuration summary
=====================

TRE is now configured as follows:

* Compilation environment

  CC       = gcc
  CFLAGS   = -O1 -fomit-frame-pointer -Wall
  CPP      = gcc -E
  CPPFLAGS =
  LD       = /usr/bin/ld
  LDFLAGS  =
  Use alloca():                       yes

* TRE options

  Development-time debugging:         no
  System regex ABI compatibility:     no
  Wide character (wchar_t) support:   no (disabled with --disable-wchar)
  Multibyte character set support:    no (disabled with --disable-multibyte)
  Approximate matching support:       yes
  Build and install agrep:            no

compiling TRE regex library
gmake  all-recursive
gmake[1]: Entering directory `/home/ircd/Unreal3.2/extras/tre-0.6.6'
Making all in lib
gmake[2]: Entering directory `/home/ircd/Unreal3.2/extras/tre-0.6.6/lib'
gmake  all-am
gmake[3]: Entering directory `/home/ircd/Unreal3.2/extras/tre-0.6.6/lib'
source='tre-mem.c' object='tre-mem.lo' libtool=yes \
depfile='.deps/tre-mem.Plo' tmpdepfile='.deps/tre-mem.TPlo' \
depmode=gcc /bin/sh ../utils/depcomp \
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.     -O1 -fomit-frame-pointer -Wall -c -o tre-mem.lo tre-mem.c
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -O1 -fomit-frame-pointer -Wall -c tre-mem.c -Wp,-MD,.deps/tre-mem.TPlo -o tre-mem.o
source='tre-compile.c' object='tre-compile.lo' libtool=yes \
depfile='.deps/tre-compile.Plo' tmpdepfile='.deps/tre-compile.TPlo' \
depmode=gcc /bin/sh ../utils/depcomp \
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.     -O1 -fomit-frame-pointer -Wall -c -o tre-compile.lo tre-compile.c
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -O1 -fomit-frame-pointer -Wall -c tre-compile.c -Wp,-MD,.deps/tre-compile.TPlo -o tre-compile.o
tre-compile.c: In function `tre_compile':
tre-compile.c:4137: structure has no member named `TRE_REGEX_T_FIELD'
tre-compile.c:4149: structure has no member named `TRE_REGEX_T_FIELD'
tre-compile.c: In function `tre_free':
tre-compile.c:4164: structure has no member named `TRE_REGEX_T_FIELD'
tre-compile.c:4160: warning: `tnfa' might be used uninitialized in this function
gmake[3]: *** [tre-compile.lo] Error 1
gmake[3]: Leaving directory `/home/ircd/Unreal3.2/extras/tre-0.6.6/lib'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/home/ircd/Unreal3.2/extras/tre-0.6.6/lib'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/ircd/Unreal3.2/extras/tre-0.6.6'
gmake: *** [all] Error 2
installing TRE regex library
Making install in lib
gmake[1]: Entering directory `/home/ircd/Unreal3.2/extras/tre-0.6.6/lib'
source='tre-compile.c' object='tre-compile.lo' libtool=yes \
depfile='.deps/tre-compile.Plo' tmpdepfile='.deps/tre-compile.TPlo' \
depmode=gcc /bin/sh ../utils/depcomp \
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.     -O1 -fomit-frame-pointer -Wall -c -o tre-compile.lo tre-compile.c
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -O1 -fomit-frame-pointer -Wall -c tre-compile.c -Wp,-MD,.deps/tre-compile.TPlo -o tre-compile.o
tre-compile.c: In function `tre_compile':
tre-compile.c:4137: structure has no member named `TRE_REGEX_T_FIELD'
tre-compile.c:4149: structure has no member named `TRE_REGEX_T_FIELD'
tre-compile.c: In function `tre_free':
tre-compile.c:4164: structure has no member named `TRE_REGEX_T_FIELD'
tre-compile.c:4160: warning: `tnfa' might be used uninitialized in this function
gmake[1]: *** [tre-compile.lo] Error 1
gmake[1]: Leaving directory `/home/ircd/Unreal3.2/extras/tre-0.6.6/lib'
gmake: *** [install-recursive] Error 1
configure: creating ./config.status
sed: can't read conftest.defines: No such file or directory
config.status: creating Makefile
config.status: creating src/modules/Makefile
config.status: creating unreal
config.status: creating ircdcron/ircdchk
./config.status: line 787: syntax error near unexpected token `${ac_dA}BUFFERPOOL${ac_dB}BUFFERPOOL${ac_dC}(18'
./config.status: line 787: `${ac_dA}BUFFERPOOL${ac_dB}BUFFERPOOL${ac_dC}(18 * MAXSENDQLENGTH)${ac_dD}'
Any idea somebody? :shock:

z0ny

Posted: Sat Jun 12, 2004 3:55 am
by codemastr
./config.status: line 787: syntax error near unexpected token `${ac_dA}BUFFERPOOL${ac_dB}BUFFERPOOL${ac_dC}(18'
./config.status: line 787: `${ac_dA}BUFFERPOOL${ac_dB}BUFFERPOOL${ac_dC}(18 * MAXSENDQLENGTH)${ac_dD}'

No idea what would lead to that, something is corrupt. I'd suggest make clean and ./Config again.

Posted: Sun Jun 13, 2004 8:39 am
by z0ny
Well the problem is, that is a fresh unpack. Unreal3.2-RC1 compiled on that box once but with the Unreal3.2 package I get those problems... :?

z0ny

Posted: Sun Jun 13, 2004 4:12 pm
by Syzop
Could you verify the md5sum of that package? It should be 'cc24872a1382bc11e2fac96ac6b016f2'

Also, do you have enough free harddisk space / quota? (just in case something silently fails ;p).

Posted: Sun Jun 13, 2004 4:44 pm
by z0ny
I can confirm that md5sum, I even downloaded the package a few times - also thought the package was corrupt. But we can exclude this option now as we have compared the md5sums. Also quota definitely isn't the problem (there is no quota :)). Anyways I can't image why that fails ... are the "structure has no member" errors normal? Thanks.

z0ny