autoreconf: "header not found" in generated source

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Vadim Yanitskiy axilirator at gmail.com
Sun Apr 30 08:02:58 UTC 2017


Thanks for response!

I didn't see this error in the jenkins log. But two things are likely:
>
> * gsm0503_test_vectors.c is compiled before the header is generated
> (though unlikely here)
>
> * build dir != src dir. So the "conv.h" is not in the srcdir but the
> builddir?


It seems, I already found one solution. You're right, "build dir != src dir"
was the problem, so I added this:

conv_conv_gsm0503_test_CPPFLAGS = \
    $(AM_CPPFLAGS) \
    -I$(top_srcdir)/tests/conv

And now everything is fine!


With best regards,
Vadim Yanitskiy.

2017-04-30 14:47 GMT+07:00 Holger Freyther <holger at freyther.de>:

>
> > On 29. Apr 2017, at 16:09, Vadim Yanitskiy <axilirator at gmail.com> wrote:
> >
> > Hi all,
> >
> >
>
> Hi!
>
> > conv/gsm0503_test_vectors.c:25:18: fatal error:
> >  conv.h: No such file or directory
> >  #include "conv.h"
> >                   ^
> > compilation terminated.
> >
> > This is why I tried to move this header to the global include
> > directory. According to received feedback from Harald and
> > Sylvain, this approach isn't good and I need to find another one.
> >
> > Any suggestions how to make the conv/gsm0503_test_vectors.c
> > able "to see" the conv.h header?
>
> I didn't see this error in the jenkins log. But two things are likely:
>
> * gsm0503_test_vectors.c is compiled before the header is generated
> (though unlikely here)
>
> * build dir != src dir. So the "conv.h" is not in the srcdir but the
> builddir?
>
> holger
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/openbsc/attachments/20170430/78eb4ebc/attachment.htm>


More information about the OpenBSC mailing list