Share

BrewNIX Beer Brewing Software

Tracker: Bugs

5 Open of @sysconfdir@/aha.dat failed! - ID: 531004
Last Update: Comment added ( fgiff )

See 531001, this might be linked to a compile problem
(but I do not think this is the case).

Using the latest CVS, I compile and run brewnix under
Cygwin. The compile succeeds, and I make install.

When I run brewnix, I get the following error:
$ brewnix
BrewNIX: Read_Styles: Open of @sysconfdir@/aha.dat
failed!

$ find /|grep aha.dat
/usr/local/etc/aha.dat

$ grep -r sysconfdir src/*
src/Makefile:sysconfdir = ${prefix}/etc
src/Makefile:CPPFLAGS = -
DSYSCONFDIR="\"@sysconfdir@\""
src/Makefile.in:sysconfdir = @sysconfdir@
Binary file src/brewnix.exe matches
Binary file src/data_io.o matches



I tried editing src/dataio.c as follows:
"fullpath" = 1
#define AHANAME "/usr/local/etc/aha.dat"

That still did not work. I also tried deleting my
existing database (which had created using the tarball
brewnix 1.02, and I thought might not be compatible).

Any help is apprecated :-)


Scott Prive ( sleepy ) - 2002-03-17 16:45

5

Closed

None

Frans Gifford

None

None

Public


Comment ( 1 )




Date: 2003-10-30 18:33
Sender: fgiffProject Admin

Logged In: YES
user_id=457338

@sysconfdir@ is a macro used by automake, it should be
expanded in the Makefile, so the problem is probably linked
to the compile problem. To fix it, try editing the Makefile line
CPPFLAGS = -DSYSCONFDIR="\"@sysconfdir@\""
to
CPPFLAGS = -DSYSCONFDIR="\"PATH\""
where PATH is the path to aha.dat (which automake should
have expanded to ${prefix}/etc)

Alternatively, you can try to run configure with the option
--sysconfdir=PATH where PATH is the same as above.

Frans


Log in to comment.

Attached File

No Files Currently Attached

Changes ( 4 )

Field Old Value Date By
status_id Open 2003-10-30 18:33 fgiff
close_date - 2003-10-30 18:33 fgiff
assigned_to rdcpro 2003-04-01 21:17 fgiff
assigned_to nobody 2002-04-10 19:46 sleepy