Trouble compiling on cygwin

Rolf Leggewie <[email protected]> 09 Nov 2003 12:24:09 +0100
Newsgroups gmane.network.noffle.user
Message-ID <wkvfptbx9i.fsf@r*lf.news.nexgo.de>
Hi,

I have some trouble to compile noffle for use in my Cygwin system.

 ,----- [ compile log ]
|
|  leggewie@prod5 /usr/src/noffle-1.1.5
|  $ ./configure
|  loading cache ./config.cache
|  checking for a BSD compatible install... /usr/bin/install -c
|  checking whether build environment is sane... yes
|  checking whether make sets ${MAKE}... yes
|  checking for working aclocal... found
|  checking for working autoconf... found
|  checking for working automake... found
|  checking for working autoheader... found
|  checking for working makeinfo... missing
|  checking for gcc... gcc
|  checking whether the C compiler (gcc  ) works... yes
|  checking whether the C compiler (gcc  ) is a cross-compiler... no
|  checking whether we are using GNU C... yes
|  checking whether gcc accepts -g... yes
|  checking how to run the C preprocessor... gcc -E
|  checking whether gcc needs -traditional... no
|  checking for a BSD compatible install... /usr/bin/install -c
|  checking whether make sets ${MAKE}... (cached) yes
|  checking for sendmail... 'notfound'
|  checking for AIX... no
|  checking for POSIXized ISC... no
|  checking for minix/config.h... no
|  checking for gethostent... no
|  checking for gethostent in -lnsl... no
|  checking for setsockopt... yes
|  checking for gdbm_open in -lgdbm... yes
|  checking for gdbm.h... yes
|  checking for ANSI C header files... yes
|  checking for dirent.h that defines DIR... yes
|  checking for opendir in -ldir... no
|  checking for syslog.h... yes
|  checking for sys/resource.h... yes
|  checking for sys/utsname.h... yes
|  checking for fnmatch.h... yes
|  checking for errno.h... yes
|  checking for getopt.h... yes
|  checking for time.h... yes
|  checking for sys/time.h... yes
|  checking for signal.h... yes
|  checking for netdb.h... yes
|  checking for sys/socket.h... yes
|  checking for fcntl.h... yes
|  checking for limits.h...
|  checking for unistd.h... yes
|  checking for sys/types.h... yes
|  checking for regex.h... yes
|  checking for pwd.h... yes
|  checking for working const... yes
|  checking for size_t... yes
|  checking whether time.h and sys/time.h may both be included... yes
|  checking whether struct tm is in sys/time.h or time.h... time.h
|  checking socklen_t... yes
|  checking return type of signal handlers... void
|  checking for strftime... yes
|  checking for working fnmatch... yes
|  checking for fdopen... yes
|  checking for mkdir... yes
|  checking for select... yes
|  checking for socket... yes
|  checking for gethostname... yes
|  checking for uname... yes
|  checking for snprintf... yes
|  checking for vsnprintf... yes
|  checking for __vsnprintf... no
|  checking for __snprintf... no
|  checking for strerror... yes
|  checking for strstr... yes
|  checking for mktime... yes
|  checking for timegm... no
|  checking usersfile... /etc/noffle.users
|  checking other documentation directory... /usr/local/share/doc/noffle
|  checking spooldir... /var/spool/noffle
|  checking configfile... /etc/noffle.conf
|  updating cache ./config.cache
|  creating ./config.status
|  creating Makefile
|  creating src/Makefile
|  creating docs/Makefile
|  creating packages/Makefile
|  creating packages/redhat/Makefile
|  creating config.h
|
|  leggewie@prod5 /usr/src/noffle-1.1.5
|  $ make
|  make  all-recursive
|  make[1]: Entering directory `/usr/src/noffle-1.1.5'
|  Making all in src
|  make[2]: Entering directory `/usr/src/noffle-1.1.5/src'
|  gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c authenticate.c
|  gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c client.c
|  gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c configfile.c
|  gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c content.c
|  gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c control.c
|  gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c database.c
|  gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c dynamicstring.c
|  gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c expire.c
|  gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c fetch.c
|  gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c fetchlist.c
|  gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c filter.c
|  gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c group.c
|  gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c itemlist.c
|  gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c lock.c
|  gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c log.c
|  gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c noffle.c
|  gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c online.c
|  gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c outgoing.c
|  gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c over.c
|  gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c post.c
|  gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c protocol.c
|  gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c pseudo.c
|  gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c request.c
|  gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c server.c
|  gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c util.c
|  gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c wildmat.c
|  gcc  -g -O2  -o noffle  authenticate.o client.o configfile.o content.o control.o
|   database.o dynamicstring.o expire.o fetch.o fetchlist.o filter.o group.o itemli
|  st.o lock.o log.o noffle.o online.o outgoing.o over.o post.o protocol.o pseudo.o
|   request.o server.o util.o wildmat.o -lgdbm
|  database.o: In function `errMsg':
|  /usr/src/noffle-1.1.5/src/database.c:67: undefined reference to `gdbm_errno'
|  group.o: In function `errMsg':
|  /usr/src/noffle-1.1.5/src/group.c:67: undefined reference to `gdbm_errno'
|  collect2: ld returned 1 exit status
|  make[2]: *** [noffle] Error 1
|  make[2]: Leaving directory `/usr/src/noffle-1.1.5/src'
|  make[1]: *** [all-recursive] Error 1
|  make[1]: Leaving directory `/usr/src/noffle-1.1.5'
|  make: *** [all-recursive-am] Error 2
|
|  leggewie@prod5 /usr/src/noffle-1.1.5
|  $ ls -l /usr/include/gdbm.h
|  -rw-r--r--   1 leggewie 544          4744 Jul 20 09:59 /usr/include/gdbm.h
|
|  leggewie@prod5 /usr/src/noffle-1.1.5
|  $ uname -a
|  CYGWIN_98-4.10 PROD5 1.3.11(0.53/3/2) 2002-06-23 22:31 i586 unknown
|
 `-----

I am no expert at compiling things.  From what I gathered in the gdbm
manpage, gdbm_errno should be available in gdbm.h which resides in
/usr/include.  Explicitly passing --includedir=/usr/include and
--with-gdbm-include=/usr/include to ./configure did not alleviate the
problem.  I am stuck at this point.  Your help is greatly appreciated.

Best regards

Rolf Leggewie

-- 
http://home.arcor.de/leggewie/
http://leggewie.biz/hamster.htm


-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/