bug-xorriso
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-xorriso] libisofs fails out-of-tree


From: Thomas Schmitt
Subject: Re: [Bug-xorriso] libisofs fails out-of-tree
Date: Thu, 04 Apr 2019 20:50:52 +0200

Hi,

Burton, Ross wrote in another mail:
> $ cd libburn
> $ mkdir build
> $ cd build
> $ ../configure

Will try this with libisofs, too.

> | ../libisofs-1.5.0/demo/demo.c:43:10: fatal error: libisofs.h: No
> such file or directory
> | ../libisofs-1.5.0/libisofs/util.c:21:10: fatal error: ../version.h:
> No such file or directory
>
> Presumably bad include paths that are relative instead of using
> $(top_srcdir).

Where and/or how would i apply $top_srcdir ?

Well, now that i have instructions how to reproduce, i will look how
far i can get ... and whether i can grasp what's going on.

----------------------------------------------------------------------

> | ../libisofs-1.5.0/libisofs/util.c:21:10: fatal error: ../version.h:
> No such file or directory

../configure obviously created version.h in ./build, not in in the
libisofs-1.5.0 directory, where it is ../version.h relative to ./libburn.

I tried to write in configure.ac:

  AC_CONFIG_FILES([
        ...
        $(top_srcdir)/version.h
        ...
  ])

but that yielded with ../configure

  ../configure: line 13383: top_srcdir: command not found
  [...]
  config.status: error: cannot find input file: `/version.h.in'

The first message does not appear if i omit the ()-brackets around
top_srcdir. But the second message remains.


Neither libburn nor libisoburn include version.h. I could try to change
the libisofs source accordingly.
But now i am curious how one would solve this problem while keeping version.h

----------------------------------------------------------------------

> | ../libisofs-1.5.0/demo/demo.c:43:10: fatal error: libisofs.h: No
> such file or directory

Here i wonder why many other source files have
  #include "libisofs.h"
without causing this error.

The Makefile adds an -Ilibisofs for demo/demo, which is not added for
the library source files. But removing this does not change the error.
Changing it to
  -I../libisofs
does help. So again, i need to learn how to insert the top_srcdir.

(... and probably about the environmental differences between noinst_PROGRAMS
 and libisofs_libisofs_la_SOURCES. Somehow, demo/demo needs more -I than
 the libisofs/* sources.)

----------------------------------------------------------------------

Please bear with me and don't hesitate to give me hints or instructions.


Have a nice day :)

Thomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]