Skip to content

Mac: build passes but runtime fatal error #47

@utensil

Description

@utensil

I'm on my Mac Mini M4, after cloning the code, I ran make && sudo make install, the build passes:

❯ make && sudo make install
gcc  -DNDEBUG -O2 -Wall -Wextra -fno-strict-aliasing  -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -o src/rdrview.o -c src/rdrview.c
gcc  -o rdrview src/content.o src/iterator.o src/node.o src/prep_article.o src/rdrview.o src/readability.o src/readerable.o src/regex.o src/sandbox.o -lcurl -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -lxml2 -lz -lpthread -licucore -lm -lm -liconv
ld: warning: ignoring duplicate libraries: '-lm'
Password:
mkdir -p /usr/local/bin
cp -f rdrview /usr/local/bin
mkdir -p /usr/local/share/man/man1
cp -f rdrview.1 /usr/local/share/man/man1
chmod 0644 /usr/local/share/man/man1/rdrview.1

but when I run it, there's a fatal error:

❯ rdrview 'https://github.com/eafer/rdrview'
(null): fatal error in function main(), line 1199

Around that line, code reads:

	LIBXML_TEST_VERSION
	/* I made a mess mixing xmlMalloc() and malloc(), so play it safe here */
	if (xmlMemSetup(free, malloc, realloc, strdup))
		fatal();

Is there a related known issue? What may be the probable cause? Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions