William G. Scott | 2 Sep 05:23
Favicon

a problem when linking fftw dynamic libraries

Hi folks:

I need some advice.

The program coot, which I maintain, links to fftw, which it uses to  
calculate crystallographic electron density maps.

If I link to fftw's dynamic libraries, I run into a memory problem  
that causes the program to seg fault.  If I link to static fftw  
libraries only, the program works.

I have reported this to the program's author.  I have no ability to  
tell whether this is a problem with coot or with fftw (except I am not  
aware of any other problems with fftw).

Meanwhile, is there a way to force the compiler to link only to the  
fftw static libraries?

Many thanks in advance.

Bill

William G. Scott

Contact info:
http://chemistry.ucsc.edu/~wgscott/

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
(Continue reading)

Daniel Macks | 2 Sep 05:47

Re: a problem when linking fftw dynamic libraries

On Mon, Sep 01, 2008 at 08:23:36PM -0700, William G. Scott wrote:
> 
> Meanwhile, is there a way to force the compiler to link only to the  
> fftw static libraries?

Try using /sw/the/path/to/the/libfftw.a instead of a -lfftw flag to
force linking against that specific static lib. Would be good to put a
DescPackaging or similar note in fftw.info about this other package
using the static lib (cf. my fink-devel thread about whether we should
still be shipping static libs).

dan

--

-- 
Daniel Macks
dmacks <at> netspace.org
http://www.netspace.org/~dmacks

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Peter Dyballa | 1 Sep 09:48
Picon
Favicon

blt-2.4z-15l

Hello!

Building fails with:

		./bltUnixMain.c libBLT.a -ltk8.4 -ltcl8.4 -L/usr/X11R6/lib -lX11 - 
ljpeg -lm
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: can't locate file  
for: -ljpeg

--
Package manager version: 0.28.5
Distribution version: selfupdate-rsync Mon Sep  1 09:17:32 2008,  
10.4, powerpc
Mac OS X version: 10.4.11
Xcode version: 2.5
gcc version: 4.0.1 (Apple Computer, Inc. build 5370)
make version: 3.81
Feedback Courtesy of FinkCommander

--
Greetings

   Pete

You can learn many things from children.  How much patience you have,  
for instance.
				– Franklin P. Jones

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
(Continue reading)

Alexander Hansen | 2 Sep 18:50
Picon
Gravatar

Re: blt-2.4z-15l


On Sep 1, 2008, at 3:48 AM, Peter Dyballa wrote:

Hello!

Building fails with:

./bltUnixMain.c libBLT.a -ltk8.4 -ltcl8.4 -L/usr/X11R6/lib -lX11 -
ljpeg -lm
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: can't locate file  
for: -ljpeg


--
Package manager version: 0.28.5
Distribution version: selfupdate-rsync Mon Sep  1 09:17:32 2008,  
10.4, powerpc
Mac OS X version: 10.4.11
Xcode version: 2.5
gcc version: 4.0.1 (Apple Computer, Inc. build 5370)
make version: 3.81
Feedback Courtesy of FinkCommander



--
Greetings

  Pete

You can learn many things from children.  How much patience you have,  
for instance.
– Franklin P. Jones





blt shows an explicit build dependency on libjpeg, so the missing library _should_ be available.  What do you get from

ls -l /sw/lib/libjpeg*.dylib ?

(assuming your Fink tree is in /sw)

Alexander K. Hansen 
akh AT finkproject DOT org
Fink User Liaison and Documenter



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fink-devel mailing list
Fink-devel <at> lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.devel
Peter Dyballa | 2 Sep 19:22
Picon
Favicon

Re: blt-2.4z-15l


Am 02.09.2008 um 18:50 schrieb Alexander Hansen:

> blt shows an explicit build dependency on libjpeg, so the missing  
> library _should_ be available.  What do you get from
>
> ls -l /sw/lib/libjpeg*.dylib ?

-rwxr-xr-x   1 root  admin  144188  8 Dez  2006 /sw/lib/libjpeg. 
62.0.0.dylib
lrwxr-xr-x   1 root  admin      20  8 Dez  2006 /sw/lib/libjpeg. 
62.dylib -> libjpeg.62.0.0.dylib
lrwxr-xr-x   1 root  admin      20  8 Dez  2006 /sw/lib/libjpeg.dylib  
-> libjpeg.62.0.0.dylib

>
> (assuming your Fink tree is in /sw)

It is, of course.

I tried to change a *local* copy of the INFO file to contain a  
'SetLDFLAGS: -L/sw/lib' line, but it did not make a change – I'm no  
Obama, obviously! Maybe in the wrong place. Right now some  
compilation with Qt is running, but in a few hours I think I'll be  
able to look again into what happens when configure is running and  
logs into its LOG file(s). Is there a way to make fink show some  
internals, environment, propagation of settings from the INFO file?

--
Greetings

   Pete

Only useless documentation transcends the first two laws.
				– Arnold's Third Law of Documentation

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Alexander Hansen | 2 Sep 19:37
Picon
Gravatar

Re: blt-2.4z-15l


On Sep 2, 2008, at 1:22 PM, Peter Dyballa wrote:


Am 02.09.2008 um 18:50 schrieb Alexander Hansen:

