#5 1.1+2.0: Fix building extras folder (including -I$(top_srcdir) for libcob.h)

Test
pending
nobody
None
1
2014-06-16
2014-04-04
Alexx83
No

Related

Patches: #11

Discussion

  • Simon Sobisch
    Simon Sobisch
    2014-04-07

    I think you copied the wrong link (as it doesn't have to do anything with make in extras folder). Please recheck.

    Simon

     
  • Alexx83
    Alexx83
    2014-04-07

    Ah maybe. I'm lost link to issue but this patch fix building extras folder anyway. I get error building extras folder when building outside source tree. I don't try build inside source tree. Error is with missing headers. I don't have previously installed cobol.

    Regards,
    Alexey.

     
  • Simon Sobisch
    Simon Sobisch
    2014-04-07

    OK, where's the patch?

     
  • Alexx83
    Alexx83
    2014-04-07

    I'm forgot attach it :)

     
  • Philipp Böhme
    Philipp Böhme
    2014-04-11

    I've got some trouble to replicate your problem.

    If I'm doing basicaly the following:
    - mkdir build (in src-tree)
    - cd build
    - ../configure
    - make

    If I do so, there is no error. Please give me a description what you are exactly trying so I can understand the error.

    Greetz Philipp

     
  • Alexx83
    Alexx83
    2014-04-11

    See ticket #6. Maybe I use wrong code location?

     
  • Philipp Böhme
    Philipp Böhme
    2014-04-11

    I guess we use different versions. I'm using Gnu Cobol 2.0 branch - you're probably using 1.1 (current trunk)

     
  • Simon Sobisch
    Simon Sobisch
    2014-05-22

    This bug is solved in 2.x already and still open in 1.x (not sure if we fix it there).

    • summary: Fix building extras folder --> 1.1: Fix building extras folder (including -I$(top_srcdir) for libcob.h)
    • status: open --> pending
     
    Last edit: Simon Sobisch 2014-06-16
  • Alexx83
    Alexx83
    2014-06-03

    This bug still present in 2.x.

    Patch in attachement.

    Regards,
    Alexey.

     
    • Simon Sobisch
      Simon Sobisch
      2014-06-05

      If there is a problem it is in generating $(top_builddir)/tests/atlocal. This batch has to set everything to be able to use cobc/libcob/cobcrun from source tree. It has the following entry in my test environment (generated by GNU Cobol 2.0, current svn rev):

      export COB_CFLAGS="-I${abs_top_srcdir} -I${abs_top_srcdir}/libcob -I/usr/local/include -pipe"
      

      ow does this entry look on your side? If it is currently wrong please revert your change to gnu-cobol/extras/Makefile.am, do './configure' and 'make check' again.

      If it still doesn't work: Please do

      cd extras
      . ../tests/atconfig; . ../tests/atlocal; cobc -m -Wall -std=mf -O -v CBL_OC_DUMP.cob
      

      and post the output (together with output from cobc --info) here.

      Simon