Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#927 Symbol not found: _strndup - Compiling on Mac OS X 10.6

v0.9
closed-invalid
nobody
5
2013-04-04
2013-04-03
lafayette
No

There are problems in compiling Icarus Verilog 0.9.6 on Mac OS X 10.6.8. Complete output is:

flex -PVL -s -t lexor.lex > lexor.cc
bison --verbose -t -p VL -d -o parse.cc parse.y
dyld: lazy symbol binding failed: Symbol not found: _strndup
Referenced from: /usr/bin/bison
Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _strndup
Referenced from: /usr/bin/bison
Expected in: /usr/lib/libSystem.B.dylib

make: *** [parse.cc] Trace/BPT trap

According to https://lists.macosforge.org/pipermail/xquartz-changes/2011-November/001351.html, strndup function was introduced with Lion. Any chance to include this inside Icarus distribution? I've even found an opensource Mac OS implementation of the function at http://opensource.apple.com/source/gcc/gcc-5575.11/libiberty/strndup.c

Thank you

Discussion

  • Cary R.
    Cary R.
    2013-04-03

    From the message you are showing this is a bison problem not an Icarus problem. Note the reference from line shows /usr/bin/bison. I do not think Icarus even uses strndup. I'm not going to close this as invalid yet because someone who uses Mac OS may know what is going on and if I close it you will not be able to reply.

     
  • lafayette
    lafayette
    2013-04-04

    Thank you for pointing it out, actually you were right. I managed to compile icarus by installing bison 2.4.3 from source.

     
  • Cary R.
    Cary R.
    2013-04-04

    I'm closing this as invalid.

     
  • Cary R.
    Cary R.
    2013-04-04

    • status: open --> closed-invalid