Opened 19 years ago

Closed 19 years ago

#4031 closed defect (fixed)

cyrus-sasl2 doesn't build

Reported by: tazzfr@… Owned by: jmpalacios (Juan Manuel Palacios)
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc: landonf@…, yeled@…, benwill@…, pieterb@…
Port:

Description

Error: Target com.apple.build returned: shell command "cd "/usr/local/var/db/dports/build/ file._usr_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_security_cyrus- sasl2/work/cyrus-sasl-2.1.20" && make all" returned error 2 Command output: srp.c:2294: warning: pointer targets in passing argument 5 of 'sparams->utils-

encode64' differ in signedness

srp.c:2317: warning: pointer targets in passing argument 3 of 'sparams->utils->prop_set' differ in signedness srp.c:2189: warning: unused parameter 'glob_context' srp.c:2194: warning: unused parameter 'oldpass' srp.c:2195: warning: unused parameter 'oldpasslen' srp.c: In function 'srp_mech_avail': srp.c:2342: warning: unused parameter 'glob_context' srp.c:2344: warning: unused parameter 'conn_context' srp.c: In function 'srp_server_plug_init': srp.c:2391: warning: unused parameter 'plugname' srp.c: In function 'CalculateA': srp.c:2471: warning: unused parameter 'text' srp.c: In function 'ClientCalculateK': srp.c:2555: warning: pointer targets in passing argument 2 of 'MakeHash' differ in signedness srp.c: In function 'srp_client_mech_new': srp.c:2692: warning: unused parameter 'glob_context' srp.c: In function 'srp_client_mech_step1': srp.c:2718: warning: unused parameter 'serverin' srp.c: In function 'srp_client_mech_step2': srp.c:2922: warning: pointer targets in passing argument 5 of 'ClientCalculateK' differ in signedness srp.c:2839: warning: unused parameter 'prompt_need' srp.c: In function 'srp_client_mech_step3': srp.c:2976: warning: unused parameter 'prompt_need' srp.c:2977: warning: unused parameter 'clientout' srp.c:2978: warning: unused parameter 'clientoutlen' srp.c: In function 'srp_client_plug_init': srp.c:3135: warning: unused parameter 'plugname' make[2]: * [srp.lo] Error 1 make[1]: * [all-recursive] Error 1 make: * [all] Error 2

Attachments (1)

cyrus-sasl2.diff (5.0 KB) - added by pguyot (Paul Guyot) 19 years ago.
Patch to update the port and fix the problem.

Download all attachments as: .zip

Change History (11)

comment:1 Changed 19 years ago by tazzfr@…

Owner: changed from darwinports-bugs@… to jmpp@…

comment:2 Changed 19 years ago by pieterb@…

dependson: 2907

This is probably caused by the use of GCC 4.0.0 (powerpc-apple-darwin8-gcc-4.0.0 (GCC) 4.0.0 (Apple Computer, Inc. build 5026)). See also Bug 2907. I can confirm this problem with MacOSX 10.4.2 and Xcode 2.1. I tried compiling cyrs-sasl2 on MacOSX 10.4.2 with gcc-dp-3.4 (GCC) 3.4.3, but then it fails with:

---> Building cyrus-sasl2 with target all Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_security_cyrus-sasl2/work/cyrus-sasl-2.1.20" && make all" returned error 2 Command output: ../include/saslplug.h:75: error: parse error before "MD5_CTX" ../include/saslplug.h:79: error: parse error before '*' token ../include/saslplug.h:81: error: parse error before "HMAC_MD5_CTX" ../include/saslplug.h:84: error: parse error before '*' token

Any help/workaround/fix will be appreciated.

comment:3 Changed 19 years ago by pieterb@…

Cc: pieterb@… added

comment:4 Changed 19 years ago by benwill@…

This isn't a GCC4 issue. The fix in 2907 worked fine for me on 10.4/GCC4.0 with slightly outdated openssl and zlib. Having upgraded to the most recent openssl and zlib ports, I get something very similar to what Pieter reports with GCC 3.4.4, i.e.:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../lib -I../sasldb -I../include -I/opt/local/include -Wall -W -g -O2 -MT srp.lo -MD -MP -MF .deps/srp.Tpo -c srp.c -fno-common -DPIC -o srp.lo In file included from ../include/saslplug.h:14,

from srp.c:93:

../include/hmac-md5.h:11: error: parse error before "MD5_CTX"

I notice there's a new version available (2.1.21) but transferring the patches to the new version is beyond me.

comment:5 Changed 19 years ago by benwill@…

I notice there's a new version available (2.1.21) but transferring the patches to the new version is beyond me.

and, from preliminary investigations with 2.1.21, looks like it won't fix the problem anyway (i get similar build errors). it looks like this problem (the first of many?) is the result of non-backward compatible changes in openssl 0.9.8.

comment:6 Changed 19 years ago by benwill@…

Cc: benwill@… added

comment:7 Changed 19 years ago by pieterb@…

I noticed Bug 3919 also solved some openssl 0.9.8 for 'cclient-2004e_0'. I tried to apply them to cyrus- sasl2, but I got stuck in errors which I assume are caused by non-backward compatible changes in openssl 0.9.8 and they are beyond me.

BTW, Paul Guyot (pguyot) blames DP's openssl 0.9.8 on http://www.opendarwin.org/pipermail/cvs- darwinports-all/2005-July/034816.html

comment:8 Changed 19 years ago by yeled@…

Cc: yeled@… added

comment:9 Changed 19 years ago by pguyot (Paul Guyot)

Cc: landonf@… added

Changed 19 years ago by pguyot (Paul Guyot)

Attachment: cyrus-sasl2.diff added

Patch to update the port and fix the problem.

comment:10 Changed 19 years ago by yeled@…

Resolution: fixed
Status: newclosed

(In reply to comment #5)

Created an attachment (id=3631) [edit] Patch to update the port and fix the problem.

I have confirmed this works on 10.4 and I have committed it.

Hope you don't mind.

Note: See TracTickets for help on using tickets.