On 06/12/2014 05:48 PM, Eelco Dolstra wrote:
> Hi,
> 
> On 12/06/14 03:30, Mateusz Kowalczyk wrote:
> 
>> * Download the zip of the repository.
> 
> It's better to download a source tarball:
> 
>   http://nixos.org/releases/nix/nix-1.7/nix-1.7.tar.xz
> 
> This contains the configure script.

This seems to work much better for me than manually hacking everything.

>> * Try to run configure as per instructions, file doesn't exist[1].
> 
> The manual does say that you need to run "./bootstrap.sh" when building from 
> Git.

Oh yes, I see it now, sorry.

>>   LD     src/nix-hash/nix-hash
>> /usr/bin/ld: src/nix-hash/nix-hash: undefined reference to symbol
>> 'pthread_cancel@@GLIBC_2.2.5'
>> /usr/bin/ld: note: 'pthread_cancel@@GLIBC_2.2.5' is defined in DSO
>> /lib64/libpthread.so.0 so try adding it to the linker command line
>> /lib64/libpthread.so.0: could not read symbols: Invalid operation
>> collect2: ld returned 1 exit status
> 
> This is strange because Nix doesn't use pthreads (yet...).
> 
>> I don't know how to hack it further to make it work. I tried setting
>> LDFLAGS="-lpthread $LDFLAGS" in configure.ac and it gets propagated to
>> configure file but it seems to make no difference. Running
>> ‘LDFLAGS=-lpthread make’ similarly seems to have no effect.
> 
> Try adding
> 
>   GLOBAL_LDFLAGS += -lpthread
> 
> to Makefile.
> 

Adding GLOBAL_LDFLAGS +=-lpthread seems to resolve the problem. Seems
like a bug in configuration somewhere.

I now managed to install standalone nix on the box in question, quite
happy. Let's see if it works…

-- 
Mateusz K.
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to