-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2/16/11 4:11 AM, Julius Canute wrote:
> I am sorry for the confusion.
> 
>  I can't download from https link due to proxy restrictions, unless and
> otherwise it is specified explicitly in curl, that led to confusion and
> forced me to try some other options.
> 
> curl *-x 192.XXX.YYY.ZZZ:PPP* --connect-timeout 30 -f -L -A
> 'fink/0.29.17' -O https://github.com/downloads/lloyd/yajl/yajl-1.0.9.tar.gz
>   % Total    % Received % Xferd  Average Speed   Time    Time     Time
>  Current
>                                  Dload  Upload   Total   Spent    Left
>  Speed
> 100 53094  100 53094    0     0  21475      0  0:00:02  0:00:02 --:--:--
> 21475
> 
> 
> Here is the modified info file.
> 
> Package: yajl1
> Version: 1.0.9
> Revision: 1
> Depends: %N-shlibs (= %v-%r)
> BuildDepends: cmake
> BuildDependsOnly: True
> Source: https://github.com/downloads/lloyd/yajl/yajl-%v.tar.gz
> Source-MD5: 8643ff2fef762029e51c86882a4d0fc6
> InstallScript: make install DESTDIR=%d
> DocFiles: COPYING README TODO ChangeLog BUILDING
> SplitOff: <<
>   Package: %N-shlibs
>   Files: lib/libyajl.1.0.9.dylib lib/libyajl.1.dylib 
>   Shlibs: <<
> %p/lib/libyajl.1.dylib 0.0.0 %n (>= 1.0.9-1)
>   <<
>   DocFiles: COPYING README TODO ChangeLog BUILDING
> <<
> 
> License: BSD
> Homepage: http://lloyd.github.com/yajl/
> Maintainer: Julius Canute <[email protected]
> <mailto:[email protected]>>
> Description: Yet Another JSON Library
> 
> Sorry but still i am not able to figure out the error.
> 
> Error: File name '/sw/lib/libyajl.1.dylib' specified in Shlibs does not
> appear to have linker data at all
> Error: package contains the shared library
>           /sw/lib/libyajl.1.0.9.dylib
>        but the corresponding install_name
>           libyajl.1.dylib
>        is not an absolute pathname.
> 
> 

The error is due to the following:

$ otool -L
/sw32/src/fink.build/root-yajl1-shlibs-1.0.9-1/sw32/lib/libyajl.1.dylib
/sw32/src/fink.build/root-yajl1-shlibs-1.0.9-1/sw32/lib/libyajl.1.dylib:
        libyajl.1.dylib (compatibility version 1.0.0, current version 1.0.9)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 125.2.1)

As you can see, the first entry, which is the install_name, doesn't have
an absolute path.  That won't do.  You can change this by using Apple's
"install_name_tool" (see the manpage) during the InstallScript.

You also have the wrong compatibility version in the Shlibs: line.  You
have 0.0.0, and the library, as shown above, has 1.0.0.

And the package builds differently depending on whether or not doxygen
is installed, so you need a BuildDepend on that.
- -- 
Alexander Hansen, Ph.D.
Fink User Liaison
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1bwx8ACgkQB8UpO3rKjQ9y4ACcDVy3OCaH5HKuvfIciZ53ylFE
w/MAnROmy+J1N2aVC13pZySRktm4KmLq
=Pxa7
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Fink-devel mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to