You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Trying to build openvi 7.0.11 with GCC 4.6.4 on Linux with just
make
:Once I add
-lbsd
to LDFLAGS, it compiles fine.The text was updated successfully, but these errors were encountered: