TRE not found in configure

Issue #102 resolved
Ron Squires created an issue

I have FreeBSD 9.1-RELEASE amd64 I have install all the required packages including tre-0.8.0 downloaded from the website. When I run ./configure --localstatedir=/var --enable-starttls --enable-tcpwrappers it fails with:

checking tre/tre.h usability... no checking tre/tre.h presence... no checking for tre/tre.h... no tre.h is not found checking for main in -ltre... no please install the tre development packages

I can locate the tre.h file in /usr/local/include/tre

What am I missing?

Comments (14)

  1. Janos SUTO repo owner

    Hello Ron, please try running CPPFLAGS=-I/usr/local/include ./configure .... and let's see if it helps.

  2. Ron Squires reporter

    Thanks for the quick response.

    ./configure --localstatedir=/var./configure --localstatedir=/var --enable-starttls --enable-tcpwrappers CPPFLAGS=-I/usr/local/include --enable-starttls --enable-tcpwrappers CPPFLAGS=-I/usr/local/include

    ran without problem;however, it will not make.

    /make/
    /Making all in src/
    /gcc -O2 -Wall -g -I/usr/local/include -c dirs.c/
    /dirs.c:13:19: error: piler.h: No such file or directory/
    /dirs.c:19: warning: 'struct __config' declared inside parameter list/
    /dirs.c:19: warning: its scope is only this definition or
    declaration, which is probably not what you want/
    /dirs.c: In function 'check_and_create_directories':/
    /dirs.c:20: error: 'SMALLBUFSIZE' undeclared (first use in this
    function)/
    /dirs.c:20: error: (Each undeclared identifier is reported only once/
    /dirs.c:20: error: for each function it appears in.)/
    /dirs.c:22: error: dereferencing pointer to incomplete type/
    /dirs.c:25: error: dereferencing pointer to incomplete type/
    /dirs.c:28: error: dereferencing pointer to incomplete type/
    /dirs.c:30: error: dereferencing pointer to incomplete type/
    /dirs.c:33: error: dereferencing pointer to incomplete type/
    /dirs.c:36: error: dereferencing pointer to incomplete type/
    /dirs.c:38: error: dereferencing pointer to incomplete type/
    /dirs.c:38: error: dereferencing pointer to incomplete type/
    /dirs.c:41: error: dereferencing pointer to incomplete type/
    /dirs.c:44: error: dereferencing pointer to incomplete type/
    /dirs.c:20: warning: unused variable 's'/
    /dirs.c: In function 'createdir':/
    /dirs.c:60: error: 'LOG_PRIORITY' undeclared (first use in this
    function)/
    /*** [dirs.o] Error code 1/
    
    /Stop in /usr/ports/distfiles/piler-0.1.23/src./
    /*** [all-recursive] Error code 1/
    
    /Stop in /usr/ports/distfiles/piler-0.1.23./
    
  3. Janos SUTO repo owner

    ok, try running CPPFLAGS="-I/usr/include -I/usr/local/include -I. -I.. -I/usr/include/mysql" ./configure ...

    perhaps you have to fix the mysql include path

  4. Ron Squires reporter

    I gave up on the BSD server and set it up on an Ubuntu server. I did get the program to compile and was able to access the web interface on the Ubuntu server. We are going to begin testing the server next week.

    I prefer to use freeBSD as the host, so I will go back to it later.

  5. Costel Balta

    Hello, any news regarding this error ? i'm getting the same error with "0.1.24" and "jsuto-piler-3c4ed238f26".

  6. János Csárdi-Braunstein

    I have similar error like this on CentOS 6.5:

    mailarchive src # wget https://bitbucket.org/jsuto/piler/downloads/piler-0.1.24.tar.gz -O - -q | tar xzf -
    mailarchive src # cd piler-0.1.24/
    mailarchive piler-0.1.24 # ./configure --enable-memcached --localstatedir=/var --enable-starttls --with-database=mysql --enable-tcpwrappers
    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 whether make sets $(MAKE)... yes
    checking for a BSD-compatible install... /usr/bin/install -c
    checking how to run the C preprocessor... gcc -E
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /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 sys/socket.h usability... yes
    checking sys/socket.h presence... yes
    checking for sys/socket.h... yes
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    checking syslog.h usability... yes
    checking syslog.h presence... yes
    checking for syslog.h... yes
    checking signal.h usability... yes
    checking signal.h presence... yes
    checking for signal.h... yes
    checking ctype.h usability... yes
    checking ctype.h presence... yes
    checking for ctype.h... yes
    checking for unistd.h... (cached) yes
    checking tcpd.h usability... yes
    checking tcpd.h presence... yes
    checking for tcpd.h... yes
    checking for hosts_access in -lwrap... yes
    checking for hosts_access in -lwrap... (cached) yes
    checking math.h usability... yes
    checking math.h presence... yes
    checking for math.h... yes
    checking for fabs in -lm... no
    checking openssl/sha.h usability... yes
    checking openssl/sha.h presence... yes
    checking for openssl/sha.h... yes
    checking for SHA256_Init in -lcrypto... yes
    checking for SHA256_Init in -lcrypto... (cached) yes
    checking openssl/ssl.h usability... yes
    checking openssl/ssl.h presence... yes
    checking for openssl/ssl.h... yes
    checking for SSL_write in -lssl... yes
    checking for SSL_write in -lssl... (cached) yes
    checking tre/tre.h usability... no
    checking tre/tre.h presence... no
    checking for tre/tre.h... no
    tre.h is not found
    checking for main in -ltre... yes
    checking for regcomp in -ltre... yes
    checking zip.h usability... no
    checking zip.h presence... no
    checking for zip.h... no
    zip.h is not found
    checking for main in -lzip... no
    checking zlib.h usability... yes
    checking zlib.h presence... yes
    checking for zlib.h... yes
    checking for main in -lz... yes
    checking for compress in -lz... yes
    checking for mysql_config... yes
    checking for main in -lguide... no
    
    
    run as user: piler
    piler data directory: /var/piler
    link mode: dynamic
    
    database: mysql
    tre library: yes
    starttls support: yes
    tcpwrappers support: yes
    
    memcached support: yes
    
    pdftotext: /usr/bin/pdftotext
    catdoc: /usr/bin/catdoc
    catppt: /usr/bin/catppt
    ppthtml: no
    xls2csv: /usr/bin/xls2csv
    unrtf: /usr/bin/unrtf
    
    
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating src/Makefile
    config.status: creating etc/Makefile
    config.status: creating util/Makefile
    config.status: creating init.d/Makefile
    config.status: creating test/Makefile
    config.status: creating contrib/imap/Makefile
    config.status: creating piler-config.h
    
    
    IMPORTANT! If you upgrade, be sure to read http://www.mailpiler.org/en/upgrade.html
    
    
    mailarchive piler-0.1.24 # make
    Making all in src
    make[1]: Entering directory `/usr/local/src/piler-0.1.24/src'
    gcc -O2 -Wall -g  -fPIC -I. -I..  -I/usr/include/mysql  -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -fPIC   -DUNIV_LINUX -DUNIV_LINUX -D_GNU_SOURCE -DHAVE_TRE -DHAVE_MEMCACHED -DNEED_MYSQL -c dirs.c -o dirs.o
    In file included from ./misc.h:12,
                     from ./piler.h:8,
                     from dirs.c:13:
    ./defs.h:15:24: error: tre/tre.h: No such file or directory
    dirs.c: In function 'createdir':
    dirs.c:59: warning: ignoring return value of 'chown', declared with attribute warn_unused_result
    make[1]: *** [dirs.o] Error 1
    make[1]: Leaving directory `/usr/local/src/piler-0.1.24/src'
    make: *** [all-recursive] Error 1
    

    This is a list of my installed packages: http://pastebin.com/8fu5Ev2M

    As you cna see, tre-devel is installed, these files are comming with this package:

    • /usr/include/tre
    • /usr/include/tre/regex.h
    • /usr/include/tre/tre-config.h
    • /usr/lib/libtre.so
    • /usr/lib/pkgconfig/tre.pc
    • /usr/include/tre
    • /usr/include/tre/regex.h
    • /usr/include/tre/tre-config.h
    • /usr/lib64/libtre.so
    • /usr/lib64/pkgconfig/tre.pc
  7. Janos SUTO repo owner

    Can you try editing src/defs.h, and change #include <tre/tre.h> to #include <tre.h>, then recompile it?

  8. János Csárdi-Braunstein

    Felraktam 8-as tre-t, így megkerülve a problémát.

    Ahogy néztem, az EPEL repóból 7-es jön, az RPMFORGE-ból 8-as. (Nálunk csak az epel van használatban alapból)

  9. Log in to comment