1 message in net.sourceforge.lists.courier-users[courier-users] make problem on freebsd
FromSent OnAttachments
MikeAug 20, 2002 11:20 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] make problem on freebsdActions...
From:Mike (mike@msquaredweb.net)
Date:Aug 20, 2002 11:20:42 am
List:net.sourceforge.lists.courier-users

Hello all…

I am running FBSD 3.4-STABLE (yes, I know its old). I have the latest qmail + vpopmail + sqwebmail up and running fine, and have had this setup running for quite some time. I would like to switch the web-based email to squirrelmail, which, from what I’ve read, requires Courier-IMAP to be installed.

So, I installed gdbm 1.8.0 from source.

-rw-r--r-- 1 bin bin 4744 Aug 20 13:52 /usr/local/include/gdbm.h

ldconfig shows that its also loaded:

55:-lgdbm.2 => /usr/local/lib/libgdbm.so.2

The next step was to go into the courier-imap source tree and run configure. This is my configure line:

./configure --prefix=/usr/local --exec-prefix=/usr/local --without-authldap \ --without-authshadow --with-authvchkpw --without-authcram \ --sysconfdir=/usr/local/etc/courier-imap \ --datadir=/usr/local/share/courier-imap \ --libexecdir=/usr/local/libexec/courier-imap \ --enable-workarounds-for-imap-client-bugs \ --disable-root-check --without-authdaemon

(Taken from http://matt.simerson.net/computing/qmail.toaster.shtml#courierimap)

Configure completed without a problem.

Then I ran 'make'.

c++ -DHAVE_CONFIG_H -I. -I. -I. -fhandle-exceptions -g -c testgdbm.C In file included from testgdbm.C:1: gdbmobj.h:11: gdbm.h: No such file or directory gmake[1]: *** [testgdbm.o] Error 1 gmake[1]: Leaving directory `/usr/home/mike/src/courier-imap-1.5.3.20020819/gdbmobj' gmake: *** [install-recursive] Error 1

Then I followed what the C-IMAP faq suggests, and did the following:

$ CPPFLAGS="-I/usr/local/include" $ LDFLAGS="-L/usr/local/lib" $ export CPPFLAGS $ export LDFLAGS $ <same configure line as above> $ make

c++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -fhandle-exceptions -g -c testgdbm.C In file included from /usr/include/stdlib.h:39, from gdbmobj.h:13, from testgdbm.C:1: /usr/include/sys/cdefs.h:64: warning: `__P' redefined /usr/local/include/gdbm.h:68: warning: this is the location of the previous definition c++ -fhandle-exceptions -g -L/usr/local/lib -o testgdbm testgdbm.o libgdbmobj.a -lgdbm testgdbm.o: In function `main': /usr/home/mike/src/courier-imap-1.5.3.20020819/gdbmobj/testgdbm.C(.text+ 0x815): undefined reference to `terminate(void)' testgdbm.o: In function `__throw': /usr/home/mike/src/courier-imap-1.5.3.20020819/gdbmobj/testgdbm.C(.text+ 0x8d9): undefined reference to `terminate(void)' *** Error code 1

Stop. *** Error code 1

Stop.

Any ideas? Thanks a lot for your time and help!

-M