blt shows an explicit build dependency on libjpeg, so the missing library _should_ be available.  What do you get from

ls -l /sw/lib/libjpeg*.dylib ?

-rwxr-xr-x   1 root  admin  144188  8 Dez  2006 /sw/lib/libjpeg.62.0.0.dylib
lrwxr-xr-x   1 root  admin      20  8 Dez  2006 /sw/lib/libjpeg.62.dylib -> libjpeg.62.0.0.dylib
lrwxr-xr-x   1 root  admin      20  8 Dez  2006 /sw/lib/libjpeg.dylib -> libjpeg.62.0.0.dylib


That looks right--no stray dangling symlink there.


(assuming your Fink tree is in /sw)


It is, of course.

I tried to change a *local* copy of the INFO file to contain a 'SetLDFLAGS: -L/sw/lib' line, but it did not make a change – I'm no Obama, obviously!

It's quite possible that that particular line in the makefile doesn't try to inherit the LDFLAGS setting.  Normally fink passes -L/sw/lib in LDFLAGS anyway.

Maybe in the wrong place. Right now some compilation with Qt is running, but in a few hours I think I'll be able to look again into what happens when configure is running and logs into its LOG file(s). Is there a way to make fink show some internals, environment, propagation of settings from the INFO file?

--
Greetings

 Pete

Only useless documentation transcends the first two laws.
– Arnold's Third Law of Documentation


You can get the environment that fink uses to build a package via

fink dumpinfo -fenv <packagename>


It might be useful to see that output for blt, to see if something in the environment is making the build unhappy.


Also:  you didn't quote the whole compiler command.  Go back a couple of lines and check if everything looks right.  On my system, where this version of blt builds, I get the following:

...
gcc -Wall -O3 -fno-common   -I. -I.  -I/sw/include -I/usr/X11R6/include  -o bltwish \
-DTCLLIBPATH=\"/sw/lib/tcl8.4\" \
./bltUnixMain.c libBLT.a -L/sw/lib -ltk8.4 -ltcl8.4 -L/usr/X11R6/lib -lX11 -ljpeg -lm
...



Alexander K. Hansen 
akh AT finkproject DOT org
Fink User Liaison and Documenter



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fink-devel mailing list
Fink-devel <at> lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.devel
Andrea Riciputi | 2 Sep 20:11
Picon

Libedit+IPython

Hi all,
after some trials I got IPython to behave correctly under OSX  
(Leopard). However I had to install the readline egg built by Ludwig  
Schwardt. No way to get it working correctly using the built-in libedit.

After digging a little bit into it, I've noticed that when libedit are  
used the ~/.ipython/history file looks like this:

import\040os
for\040i\040in\040[1,2,3]:\012\040\040print\040i

As you can see, all the "special" character (namely spaces and  
newline) are replaced by their _octal_ ascii code. I think this is the  
real culprit of the IPython's misbehaviors under Leopard.

So I tried to find out where in IPython code the history file is  
updated, but unfortunately I was not able to do it. If anyone could  
tell me where that code is, I'd try to investigate this issue further,  
test it thoroughly under OSX and eventually build a patch to fix this  
altogether.

I hope someone can help me, since I'd really like to contribute to the  
project and improve the OSX users experience.

TIA,
  Andrea

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Rishi Graham | 2 Sep 20:15
Favicon

problem installing freetype219

Hi,

I'm trying to get back up after a hard drive crash, so my system is a  
bit confused.  I did a selfupdate and then update-all, which failed  
trying to install freetype219.  I reran the "fink -v install  
freetype219" and piped it into a log file for reference (attached).   
I'm running OS 10.4.11 on an intel-based MacBook.

Any idea what the problem could be?

Thanks,
-Rishi.
<rishig <at> soe.ucsc.edu>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Peter Dyballa | 2 Sep 20:55
Picon
Favicon

Re: blt-2.4z-15l


Am 02.09.2008 um 19:37 schrieb Alexander Hansen:

> Also:  you didn't quote the whole compiler command.

It's not available in the moment – the *compilation* buffer is used  
for other work.

There is one difference: I am using Apple's TclTk. So its -L/sw/lib  
switch gets lost somewhere, which did not happen in earlier versions.

--
Greetings

   Pete

With Capitalism man exploits man. With communism it's the exact  
opposite.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Alexander Hansen | 2 Sep 21:17
Picon
Gravatar

Re: blt-2.4z-15l


On Sep 2, 2008, at 2:55 PM, Peter Dyballa wrote:


Am 02.09.2008 um 19:37 schrieb Alexander Hansen:

Also:  you didn't quote the whole compiler command.

It's not available in the moment – the *compilation* buffer is used for other work.

I didn't say you had to do it immediately, of course.



There is one difference: I am using Apple's TclTk. So its -L/sw/lib switch gets lost somewhere, which did not happen in earlier versions.


Are you saying that you made such a local modification to the package?  If so, why didn't you mention this at the outset?  

--
Greetings

 Pete

With Capitalism man exploits man. With communism it's the exact opposite.




Alexander K. Hansen 
akh AT finkproject DOT org
Fink User Liaison and Documenter



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fink-devel mailing list
Fink-devel <at> lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.devel

Gmane