Gotit! Must have been my fault due to some additional linebreak. The 
correct modification in the makefile is:

CFLAGS := $(CFLAGS) -I. -I/usr/kerberos/include -D__UNIX__ -D__LINUX__ 
-D_REENTRANT=1 -D_THREAD_SAFE=1 -DHAS_S

... written in a single line.

Pls include "-I/usr/kerberos/include" in the standard Linux makefile, 
because this seems to be some problem on many Red Hat systems.


Thank you very much,
Harald




Harald Schneider wrote:
> I just added the path to /usr/kerbereos/include. If I don't do that, I 
> get another error:
> 
> g++   -I. -D__UNIX__ -D__LINUX__ -D_REENTRANT=1 -D_THREAD_SAFE=1 
> -DHAS_SYSMACHINE -D_GNU_SOURCE -D_LARGEFILE64_SOURCE 
> -D_POSIX_PTHREAD_SEMANTICS -DSYS_HAS_SENDFILE -O2 -c SSLBind.cpp
> In file included from /usr/include/openssl/ssl.h:179,
>                   from SSLBind.cpp:35:
> /usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory
> In file included from /usr/include/openssl/ssl.h:179,
>                   from SSLBind.cpp:35:
> /usr/include/openssl/kssl.h:134: 'krb5_enctype' is used as a type, but 
> is not
>     defined as a type.
> /usr/include/openssl/kssl.h:136: syntax error before `*' token
> /usr/include/openssl/kssl.h:149: syntax error before `*' token
> /usr/include/openssl/kssl.h:153: syntax error before `*' token
> /usr/include/openssl/kssl.h:155: syntax error before `*' token
> /usr/include/openssl/kssl.h:157: syntax error before `*' token
> /usr/include/openssl/kssl.h:159: syntax error before `*' token
> /usr/include/openssl/kssl.h:161: `krb5_context' was not declared in this 
> scope
> /usr/include/openssl/kssl.h:161: syntax error before `,' token
> /usr/include/openssl/kssl.h:162: `krb5_context' was not declared in this 
> scope
> /usr/include/openssl/kssl.h:162: syntax error before `,' token
> /usr/include/openssl/kssl.h:165: `krb5_timestamp' was not declared in this
>     scope
> /usr/include/openssl/kssl.h:165: syntax error before `,' token
> /usr/include/openssl/kssl.h:167: syntax error before `*' token
> /usr/include/openssl/kssl.h:169: `krb5_enctype' was not declared in this 
> scope
> /usr/include/openssl/kssl.h:169: syntax error before `,' token
> make: *** [SSLBind.o] Error 1
> 
> ---
> 
> The installed package is openssl-0.9.8-devel.tgz. Maybe that's the problem ?
> 
> 
> -- Harald
> 
> 
> 
> Davide Libenzi wrote:
>> On Mon, 21 Jan 2008, Harald Schneider wrote:
>>
>>> Hi,
>>>
>>> I tried to build XMail on this machine:
>>>
>>> Linux version 2.4.21-27.0.2.ELsmp ([EMAIL PROTECTED]) 
>>> (gcc version 3.2.3 20030502 (Red Hat Lin
>>> ux 3.2.3-47)) #1 SMP Wed Jan 12 23:35:44 EST 2005
>>>
>>> ... but the build process stops with
>>>
>>> make -f Makefile.lnx
>>> g++ -o bin/XMail MainLinux.o SysDepLinux.o SysDepUnix.o SysDepCommon.o 
>>> BuffSock.o CTRLSvr.o DNS.o DNSCache.o Errors.o ExtAliases.o FINGSvr.o 
>>> MailConfig.o MailSvr.o Maildir.o MailDomains.o MD5.o MiscUtils.o 
>>> LMAILSvr.o AliasDomain.o POP3GwLink.o POP3Svr.o POP3Utils.o PSYNCSvr.o 
>>> ResLocks.o SList.o SMAILSvr.o TabIndex.o SMAILUtils.o SMTPSvr.o 
>>> SMTPUtils.o ShBlocks.o StrUtils.o MessQueue.o QueueUtils.o SvrUtils.o 
>>> UsrMailList.o UsrAuth.o UsrUtils.o Base64Enc.o Filter.o SSLBind.o 
>>> SSLConfig.o Hash.o Array.o  -lssl -lcrypto -ldl -lpthread
>>> SysDepUnix.o(.text+0xa88): In function `SysSendFile(int, char const*, 
>>> long long, long long, int)':
>>> : multiple definition of `SysSendFile(int, char const*, long long, long 
>>> long, int)'
>>> SysDepLinux.o(.text+0x10): first defined here
>>> /usr/bin/ld: Warning: size of symbol `SysSendFile(int, char const*, long 
>>> long, long long, int)' changed from 548 in SysDepLinux.o to 9 in 
>>> SysDepUnix.o
>>> collect2: ld returned 1 exit status
>>> make: *** [bin/XMail] Error 1
>>>
>>> Any hints ?
>> Someone fiddled with the source/makefile. In the Linux makefile we define 
>> SYS_HAS_SENDFILE, and when that's defined, SysSendFile() in SysDepunix.cpp 
>> does not get compiled.
>>
>>
>>
>> - Davide
>>
>>
>> -
>> To unsubscribe from this list: send the line "unsubscribe xmail" in
>> the body of a message to [EMAIL PROTECTED]
>> For general help: send the line "help" in the body of a message to
>> [EMAIL PROTECTED]
>>
>>
> 

-- 


_______________________________________________________________________________

Harald Schneider
Softwareentwicklung + Mediadesign since 1993
Kreuzweg 17 - 66663 Merzig - Germany
USt-Ident DE163098498

Tel: 49 6861 792145  Fax: 49 6861 792146
Skype: hschneider66 ( skype:hschneider66?add )
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to