Hi Daniel, On Dec 2, 2013, at 2:56 PM, Daniel Johnson <daniel.johnso...@gmail.com> wrote:
> >> On Dec 2, 2013, at 7:17 AM, Remi Mommsen <remigius.momm...@cern.ch> wrote: >> >> Hi Daniel, >> >>> On Nov 29, 2013, at 7:12 PM, Daniel Johnson <dan...@daniel-johnson.org> >>> wrote: >>> >>> >>>> On Nov 29, 2013, at 12:19 PM, Remi Mommsen <remigius.momm...@cern.ch> >>>> wrote: >>>> >>>> Hi, >>>> >>>> I try to build libaprutil.0-shlibs-1.5.3-1. But it fails with: >>>> >>>> /bin/sh /opt/fink/share/apr/build/libtool --silent --mode=compile gcc -g >>>> -O2 -DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10 >>>> >>>> -I/opt/fink/src/fink.build/libaprutil.0-shlibs-1.5.3-1/apr-util-1.5.3/include >>>> >>>> -I/opt/fink/src/fink.build/libaprutil.0-shlibs-1.5.3-1/apr-util-1.5.3/include/private >>>> -I/opt/fink/include/apr -I/opt/fink/include -o ldap/apr_ldap_rebind.lo >>>> -c ldap/apr_ldap_rebind.c && touch ldap/apr_ldap_rebind.lo >>>> clang: warning: argument unused during compilation: '-I >>>> /opt/fink/src/fink.build/libaprutil.0-shlibs-1.5.3-1/apr-util-1.5.3/include' >>>> clang: warning: argument unused during compilation: '-I >>>> /opt/fink/src/fink.build/libaprutil.0-shlibs-1.5.3-1/apr-util-1.5.3/include/private' >>>> clang: warning: argument unused during compilation: '-I >>>> /opt/fink/include/apr' >>>> clang: warning: argument unused during compilation: '-I /opt/fink/include' >>>> ldap/apr_ldap_rebind.c:330:45: error: too few arguments to function call, >>>> expected 3, have 2 >>>> ldap_set_rebind_proc(ld, LDAP_rebindproc); >>>> ~~~~~~~~~~~~~~~~~~~~ ^ >>>> /opt/fink/include/ldap.h:974:1: note: 'ldap_set_rebind_proc' declared here >>>> extern int >>>> ^ >>>> 1 error generated. >>>> make[1]: *** [ldap/apr_ldap_rebind.lo] Error 1 >>>> make: *** [all-recursive] Error 1 >>>> ### execution of make failed, exit code 2 >>>> ### execution of /tmp/fink.ZDYMZ failed, exit code 2 >>>> Removing runtime build-lock... >>>> Removing build-lock package... >>>> /opt/fink/bin/dpkg-lockwait -r fink-buildlock-libaprutil.0-shlibs-1.5.3-1 >>>> (Reading database ... 142757 files and directories currently installed.) >>>> Removing fink-buildlock-libaprutil.0-shlibs-1.5.3-1 ... >>>> Failed: phase compiling: libaprutil.0-shlibs-1.5.3-1 failed >>>> >>>> Also include the following system information: >>>> Package manager version: 0.36.1 >>>> Distribution version: selfupdate-cvs Fri Nov 29 18:05:23 2013, 10.8, x86_64 >>>> Trees: local/main stable/main local/injected >>>> Xcode.app: 5.0.2 >>>> Xcode command-line tools: 5.0.1.0.1.1377666378 >>>> libaprutil.0-shlibs-1.5.3-1 is set to build with only one job. >>>> >>>> >>>> /opt/fink/include/ldap.h is installed by openldap24-dev 2.4.35-1. >>>> >>>> Any ideas? >>>> >>>> Thanks, >>>> Remi >>> >>> Those "clang: warning: argument unused during compilation" warnings are >>> suspicious. Somehow a space is being inserted after the "-I" options which >>> causes them to be ignored. Do you have ccache-default installed? Something >>> is intercepting the gcc call. Maybe a BuildConflicts is in order or there's >>> something wrong with ccache-default. >>> >>> Daniel >> >> >> I don't have ccache-default installed. The spaces after -I are harmless. >> Note that it finds /opt/fink/include/ldap.h. >> >> Remi >> > > No, it isn't harmless. "clang: warning: argument unused during compilation: > '-I /opt/fink/include/apr'" indicates that clang is seeing the "-I" and > "/opt/fink/include/apr" as two separate options and therefore ignoring them > since they aren't valid on their own. This is causing clang to not find > fink's apr headers and use the system's instead. The question is where are > the spaces after the "-I"s coming from? > > It seems that libtool is mangling what it sends to the compiler. I've seen > something like this before but can't remember what was the cause. Does anyone > recognize this? > > Maybe try rebuilding libapr.0 since that's where libtool is coming from? > Maybe you had something installed when you built apr that isn't installed > now? Perhaps Gnu sed? I have a vague recollection of sed causing libtool > issues before. All this did not help. However, I tracked it to the following issue: configure at line 11523 checks if ldap_set_rebind_proc takes 2 or 3 arguments. However, the CFLAGS are extended on line 11530 to mark all warnings as errors. This causes the "clang: warning: argument unused during compilation" which also happens here to be promoted to an error, which in turn causes the compile to fail on line 15551. Thus, the 'ac_cv_ldap_set_rebind_proc_style' gets set to two instead of three. Calling clang with '-Qunused-arguments' quiets the warning about unused arguments. I.e. the following change to libaprutil.0-shlibs.info solves the issue for me: diff -u -r1.7 libaprutil.0-shlibs.info --- libaprutil.0-shlibs.info 27 Nov 2013 03:06:10 -0000 1.7 +++ libaprutil.0-shlibs.info 5 Dec 2013 19:21:46 -0000 @@ -36,6 +36,7 @@ PatchScript: << ### Fix layout perl -pi -e 's,/usr/local,%p,g' config.layout + perl -pi -e 's,-Werror,-Werror -Qunused-arguments,g' configure %{default_script} << The question of course remains why it only fails for me ): Remi
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------------------------------------------ Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________ Fink-users mailing list Fink-users@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.macosx.fink.user Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-users