View Issue Details

IDProjectCategoryView StatusLast Update
0003606GNUnetbuild processpublic2018-06-07 00:25
ReporterMatthias Wachs Assigned ToChristian Grothoff  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product VersionGit master 
Target Version0.11.0pre66Fixed in Version0.11.0pre66 
Summary0003606: GNUNET_PREFIX test fails with wrong path used for detection
DescriptionOn my system contrib/test_gnunet_prefix fails:

echo $GNUNET_PREFIX
/home/<user>/coding/gnb

gnunet/contrib$ ./test_gnunet_prefix
Failed to access `/home/<user>/coding/gnb/../share/gnunet/config.d': No such file or directory

Path tested:
  dirname = DIR_SEPARATOR_STR ".." DIR_SEPARATOR_STR "share" DIR_SEPARATOR_STR "gnunet" DIR_SEPARATOR_STR "config.d";

The correct path to test should be:
  dirname = DIR_SEPARATOR_STR "share" DIR_SEPARATOR_STR "gnunet" DIR_SEPARATOR_STR "config.d";
TagsNo tags attached.

Relationships

related to 0002645 closedChristian Grothoff libexec path on opensuse 

Activities

Matthias Wachs

2015-01-08 12:35

manager   ~0008754

Is this a problem only on my machine?

Committed a fix in rev 34845

Christian Grothoff

2015-01-08 12:59

manager   ~0008755

We changed GNUNET_PREFIX's definition to include the "lib/" at the end, as it can be lib32, lib64 or other things depending on arch. I think you probably have your environment variable set to the 'old' GNUNET_PREFIX and/or didn't run via 'make check'.

Christian Grothoff

2015-01-08 19:54

manager   ~0008757

Almost certainly a case of bad GNUNET_PREFIX, proposed change creates new problems.

Matthias Wachs

2015-01-09 08:14

manager   ~0008758

According to latest ./README:

$ export GNUNET_PREFIX=/usr/local # or other directory of your choice

...

This will create the users and groups needed for running GNUnet
securely and then compile and install GNUnet to $GNUNET_PREFIX/bin/,
$GNUNET_PREFIX/lib/ and $GNUNET_PREFIX/share/ and start the system
with the default configuration.

Matthias Wachs

2015-01-09 08:17

manager   ~0008759

Where is this change in definition documented?

Christian Grothoff

2015-01-09 08:31

manager   ~0008761

Found it. Ultimate cause was 0003284.

Christian Grothoff

2015-01-09 08:34

manager   ~0008762

See also SVN 32119 and 32149.

Matthias Wachs

2015-01-09 08:35

manager   ~0008763

With the new definition including "/lib/", make check fails in util:

$ echo $GNUNET_PREFIX
/home/<user>/coding/gnb/lib

Jan 09 08:22:18-019892 util-25364 WARNING `access' failed on file `/home/<user>/coding/gnb/lib//gnunet/libexec/gnunet-service-resolver' at os_installation.c:772 with error: No such file or directory
Jan 09 08:22:18-019961 test-resolver-api-25364 ERROR Assertion failed at test_resolver_api.c:397.

Matthias Wachs

2015-01-09 08:47

manager   ~0008764

Finally I figured out how to do it right:

$ export MYPATH =/home/<user>/coding/gnb

$ export GNUNET_PREFIX=$MYPATH/lib
$ export PATH=$MYPATH/bin:$PATH
$ ./configure --prefix=$MYPATH

Issue History

Date Modified Username Field Change
2015-01-08 12:33 Matthias Wachs New Issue
2015-01-08 12:35 Matthias Wachs Note Added: 0008754
2015-01-08 12:35 Matthias Wachs Status new => feedback
2015-01-08 12:59 Christian Grothoff Note Added: 0008755
2015-01-08 19:54 Christian Grothoff Note Added: 0008757
2015-01-08 19:54 Christian Grothoff Status feedback => resolved
2015-01-08 19:54 Christian Grothoff Fixed in Version => 0.11.0pre66
2015-01-08 19:54 Christian Grothoff Resolution open => no change required
2015-01-08 19:54 Christian Grothoff Assigned To => Christian Grothoff
2015-01-09 08:14 Matthias Wachs Note Added: 0008758
2015-01-09 08:15 Matthias Wachs Status resolved => feedback
2015-01-09 08:17 Matthias Wachs Note Added: 0008759
2015-01-09 08:17 Matthias Wachs Status feedback => assigned
2015-01-09 08:17 Matthias Wachs Status assigned => feedback
2015-01-09 08:28 Christian Grothoff Relationship added related to 0002645
2015-01-09 08:31 Christian Grothoff Note Added: 0008761
2015-01-09 08:34 Christian Grothoff Note Added: 0008762
2015-01-09 08:35 Matthias Wachs Note Added: 0008763
2015-01-09 08:35 Matthias Wachs Status feedback => assigned
2015-01-09 08:35 Matthias Wachs Status assigned => feedback
2015-01-09 08:47 Matthias Wachs Note Added: 0008764
2015-01-09 08:47 Matthias Wachs Status feedback => assigned
2015-01-09 17:32 Christian Grothoff Status assigned => resolved
2015-01-09 19:40 Christian Grothoff Target Version 0.11.0 => 0.11.0pre66
2018-06-07 00:25 Christian Grothoff Status resolved => closed