On Thursday 22 October 2009, Allen wrote: > I'm considering using AIDE (intrusion detection program) on my home > PC and would like to do a trial run. My PC mostly runs Fedora. > Although AIDE is available as a Fedora package, I'm trying to > install it from source.
Okay I think I understand your reason for wanting to compile this particular package -- because you want to run it from an externally mounted drive. However I think you could do the same thing using the version of AIDE that ships with Fedora, which would save you a lot of trouble. > I downloaded the source gzip file and extracted the directory to my > home directory. > > The procedure I'm trying to follow is: > > 1. ./configure (a script included in the AIDE directory) ./configure is usually an Autoconf script. I've yet to make one of these Autoconf scripts, but I've heard developers complaining about how complicated they are to get right. > 2. make > 3. make install > > I would then like to transfer the AIDE binary, configuration file, > and database to a CD-RW disc or to a flash drive. > > The ./configure step failed. I have no experience compiling C > programs. > > >From the following (edited) "config.log" file can someone see why > > configure failed? (I'm assuming the error is due to a mistake on my > part having to do with C libraries.) Many GNU/Linux software libraries have two packages you can install -- the normal package and the "-dev" package. The "-dev" package is needed if you want to compile programs that use that library. > =================================================================== > =================================================================== >From here I'm going to skip ahead to some of the issues: > configure:3571: checking lex output file root > configure:3587: result: lex.yy > configure:3592: checking lex library > configure:3611: gcc -o conftest -g -O2 conftest.c >&5 > /tmp/cc8AUdVW.o: In function `input': > /home/aweiner/aide-0.13.1/lex.yy.c:1168: undefined reference to > `yywrap' /tmp/cc8AUdVW.o: In function `yylex': > /home/aweiner/aide-0.13.1/lex.yy.c:867: undefined reference to > `yywrap' /tmp/cc8AUdVW.o: In function `main': > /home/aweiner/aide-0.13.1/conftest.l:17: undefined reference to > `yywrap' collect2: ld returned 1 exit status > configure:3617: $? = 1 > > configure: failed program was: > | #line 3 "lex.yy.c" > > < snip source-code listing> I'm guessing this is a missing lex -dev library. > configure:3611: gcc -o conftest -g -O2 conftest.c -lfl >&5 > configure:3617: $? = 0 > configure:3638: result: -lfl > configure:3644: checking whether yytext is a pointer > configure:3665: gcc -o conftest -g -O2 conftest.c -lfl >&5 > configure:3671: $? = 0 > configure:3690: result: yes > configure:3709: checking for pkg-config > configure:3727: found /usr/bin/pkg-config > configure:3740: result: /usr/bin/pkg-config > configure:3749: checking whether to enable maintainer-specific > portions of Makefiles > configure:3758: result: no > configure:3927: checking for library containing syslog > configure:3968: gcc -o conftest -g -O2 -static -static conftest.c > >&5 /usr/bin/ld: cannot find -lc > collect2: ld returned 1 exit status > configure:3974: $? = 1 > > configure: failed program was: > | /* confdefs.h. */ > > < snip source-code listing> Probably a missing syslog -dev library. The reason the -dev libraries aren't installed along with the normal "binary" libraries is that most people only use the executable portion of libraries, so distributions usually only install a very minimal set of -dev libraries to start with in order to save space. At least some distributions also deal with dependencies on versions of the source for a package. For instance on Debian after installing a source package via "apt-get source <package>" it's possible to run "apt-get build-dep <package" to install all of the required development libraries necessary to build [i.e. compile] that source package. As you're trying to compile AIDE from source that's not through Fedora then these source dependencies are not available (and I don't know how these work through RPM/YUM or even if Fedora/RHEL deals with source dependencies), so you'll have to figure out by hand which development libraries you'll need to install. Hopefully this helps some. -- Chris -- Chris Knadle [email protected] _______________________________________________ Mid-Hudson Valley Linux Users Group http://mhvlug.org http://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug Upcoming Meetings (6pm - 8pm) MHVLS Auditorium Oct 7 - Glade - Linux GUIs made easy Nov 4 - Google Wave Dec 2 - MythTV Jan 6 - Git
