HTTrack Website Copier
Free software offline browser - FORUM
Subject: Impossible to compile: strndup unavailable on OS X
Author:
Date: 07/02/2012 19:37
 
Hello there!

I’m sure I’ve compiled httrack before on OS X 10.6.8 (Snow Leopard), but I
just tried the new 3.46.1 version to no avail.

While compiling I get this error:
Undefined symbols:
  "_strndup", referenced from:
      _hts_convertStringToUTF8_ in libhttrack.a(htscharset.o)
      _hts_convertStringFromUTF8 in libhttrack.a(htscharset.o)
      _hts_convertStringToUTF8 in libhttrack.a(htscharset.o)
ld: symbol(s) not found

Reading around Internet, I realized strndup is a GNU extension, not adopted on
OS X (at least Snow Leopard).

Is there a way you can release a version without it? Perhaps a more all-around
malloc + strncopy alternative?
Thanks in advance, and keep it up!
 
Reply


All articles

Subject Author Date
Impossible to compile: strndup unavailable on OS X 07/02/2012 19:37




9

Created with FORUM 2.0.11