genotrance / nimarchive

libarchive wrapper for Nim
MIT License
17 stars 3 forks source link

Can't find symbol archive_entry_size #11

Open BarrOff opened 4 years ago

BarrOff commented 4 years ago

Hello,

I tried using nimarchive on MacOS and FreeBSD, and both failed, seemingly by the same cause:

Undefined symbols for architecture x86_64: "_archive_entry_size", referenced from: _extractQbNO6N9avoWUYifc29a01B5w in @m..@s.nimble@spkgs@snimarchive-0.3.6@snimarchive.nim.c.o "_archive_error_string", referenced from: _check2XBiY2lvo4SY1GvEF8ydOA in @m..@s.nimble@spkgs@snimarchive-0.3.6@snimarchive.nim.c.o "_archive_read_data_block", referenced from: _copyDatal1jmLtN06kAjtQZqJXWU1A in @m..@s.nimble@spkgs@snimarchive-0.3.6@snimarchive.nim.c.o _extractQbNO6N9avoWUYifc29a01B5w in @m..@s.nimble@spkgs@snimarchive-0.3.6@snimarchive.nim.c.o "_archive_read_free", referenced from: _extractQbNO6N9avoWUYifc29a01B5w in @m..@s.nimble@spkgs@snimarchive-0.3.6@snimarchive.nim.c.o "_archive_read_new", referenced from: _extract__QbNO6N9avoWUYifc29a01B5w in @m..@s.nimble@spkgs@snimarchive-0.3.6@snimarchive.nim.c.o "_archive_read_next_header", referenced from: _extractQbNO6N9avoWUYifc29a01B5w in @m..@s.nimble@spkgs@snimarchive-0.3.6@snimarchive.nim.c.o "_archive_read_open_filename", referenced from: _extractQbNO6N9avoWUYifc29a01B5w in @m..@s.nimble@spkgs@snimarchive-0.3.6@snimarchive.nim.c.o "_archive_read_support_compression_all", referenced from: _extractQbNO6N9avoWUYifc29a01B5w in @m..@s.nimble@spkgs@snimarchive-0.3.6@snimarchive.nim.c.o "_archive_read_support_format_all", referenced from: _extractQbNO6N9avoWUYifc29a01B5w in @m..@s.nimble@spkgs@snimarchive-0.3.6@snimarchive.nim.c.o "_archive_write_data_block", referenced frm: _copyData__l1jmLtN06kAjtQZqJXWU1A in @m..@s.nimble@spkgs@snimarchive-0.3.6@snimarchive.nim.c.o _extractQbNO6N9avoWUYifc29a01B5w in @m..@s.nimble@spkgs@snimarchive-0.3.6@snimarchive.nim.c.o "_archive_write_disk_new", referenced from: _extractQbNO6N9avoWUYifc29a01B5w in @m..@s.nimble@spkgs@snimarchive-0.3.6@snimarchive.nim.c.o "_archive_write_disk_set_options", referenced from: _extractQbNO6N9avoWUYifc29a01B5w in @m..@s.nimble@spkgs@snimarchive-0.3.6@snimarchive.nim.c.o "_archive_write_disk_set_standard_lookup", referenced from: _extract__QbNO6N9avoWUYifc29a01B5w in @m..@s.nimble@spkgs@snimarchive-0.3.6@snimarchive.nim.c.o "_archive_write_finish_entry", referenced from: _extractQbNO6N9avoWUYifc29a01B5w in @m..@s.nimble@spkgs@snimarchive-0.3.6@snimarchive.nim.c.o "_archive_write_free", referenced from: _extractQbNO6N9avoWUYifc29a01B5w in @m..@s.nimble@spkgs@snimarchive-0.3.6@snimarchive.nim.c.o "_archive_write_header", referenced from: _extract__QbNO6N9avoWUYifc29a01B5w in @m..@s.nimble@spkgs@snimarchive-0.3.6@snimarchive.nim.c.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)o

in FreeBSD it is a less verbose:

$HOME/.nimble/pkgs/nimarchive-0.3.6/nimarchive.nim(81, 13) Error: attempting to call undeclared routine: 'archive_entry_size'

If you find a fix I would test it and report back.

genotrance commented 4 years ago

nimarchive is tested on OSX - can you share the portion of the output where the library being linked is displayed? Should say # Including library .... Looks like it isn't being linked.

FreeBSD is not tested and I don't have a system to try on either.