[Reconnoiter-users] compile on fedora-15?

Igor Galić i.galic at brainsware.org
Mon Dec 12 05:20:33 EST 2011



----- Original Message -----
> I'm trying to compile Reconnoiter on Fedora-15 and
> have run into some problems.  Below I copy from my
> notes (the first few items are FYI's in case they
> are useful, it's the last item that I don't know what
> to do about).
> 
> It's been about 20 years since I've done any C and
> even then I recall being intimidated by include mazes.
> 
> Any ideas how to fix this?
> 
> -----------------------------------------------------
> Run 'make' but it fails with
> 
>   - linking noitd
>   /usr/bin/ld: noit_module.o: undefined reference to
>     symbol 'dlopen@@GLIBC_2.1'
>   /usr/bin/ld: note: 'dlopen@@GLIBC_2.1' is defined in
>     DSO /lib/libdl.so.2 so try adding it to the linker command line
>   /lib/libdl.so.2: could not read symbols: Invalid operation
>   collect2: ld returned 1 exit status
> 
> Added "-ldl" to the LIBS= line in Makefile which got past that
> problem but then,
> 
>   stratcon_jlog_streamer.c: In function
>     'noit_connection_schedule_reattempt’:
>     stratcon_jlog_streamer.c:244:30: error: variable ‘cn_expected’\
>     set but not used [-Werror=unused-but-set-variable]
> and a bunch more for other variables, and finally;
>   cc1: all warnings being treated as errors
> 
> Removed "-Werror" from CFLAGS.
> 
> In directory reconnoiter/src/modules/,
> 
>   - linking snmp.so
>   In file included from stomp_driver.c:39:0:
>   libstomp.h:20:25: fatal error: apr_general.h: No such file or
>   directory
> 
> #~ yum install apr-devel apr-util-devel
> 
>  Installing:
>   apr-devel       i686        1.4.5-1.fc15           updates
>          186 k
>   apr-util-devel  i686        1.3.12-1.fc15          updates
>           69 k
>  Installing for dependencies:
>   db4-cxx         i686        4.8.30-3.fc15          f15dvd
>           644 k
>   db4-devel       i686        4.8.30-3.fc15          f15dvd
>            16 M
>   expat-devel     i686        2.0.1-11.fc15          f15dvd
>            54 k
> 
> However still get same error.  "yum whatprovides" says the file
> is in the "apr-devel" package.
> Added "-I/usr/include/apr-1" to the SHCFLAGS line in Makefile,
> Now get:
> 
>   In file included from /usr/include/apr-1/apr.h:7:0,
>                    from /usr/include/apr-1/apr_general.h:28,
>                    from libstomp.h:20,
>                    from stomp_driver.c:39:
>   /usr/include/apr-1/apr-i386.h:358:1: error: unknown type name
>   ‘off64_t’

This seems weird. And wrong.
Seems that Fedora has an interesting way of making sure header
files work on both i386 and amd64.
Although, I'm pretty sure that off64_t should exist anywhere:

Ubuntu 11.10 amd64

igalic at tynix ~ % ack  '__off64_t\s+off64_t' /usr/include | cat
/usr/include/unistd.h:251:typedef __off64_t off64_t;
/usr/include/stdio.h:98:typedef __off64_t off64_t;
/usr/include/x86_64-linux-gnu/sys/types.h:94:typedef __off64_t off64_t;
igalic at tynix ~ %

But it might be necessary to add -D_LARGEFILE64_SOURCE=1 to the
compile options.

Or, perhaps, instead, use `apr-config's --cppflags`

So long,

i

-- 
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.galic at brainsware.org
URL: http://brainsware.org/
GPG: 6880 4155 74BD FD7C B515  2EA5 4B1D 9E08 A097 C9AE


More information about the Reconnoiter-users mailing list