> 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. Daniel ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&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