View Issue Details

IDProjectCategoryView StatusLast Update
0003606GNUnetbuild processpublic2018-06-06 22:25
ReporterMatthias Wachs Assigned ToChristian Grothoff Due Date
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 11:35

reporter   ~0008754

Is this a problem only on my machine?

Committed a fix in rev 34845

Christian Grothoff

2015-01-08 11: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 18:54

manager   ~0008757

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

Matthias Wachs

2015-01-09 07:14

reporter   ~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 07:17

reporter   ~0008759

Where is this change in definition documented?

Christian Grothoff

2015-01-09 07:31

manager   ~0008761

Found it. Ultimate cause was 0003284.

Christian Grothoff

2015-01-09 07:34

manager   ~0008762

See also SVN 32119 and 32149.

Matthias Wachs

2015-01-09 07:35

reporter   ~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 07:47

reporter   ~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 ModifiedUsernameFieldChange
2015-01-08 11:33Matthias WachsNew Issue
2015-01-08 11:35Matthias WachsNote Added: 0008754
2015-01-08 11:35Matthias WachsStatusnew => feedback
2015-01-08 11:59Christian GrothoffNote Added: 0008755
2015-01-08 18:54Christian GrothoffNote Added: 0008757
2015-01-08 18:54Christian GrothoffStatusfeedback => resolved
2015-01-08 18:54Christian GrothoffFixed in Version => 0.11.0pre66
2015-01-08 18:54Christian GrothoffResolutionopen => no change required
2015-01-08 18:54Christian GrothoffAssigned To => Christian Grothoff
2015-01-09 07:14Matthias WachsNote Added: 0008758
2015-01-09 07:15Matthias WachsStatusresolved => feedback
2015-01-09 07:17Matthias WachsNote Added: 0008759
2015-01-09 07:17Matthias WachsStatusfeedback => assigned
2015-01-09 07:17Matthias WachsStatusassigned => feedback
2015-01-09 07:28Christian GrothoffRelationship addedrelated to 0002645
2015-01-09 07:31Christian GrothoffNote Added: 0008761
2015-01-09 07:34Christian GrothoffNote Added: 0008762
2015-01-09 07:35Matthias WachsNote Added: 0008763
2015-01-09 07:35Matthias WachsStatusfeedback => assigned
2015-01-09 07:35Matthias WachsStatusassigned => feedback
2015-01-09 07:47Matthias WachsNote Added: 0008764
2015-01-09 07:47Matthias WachsStatusfeedback => assigned
2015-01-09 16:32Christian GrothoffStatusassigned => resolved
2015-01-09 18:40Christian GrothoffTarget Version0.11.0 => 0.11.0pre66
2018-06-06 22:25Christian GrothoffStatusresolved => closed