tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Problems building devel/subversion-base on MacOS X 10.8



On Wed, Jul 17, 2013 at 9:49 AM, Jens Rehsack <rehsack%gmail.com@localhost> 
wrote:
>
> Am 17.07.2013 um 15:50 schrieb Tim Zingelman <tez%netbsd.org@localhost>:
>
>> On Wed, Jul 17, 2013 at 6:07 AM, Jens Rehsack <rehsack%gmail.com@localhost> 
>> wrote:
>>> Hi,
>>>
>>> I want to extract my subversion-history from a crashed machine (really
>>> crashed, not able to rebuild). So I decided to build myself a subversion
>>> from pkgsrc on my Notebook …
>>>
>>> ===> Building for subversion-base-1.8.0nb1
>>> cd subversion/libsvn_ra_serf && /bin/bash 
>>> /tmp/pkgsrc/devel/subversion-base/work/subversion-1.8.0/libtool --tag=CC 
>>> --silent --mode=link gcc  -pipe -O2 -I/opt/pkg/include 
>>> -I/opt/pkg/include/apr-1 -I/opt/pkg/include/db4 -I/usr/include 
>>> -DLDAP_DEPRECATED -I/opt/pkg/include/gettext    -L/opt/pkg/lib -L/usr/lib   
>>>  -rpath /opt/pkg/lib -version-info 0  -o libsvn_ra_serf-1.la  blame.lo 
>>> blncache.lo commit.lo get_deleted_rev.lo getdate.lo getlocations.lo 
>>> getlocationsegments.lo getlocks.lo inherited_props.lo locks.lo log.lo 
>>> merge.lo mergeinfo.lo options.lo property.lo replay.lo sb_bucket.lo serf.lo 
>>> update.lo util.lo util_error.lo xml.lo 
>>> ../../subversion/libsvn_delta/libsvn_delta-1.la 
>>> ../../subversion/libsvn_subr/libsvn_subr-1.la -L/opt/pkg/lib -laprutil-1 
>>> -L/opt/pkg/lib -lapr-1 /opt/pkg/lib/libserf-1.la -lexpat -lintl -liconv 
>>> -framework CoreFoundation -framework Security -framework CoreServices
>>> grep: /tmp/pkgsrc/devel/subversion-base/work/.buildlink/lib/libiconv.la: No 
>>> such file or directory
>>> sed: /tmp/pkgsrc/devel/subversion-base/work/.buildlink/lib/libiconv.la: No 
>>> such file or directory
>>> libtool: link: 
>>> `/tmp/pkgsrc/devel/subversion-base/work/.buildlink/lib/libiconv.la' is not 
>>> a valid libtool archive
>>> *** Error code 1
>>>
>>> Well - I did some basic research, pkgsrc always uses the
>>> libiconv from /usr/lib - no way to negotiate ;)  And there is
>>> no /usr/lib/libiconv.la (regardless it would be linked to
>>> /tmp/pkgsrc/devel/subversion-base/work/.buildlink/lib/).
>>>
>>> This is the first time I see that kind of message, and
>>> any help getting me to a running subversion would be nice.
>>
>> I can't duplicate this with a pkgsrc checkout from July 8th.
>
> I would prefer don't doing this in a private session to avoid
> double effort.

Sorry, meant to reply-all...

>> ===> Building for subversion-base-1.8.0nb1
>> ...
>> cd subversion/libsvn_ra_serf && /bin/sh
>> /Users/adnetmin/pkgsrc/devel/subversion-base/work/subversion-1.8.0/libtool
>> --tag=CC --silent --mode=link gcc  -pipe -O2 -I/usr/pkg/include
>> -I/usr/pkg/include/apr-1 -I/usr/include -I/usr/pkg/include/gettext
>> -L/usr/pkg/lib -L/usr/lib    -rpath /usr/pkg/lib -version-info 0  -o
>> libsvn_ra_serf-1.la  blame.lo blncache.lo commit.lo get_deleted_rev.lo
>> getdate.lo getlocations.lo getlocationsegments.lo getlocks.lo
>> inherited_props.lo locks.lo log.lo merge.lo mergeinfo.lo options.lo
>> property.lo replay.lo sb_bucket.lo serf.lo update.lo util.lo
>> util_error.lo xml.lo ../../subversion/libsvn_delta/libsvn_delta-1.la
>> ../../subversion/libsvn_subr/libsvn_subr-1.la -L/usr/pkg/lib
>> -laprutil-1 -L/usr/pkg/lib -lapr-1 /usr/pkg/lib/libserf-1.la -lexpat
>> -lintl -liconv -framework CoreFoundation -framework Security
>> -framework CoreServices^M
>> /bin/sh 
>> /Users/adnetmin/pkgsrc/devel/subversion-base/work/subversion-1.8.0/libtool
>> --tag=CC --silent --mode=compile gcc -std=c89 -isystem /usr/include
>> -I/usr/pkg/include -I/usr/pkg/include/apr-1 -I/usr/include
>> -I/usr/pkg/include/gettext   -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK
>> -no-cpp-precomp   -pipe -O2 -I/usr/pkg/include
>> -I/usr/pkg/include/apr-1 -I/usr/include -I/usr/pkg/include/gettext
>> -I./subversion/include -I./subversion  -I/usr/pkg/include/apr-1
>> -I/usr/pkg/include/apr-1      -I/usr/pkg/include/serf-1  -o
>> subversion/libsvn_ra/compat.lo -c subversion/libsvn_ra/compat.c^M
>> ...
>>
>> $ cat /usr/pkg/etc/mk.conf
>> .ifdef BSD_PKG_MK       # begin pkgsrc settings
>> UNPRIVILEGED=           yes
>> PKG_DBDIR=              /usr/pkg/db
>> LOCALBASE=              /usr/pkg
>> VARBASE=                /usr/pkg/var
>> PKG_TOOLS_BIN=          /usr/pkg/sbin
>> PKGMANDIR=              man
>> TOOLS_PLATFORM.awk?=            /usr/pkg/bin/nawk
>> TOOLS_PLATFORM.sed?=            /usr/pkg/bin/nbsed
>> DEPENDS_TARGET=         package-install
>> KRB5_DEFAULT=           mit-krb5
>> PKG_OPTIONS.openssh=    kerberos
>> ACCEPTABLE_LICENSES+=   kermit-license
>> .endif                  # end pkgsrc settings
>>
>> $ ls /usr/pkg/db
>> apr-1.4.8                       mit-krb5-appl-1.0.3nb1          readline-6.2
>> apr-util-1.5.2                  nawk-20050424nb3                
>> screen-4.0.3nb5
>> autoconf-2.69nb2                nbpatch-20100124                serf-1.2.1
>> bmake-20110606nb1               nbsed-20120308                  skey-1.1.5nb6
>> bootstrap-mk-files-20130703     openssh-6.2.1nb1                
>> sqlite3-3.7.17
>> digest-20121220                 osabi-Darwin-12.4.0
>> subversion-base-1.8.0
>> gettext-lib-0.18.2.1            p5-gettext-1.05nb9
>> tcp_wrappers-7.6.4
>> gettext-tools-0.18.2.1          perl-5.18.0nb1                  user-20101223
>> help2man-1.43.3                 pkg-config-0.28                 
>> x11-links-0.79
>> kermit-9.0.302nb3               pkg_install-20130131nb1         xz-5.0.5
>> libtool-base-2.4.2nb4           pkgdb.byfile.db
>> mit-krb5-1.10.6                 rdesktop-1.7.1nb1
>>
>> $ uname -a
>> Darwin image-replace-name.local 12.4.0 Darwin Kernel Version 12.4.0:
>> Wed May  1 17:57:12 PDT 2013; root:xnu-2050.24.15~1/RELEASE_X86_64
>> x86_64
>>
>> $ ls /usr/lib/libiconv*
>> /usr/lib/libiconv.2.4.0.dylib   /usr/lib/libiconv.2.dylib
>> /usr/lib/libiconv.dylib
>
>
> That wasn't my point, eg. graphics/ImageMagick is linking fine against iconv
> on my configuration:
> /opt/pkg/bin/composite:
>         /opt/pkg/lib/libMagickCore-6.Q16.1.dylib (compatibility version 
> 2.0.0, current version 2.0.0)
>         /opt/pkg/lib/libMagickWand-6.Q16.1.dylib (compatibility version 
> 2.0.0, current version 2.0.0)
>         /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon 
> (compatibility version 2.0.0, current version 155.0.0)
>         /opt/pkg/lib/liblcms2.2.dylib (compatibility version 3.0.0, current 
> version 3.5.0)
>         /opt/pkg/lib/libtiff.5.dylib (compatibility version 8.0.0, current 
> version 8.0.0)
>         /opt/pkg/lib/libjasper.1.dylib (compatibility version 2.0.0, current 
> version 2.0.0)
>         /opt/pkg/lib/libgs.9.dylib (compatibility version 0.0.0, current 
> version 0.0.0)
>         /opt/pkg/lib/libpng16.16.dylib (compatibility version 19.0.0, current 
> version 19.0.0)
>         /opt/pkg/lib/libdjvulibre.21.dylib (compatibility version 26.0.0, 
> current version 26.0.0)
>         /opt/pkg/lib/libjpeg.9.dylib (compatibility version 10.0.0, current 
> version 10.0.0)
>         /opt/pkg/lib/libfftw3.3.dylib (compatibility version 7.0.0, current 
> version 7.2.0)
>         /opt/pkg/lib/libfontconfig.1.dylib (compatibility version 9.0.0, 
> current version 9.0.0)
>         /opt/pkg/lib/libfreetype.6.dylib (compatibility version 17.0.0, 
> current version 17.0.0)
>         /usr/lib/libexpat.1.dylib (compatibility version 7.0.0, current 
> version 7.2.0)
>         /opt/pkg/lib/libwebp.4.dylib (compatibility version 5.0.0, current 
> version 5.1.0)
>         /usr/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current 
> version 1.0.5)
>         /opt/pkg/lib/libIlmImf-Imf_2_0.20.dylib (compatibility version 
> 21.0.0, current version 21.0.0)
>         /opt/pkg/lib/libImath-2_0.10.dylib (compatibility version 11.0.0, 
> current version 11.0.0)
>         /opt/pkg/lib/libHalf.10.dylib (compatibility version 11.0.0, current 
> version 11.0.0)
>         /opt/pkg/lib/libIexMath-2_0.10.dylib (compatibility version 11.0.0, 
> current version 11.0.0)
>         /opt/pkg/lib/libIlmThread-2_0.10.dylib (compatibility version 11.0.0, 
> current version 11.0.0)
>         /opt/pkg/lib/libIex-2_0.10.dylib (compatibility version 11.0.0, 
> current version 11.0.0)
>         /opt/pkg/lib/libxml2.2.dylib (compatibility version 12.0.0, current 
> version 12.1.0)
>         /opt/pkg/lib/liblzma.5.dylib (compatibility version 6.0.0, current 
> version 6.5.0)
>         /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current 
> version 7.0.0)
>         /opt/pkg/lib/libz.1.dylib (compatibility version 2.0.0, current 
> version 2.2.0)
>         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current 
> version 169.3.0)
>
> fossil and gawk linking fine, a lot of other tools, do.
>
> Why subversion-base doesn't and where might the error came from?

I guess my point is, it does not fail for everyone in every case, so
we need more detail to be able to help.
Is this HEAD (from when) or is it a quarterly branch (which) or
something in between?
What does your mk.conf contain?  The only thing you gave us was the OS.

For me, .../subversion-base/work/.buildlink/lib/ contains no
references to libiconv, and in fact:
  find work -type f -print | xargs grep libiconv.la
returns zero results after the build finishes with success.

 - Tim


Home | Main Index | Thread Index | Old Index