Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build on Linux without libbsd #5

Closed
vaygr opened this issue Feb 19, 2022 · 1 comment
Closed

Unable to build on Linux without libbsd #5

vaygr opened this issue Feb 19, 2022 · 1 comment

Comments

@vaygr
Copy link

vaygr commented Feb 19, 2022

Trying to build openvi 7.0.11 with GCC 4.6.4 on Linux with just make:

$$ make
        ld:                                         bin/vi
cl/regcomp.o: In function `enlarge':
regcomp.c:(.text+0x21c): undefined reference to `reallocarray'
cl/regcomp.o: In function `p_bracket':
regcomp.c:(.text+0xd05): undefined reference to `reallocarray'
regcomp.c:(.text+0xd2e): undefined reference to `reallocarray'
cl/regcomp.o: In function `openbsd_regcomp':
regcomp.c:(.text+0x2532): undefined reference to `reallocarray'
regcomp.c:(.text+0x268f): undefined reference to `reallocarray'
cl/regexec.o:regexec.c:(.text+0x28ae): more undefined references to `reallocarray' follow
collect2: ld returned 1 exit status
GNUmakefile:356: recipe for target 'bin/vi' failed
make: *** [bin/vi] Error 1

Once I add -lbsd to LDFLAGS, it compiles fine.

@johnsonjh
Copy link
Owner

Thanks for the report - fixed in 091bc14!

Please reopen if there is any regression.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants