1. Glenn Hutchings
  2. IFM
  3. Issues
Issue #1 resolved

compiling current ifm version on archlinux

Anonymous created an issue

hello,

I can't compile the lastest version of IFM. My system is x86 archlinux.

I get this:

gcc -DPACKAGE_NAME=\"ifm\" -DPACKAGE_TARNAME=\"ifm\" -DPACKAGE_VERSION=\"5.3\" -DPACKAGE_STRING=\"ifm\ 5.3\" -DPACKAGE_BUGREPORT=\"########(I hide your email)\" -DPACKAGE=\"ifm\" -DVERSION=\"5.3\" -DYYTEXT_POINTER=1 -DSTDC_HEADERS=1 -I. -DHAVE_MKSTEMP -g -O2 -MT vars-regex.o -MD -MP -MF .deps/vars-regex.Tpo -c -o vars-regex.o vars-regex.c vars-regex.c: In function ‘vr_create_translate’: vars-regex.c:379: erreur: ‘struct re_pattern_buffer’ has no member named ‘allocated’ vars-regex.c:380: erreur: ‘struct re_pattern_buffer’ has no member named ‘buffer’ vars-regex.c:381: erreur: ‘struct re_pattern_buffer’ has no member named ‘fastmap’ vars-regex.c:382: erreur: ‘struct re_pattern_buffer’ has no member named ‘translate’ vars-regex.c:384: attention : assignment makes pointer from integer without a cast vars-regex.c: In function ‘vr_destroy’: vars-regex.c:428: erreur: ‘struct re_pattern_buffer’ has no member named ‘buffer’ vars-regex.c:428: erreur: ‘struct re_pattern_buffer’ has no member named ‘buffer’ vars-regex.c:428: erreur: ‘struct re_pattern_buffer’ has no member named ‘buffer’ vars-regex.c:430: erreur: ‘struct re_pattern_buffer’ has no member named ‘fastmap’ vars-regex.c:431: erreur: ‘struct re_pattern_buffer’ has no member named ‘fastmap’ vars-regex.c:431: erreur: ‘struct re_pattern_buffer’ has no member named ‘fastmap’ vars-regex.c:431: erreur: ‘struct re_pattern_buffer’ has no member named ‘fastmap’ vars-regex.c: In function ‘vr_matched’: vars-regex.c:558: erreur: ‘RE_NREGS’ undeclared (first use in this function) vars-regex.c:558: erreur: (Each undeclared identifier is reported only once vars-regex.c:558: erreur: for each function it appears in.) vars-regex.c:561: erreur: invalid use of undefined type ‘struct re_registers’ vars-regex.c:564: erreur: invalid use of undefined type ‘struct re_registers’ vars-regex.c:564: erreur: invalid use of undefined type ‘struct re_registers’ make[2]: *** [vars-regex.o] Erreur 1

My gcc version is:

gcc -v Utilisation des specs internes. Target: i686-pc-linux-gnu Configuré avec: ../configure --prefix=/usr --enable-shared --enable-languages=c,c++,fortran,objc,obj-c++,treelang --enable-threads=posix --mandir=/usr/share/man --infodir=/usr/share/info --enable-__cxa_atexit --disable-multilib --libdir=/usr/lib --libexecdir=/usr/lib --enable-clocale=gnu --disable-libstdcxx-pch --with-tune=generic Modèle de thread: posix gcc version 4.3.2 (GCC)

-- Farvardin / http://esclinux.tk/

Comments (3)

  1. Glenn Hutchings repo owner

    This looks like a problem in the regex.h header file: the struct is recognized, but not its contents. I thought the regex.h header was pretty standard on GNU these days, so not quite sure what's going on here.

    But anyway, since this is a part of the Vars support library that's not used by IFM, the whole problem can be avoided by removing those parts completely.

  2. Log in to comment