Error in digestmd5.c while compiling cyrus-sasl-2.1.20-7.src.rpm
Here's the end of the compile output: <snip> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../lib -I../sasldb -I../include -I/usr/include/heimdal -I/usr/include/mysql -I/usr/include/pgsql -Wall -W -fno-strict-aliasing -O3 -march=i686 -fomit-frame-pointer -mcpu=pentium4m -MT digestmd5.lo -MD -MP -MF .deps/digestmd5.Tpo -c digestmd5.c -fPIC -DPIC -o digestmd5.lodigestmd5.c:77:19: des.h: No such file or directory digestmd5.c:810: error: syntax error before "des_key_schedule" digestmd5.c:810: warning: no semicolon at end of struct or union digestmd5.c:811: warning: type defaults to `int' in declaration of `ivec' digestmd5.c:811: warning: data definition has no type or storage class digestmd5.c:812: error: syntax error before "keysched2" digestmd5.c:812: warning: type defaults to `int' in declaration of `keysched2' digestmd5.c:812: warning: data definition has no type or storage class digestmd5.c: In function `dec_3des': digestmd5.c:847: warning: implicit declaration of function `des_ede2_cbc_encrypt' digestmd5.c:850: error: dereferencing pointer to incomplete type digestmd5.c:851: error: dereferencing pointer to incomplete type digestmd5.c:852: error: dereferencing pointer to incomplete type digestmd5.c:853: error: `DES_DECRYPT' undeclared (first use in this function) digestmd5.c:853: error: (Each undeclared identifier is reported only once digestmd5.c:853: error: for each function it appears in.) digestmd5.c: In function `enc_3des': digestmd5.c:898: error: dereferencing pointer to incomplete type digestmd5.c:899: error: dereferencing pointer to incomplete type digestmd5.c:900: error: dereferencing pointer to incomplete type digestmd5.c:901: error: `DES_ENCRYPT' undeclared (first use in this function) digestmd5.c: In function `init_3des': digestmd5.c:916: error: invalid application of `sizeof' to an incomplete type digestmd5.c:921: warning: implicit declaration of function `des_key_sched' digestmd5.c:921: error: `des_cblock' undeclared (first use in this function) digestmd5.c:921: error: syntax error before ')' token digestmd5.c:925: error: syntax error before ')' token digestmd5.c:927: error: dereferencing pointer to incomplete type digestmd5.c:932: error: increment of pointer to unknown structure digestmd5.c:932: error: arithmetic on pointer to an incomplete type digestmd5.c:934: error: syntax error before ')' token digestmd5.c:938: error: syntax error before ')' token digestmd5.c:941: error: dereferencing pointer to incomplete type digestmd5.c: In function `dec_des': digestmd5.c:965: warning: implicit declaration of function `des_cbc_encrypt' digestmd5.c:968: error: dereferencing pointer to incomplete type digestmd5.c:969: error: dereferencing pointer to incomplete type digestmd5.c:970: error: `DES_DECRYPT' undeclared (first use in this function) digestmd5.c:974: error: dereferencing pointer to incomplete type digestmd5.c: In function `enc_des': digestmd5.c:1019: error: dereferencing pointer to incomplete type digestmd5.c:1020: error: dereferencing pointer to incomplete type digestmd5.c:1021: error: `DES_ENCRYPT' undeclared (first use in this function) digestmd5.c:1025: error: dereferencing pointer to incomplete type digestmd5.c: In function `init_des': digestmd5.c:1040: error: invalid application of `sizeof' to an incomplete type digestmd5.c:1045: error: `des_cblock' undeclared (first use in this function) digestmd5.c:1045: error: syntax error before ')' token digestmd5.c:1047: error: dereferencing pointer to incomplete type digestmd5.c:1052: error: increment of pointer to unknown structure digestmd5.c:1052: error: arithmetic on pointer to an incomplete type digestmd5.c:1054: error: syntax error before ')' token digestmd5.c:1056: error: dereferencing pointer to incomplete type make[2]: *** [digestmd5.lo] Error 1 make[2]: Leaving directory `/usr/src/packages/BUILD/cyrus-sasl-2.1.20/plugins' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/packages/BUILD/cyrus-sasl-2.1.20' make: *** [all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.63742 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.63742 (%build) # df /var/tmp Filesystem 1K-blocks Used Available Use% Mounted on /dev/hda7 2016016 823816 1089788 44% /var </snip> Anybody else see this? tnx, ken -- A lot of us are working harder than we want, at things we don't like to do. Why? ...In order to afford the sort of existence we don't care to live. -- Bradford Angier
ken wrote:
Here's the end of the compile output:
<snip> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../lib -I../sasldb -I../include -I/usr/include/heimdal -I/usr/include/mysql -I/usr/include/pgsql -Wall -W -fno-strict-aliasing -O3 -march=i686 -fomit-frame-pointer -mcpu=pentium4m -MT digestmd5.lo -MD -MP -MF .deps/digestmd5.Tpo -c digestmd5.c -fPIC -DPIC -o digestmd5.lodigestmd5.c:77:19: des.h: No such file or directory digestmd5.c:810: error: syntax error before "des_key_schedule" (snip)
Anybody else see this?
Not in compiling this particular package, but otherwise, yes, often enough. The compiler is telling you that it can't find the header file des.h and that means that you haven't installed the -devel part of the package that provides it, for instance openssl. So if you install openssl-devel.rpm (maybe there is some version information there too) you should be in business. Regards, -- Jos van Kan www.josvankan.tk
Jos van Kan wrote:
ken wrote:
Here's the end of the compile output:
<snip> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../lib -I../sasldb -I../include -I/usr/include/heimdal -I/usr/include/mysql -I/usr/include/pgsql -Wall -W -fno-strict-aliasing -O3 -march=i686 -fomit-frame-pointer -mcpu=pentium4m -MT digestmd5.lo -MD -MP -MF .deps/digestmd5.Tpo -c digestmd5.c -fPIC -DPIC -o digestmd5.lodigestmd5.c:77:19: des.h: No such file or directory digestmd5.c:810: error: syntax error before "des_key_schedule"
(snip)
Anybody else see this?
Not in compiling this particular package, but otherwise, yes, often enough. The compiler is telling you that it can't find the header file des.h and that means that you haven't installed the -devel part of the package that provides it, for instance openssl. So if you install openssl-devel.rpm (maybe there is some version information there too) you should be in business.
Regards,
Jos, Thanks for the civil reply. Don't know why that's so hard for some folks. When compiling a src.rpm a -devel RPM is often created alongside the main RPM... often a -debuginfo RPM also. Point is, I shouldn't need a -devel RPM because it's created during the compile of the src.rpm. Yes, no? If the des.h is part of some other package, shouldn't the rebuild of cyrus-sasl-2.1.20-7.src.rpm fail at the beginning, during the dependency check? IOW, I'm thinking the package is broken. I wanted to confirm my thinking, results and conclusion with someone else before submitting a bug report. Has no one else on this list compiled cyrus-sasl-2.1.20-7.src.rpm?
Hi, On Sat, 10 Sep 2005 13:59:31 -0400 ken <.> wrote:
When compiling a src.rpm a -devel RPM is often created alongside the main RPM... often a -debuginfo RPM also. Point is, I shouldn't need a -devel RPM because it's created during the compile of the src.rpm. Yes, no?
I didn't follow carefully your thread, but I think you mix up here something. While you rebuild e.g. xxxxx.src.rpm, you will likely need yyyyy.rpm and zzzzz.rpm. In addition you could need yyyyy-devel.rpm as well, it really depends. BUT. It has nothing to do with the fact, that encoded by your .spec file you will get xxxxx.rpm only, or it will be created in companion with its xxxxx-devel package! Regards, Pelibali
participants (3)
-
Jos van Kan
-
ken
-
pelibali