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
Re: Impossible to compile: strndup unavailable on OS X

08/24/2013 16:34
Re: Impossible to compile: strndup unavailable on OS X

10/24/2013 16:17
Re: Impossible to compile: strndup unavailable on OS X

11/12/2013 18:11
Re: Impossible to compile: strndup unavailable on OS X

01/30/2014 05:31
Re: Impossible to compile: strndup unavailable on OS X

03/25/2014 00:26
Re: Impossible to compile: strndup unavailable on OS X

03/31/2014 19:04




9

Created with FORUM 2.0.11