Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#126 use of undeclared identifiers 'errno' and 'ENOENT'

0.0.18
closed
nobody
None
5
2014-05-14
2013-10-01
Ryan Schmidt
No

qucs 0.0.17 with the patch from ticket 125 still fails to build on OS X 10.8.5 with clang or llvm-gcc-4.2 with this error:

Making all in log
make[4]: Entering directory `/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_qucs/qucs/work/qucs-0.0.17/asco/tools/log'
/usr/bin/clang -DPACKAGE_NAME=\"ASCO\" -DPACKAGE_TARNAME=\"asco\" -DPACKAGE_VERSION=\"0.4.8\" -DPACKAGE_STRING=\"ASCO\ 0.4.8\" -DPACKAGE_BUGREPORT=\"asco-bugs@lists.sourceforge.net\" -DPACKAGE_URL=\"\" -DNDEBUG=1 -DHAVE_LIBM=1 -I. -I./../auxfunc  -I/opt/local/include  -pipe -Os -arch x86_64 -MT dosdir.o -MD -MP -MF .deps/dosdir.Tpo -c -o dosdir.o dosdir.c
dosdir.c:349:3: error: use of undeclared identifier 'errno'
  errno = ENOENT;       /* no file found */
  ^
dosdir.c:349:11: error: use of undeclared identifier 'ENOENT'
  errno = ENOENT;       /* no file found */
          ^
2 errors generated.
make[4]: *** [dosdir.o] Error 1
1 Attachments

Discussion

  • Guilherme
    Guilherme
    2013-10-01

    Ok. Asco doesn't recognize Darwin as Unix. Please try the attached patch.
    We need to fix that on our release script.

    I also had to handle that for Homebrew (https://github.com/guitorri/homebrew-tap/blob/master/qucs.rb)

     
    Attachments
  • Guilherme
    Guilherme
    2013-10-01

    • status: open --> pending
     
  • Ryan Schmidt
    Ryan Schmidt
    2013-10-01

    Thanks, that works.

     
  • What surprises me, is the fact, that asco 0.4.9 compiles well under macports.

    As it seems you also include asco now in opposite of having to supply it in a different package (in macports asco is a dependency of qucs, which is not neccessary if it is included in qucs)

     
  • Guilherme
    Guilherme
    2013-10-07

    Well, ASCO compiles because the CFLAGS is being appended (as on the portfile):
    configure.cflags-append -DUNIX -I/usr/include/malloc

    Indeed. I don't know exactly why people decided to include ASCO in the release tarball.
    Qucs uses the ASCO executable directly, it does not need it for compilation.

    Currently we do apply a small patch to the distributed ASCO. It just turns-on the unbuffered output of newlines into the console. That was necessary in order to show the progress from within the GUI. It was reported upstream and the developer is looking into it. (https://sourceforge.net/p/qucs/bugs/103/)

    Besides the patch there are no other changes to ASCO, if you prefer you can skip it and use the one provided with MacPorts.

     
  • Guilherme
    Guilherme
    2014-05-14

    • status: pending --> closed
     
  • Guilherme
    Guilherme
    2014-05-14

    Patched on our release script. Forwarded to ASCO maintainer.