Open LuoZhongYao opened 7 years ago
Your bug report is lacking critical information, at the very least you have to provide version information and a compiler error message.
Also while from a technical standpoint QNX is an interesting system, the current license terms discourage me from spending any time on it.
I'm sorroy. The version of the QNX system is 6.6, The compiler is qnx-sdp660. Compile the error message below
cleaning
dvtm build options:
CFLAGS = -std=c99 -I. -DVERSION="0.15" -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_XOPEN_SOURCE_EXTENDED
LDFLAGS = -lc -lutil -lncursesw
CC = qcc
CC dvtm.c
In file included from /home/z/tools/qnx/target/qnx6/usr/include/stdlib.h:25:0,
from dvtm.c:13:
/home/z/tools/qnx/target/qnx6/usr/include/sys/platform.h:172:4: error: #error This version of XOPEN_SOURCE is not supported
dvtm.c: In function 'drawbar':
dvtm.c:358:2: warning: implicit declaration of function 'wcswidth' [-Wimplicit-function-declaration]
dvtm.c:364:4: warning: implicit declaration of function 'wcwidth' [-Wimplicit-function-declaration]
dvtm.c:367:4: warning: implicit declaration of function 'waddnwstr' [-Wimplicit-function-declaration]
dvtm.c: In function 'main':
dvtm.c:1772:3: warning: implicit declaration of function 'pselect' [-Wimplicit-function-declaration]
cc: /home/z/tools/qnx/host/linux/x86/usr/lib/gcc/arm-unknown-nto-qnx6.6.0eabi/4.7.3/cc1 error 1
Makefile:18: recipe for target 'dvtm.o' failed
If edit config.mk like this
# dvtm version
VERSION = 0.15
# Customize below to fit your system
PREFIX ?= /usr/local
MANPREFIX = ${PREFIX}/share/man
# specify your systems terminfo directory
# leave empty to install into your home folder
TERMINFO := ${DESTDIR}${PREFIX}/share/terminfo
INCS = -I.
LIBS = -lc -lutil -lncursesw
CPPFLAGS = -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED
CFLAGS += -std=c99 ${INCS} -DVERSION=\"${VERSION}\" -DNDEBUG ${CPPFLAGS}
LDFLAGS += ${LIBS}
DEBUG_CFLAGS = ${CFLAGS} -UNDEBUG -O0 -g -ggdb -Wall -Wextra -Wno-unused-parameter
CC = qcc
STRIP = strip
This is compile the error message
cleaning
dvtm build options:
CFLAGS = -std=c99 -I. -DVERSION="0.15" -DNDEBUG -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED
LDFLAGS = -lc -lutil -lncursesw
CC = qcc
CC dvtm.c
dvtm.c: In function 'drawbar':
dvtm.c:358:2: warning: implicit declaration of function 'wcswidth' [-Wimplicit-function-declaration]
dvtm.c:364:4: warning: implicit declaration of function 'wcwidth' [-Wimplicit-function-declaration]
dvtm.c:367:4: warning: implicit declaration of function 'waddnwstr' [-Wimplicit-function-declaration]
dvtm.c: In function 'main':
dvtm.c:1772:3: warning: implicit declaration of function 'pselect' [-Wimplicit-function-declaration]
CC vt.c
vt.c:24:22: fatal error: langinfo.h: No such file or directory
compilation terminated.
cc: /home/z/tools/qnx/host/linux/x86/usr/lib/gcc/arm-unknown-nto-qnx6.6.0eabi/4.7.3/cc1 error 1
Makefile:18: recipe for target 'vt.o' failed
make: *** [vt.o] Error 1
The current version is compiled on QNX, and QNX lacks some functions