Trouble building 2.2.13 on FreeBSD 4.11

Mark Edwards mark at antsclimbtree.com
Sat Apr 29 20:52:28 EDT 2006


Thanks for the suggestion.  My system has:

/usr/include/krb-protos.h
/usr/include/krb.h
/usr/include/krb5-protos.h
/usr/include/krb5-types.h
/usr/include/krb5.h
/usr/include/krb5_err.h
/usr/include/krb_db.h
/usr/include/krb_err.h

The configure script seems to be finding them okay, but then it  
complains about no Kerberos4:

checking krb.h usability... yes
checking krb.h presence... yes
checking for krb.h... yes
checking for krb_mk_priv in -lkrb... no
configure: WARNING: No Kerberos V4 found

Moreover, I wonder why this is any different between 4.2.12 and  
4.2.13...

On Apr 29, 2006, at 5:36 PM, Raymond T. Sundland wrote:

> This is due to the location of krb5.h which is not in your normal  
> include path.  I believe on a 4.x system, it's in /usr/include/ 
> kerberos/krb5.h .... but since the Cyrus configure/make scripts  
> doesn't look here by default, you need to do something like ln -s / 
> usr/include/kerberos/krb5.h /usr/include/.  Then run make again.
>
>
> Mark Edwards wrote:
>> I am having trouble compiling cyrus-imapd 2.2.13 on a FreeBSD  
>> 4.11p16 machine.  I can compile 2.2.12 just fine, and have been  
>> using it for many months.
>>
>> I have tried from the FreeBSD port, as well as downloading and  
>> compiling myself, with this configure statement:
>>
>> ./configure --with-bdb-incdir=/usr/local/include/db41/ --with-bdb- 
>> libdir=/usr/local/lib/ --with-sasl=/usr/local/
>> make
>>
>> Both methods result in the output below.  I don't use Kerberos nor  
>> do I have it installed, although I did also try installing the  
>> Kerberos4 and Kerberos5 ports, neither of which changed my results.
>>
>> Thanks for any help!
>>
>> .
>> .
>> .
>> gcc -c -I.. -I./../lib  -I./../sieve -I/usr/local/include/db41/  - 
>> I/usr/local/include -I/usr/local//include -DHAVE_CONFIG_H -g -O2   
>> quota_db.c
>> gcc -c -I.. -I./../lib  -I./../sieve -I/usr/local/include/db41/  - 
>> I/usr/local/include -I/usr/local//include -DHAVE_CONFIG_H -g -O2   
>> seen_db.c
>> gcc -c -I.. -I./../lib  -I./../sieve -I/usr/local/include/db41/  - 
>> I/usr/local/include -I/usr/local//include -DHAVE_CONFIG_H -g -O2   
>> idle_poll.c
>> rm -f libimap.a
>> ar cr libimap.a append.o mailbox.o mboxlist.o mupdate-client.o  
>> mboxname.o message.o  global.o imap_err.o mupdate_err.o proc.o  
>> setproctitle.o  convert_code.o duplicate.o saslclient.o  
>> saslserver.o signals.o  annotate.o search_engines.o squat.o  
>> squat_internal.o mbdump.o  imapparse.o telemetry.o user.o notify.o  
>> protocol.o quota_db.o  seen_db.o idle_poll.o
>> ranlib libimap.a
>> gcc -L/usr/local/lib/ -R/usr/local/lib/ -o imapd  ../master/ 
>> service.o pushstats.o backend.o imapd.o index.o tls.o version.o  
>> mutex_fake.o  libimap.a ../lib/libcyrus.a ../lib/libcyrus_min.a -L/ 
>> usr/local//lib  -R/usr/local//lib -lsasl2  -lssl -lcrypto   -lfl    
>> -L/usr/local/lib/  -R/usr/local/lib/ -ldb41 -lmd -lcom_err -lwrap
>> ../lib/libcyrus.a(auth_krb5.o): In function `mycanonifyid':
>> /usr/home/paimin/cyrus-imapd-2.2.13/lib/auth_krb5.c:122: undefined  
>> reference to `krb5_init_context'
>> /usr/home/paimin/cyrus-imapd-2.2.13/lib/auth_krb5.c:129: undefined  
>> reference to `krb5_parse_name'
>> /usr/home/paimin/cyrus-imapd-2.2.13/lib/auth_krb5.c:137: undefined  
>> reference to `krb5_get_default_realm'
>> /usr/home/paimin/cyrus-imapd-2.2.13/lib/auth_krb5.c:140: undefined  
>> reference to `krb5_build_principal'
>> /usr/home/paimin/cyrus-imapd-2.2.13/lib/auth_krb5.c:141: undefined  
>> reference to `krb5_free_principal'
>> /usr/home/paimin/cyrus-imapd-2.2.13/lib/auth_krb5.c:142: undefined  
>> reference to `krb5_free_context'
>> /usr/home/paimin/cyrus-imapd-2.2.13/lib/auth_krb5.c:149: undefined  
>> reference to `krb5_realm_compare'
>> /usr/home/paimin/cyrus-imapd-2.2.13/lib/auth_krb5.c:154: undefined  
>> reference to `krb5_free_principal'
>> /usr/home/paimin/cyrus-imapd-2.2.13/lib/auth_krb5.c:159: undefined  
>> reference to `krb5_unparse_name'
>> /usr/home/paimin/cyrus-imapd-2.2.13/lib/auth_krb5.c:160: undefined  
>> reference to `krb5_free_principal'
>> /usr/home/paimin/cyrus-imapd-2.2.13/lib/auth_krb5.c:161: undefined  
>> reference to `krb5_free_context'
>> /usr/home/paimin/cyrus-imapd-2.2.13/lib/auth_krb5.c:172: undefined  
>> reference to `krb5_free_principal'
>> /usr/home/paimin/cyrus-imapd-2.2.13/lib/auth_krb5.c:173: undefined  
>> reference to `krb5_free_context'
>> *** Error code 1
>>
>> Stop in /usr/home/paimin/cyrus-imapd-2.2.13/imap.
>> *** Error code 1
>>
>> Stop in /usr/home/paimin/cyrus-imapd-2.2.13.
>> ----
>> Cyrus Home Page: http://asg.web.cmu.edu/cyrus
>> Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
>> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>>


--
Mark Edwards




More information about the Info-cyrus mailing list