Opened 6 years ago

Closed 6 years ago

#300 closed defect (fixed)

Fails to build on QNX 6.3.2

Reported by: mkraai Owned by: Christian Franke
Priority: major Milestone: Release 6.3
Component: all Version:
Keywords: qnx Cc:

Description

When I try to build revision 3851 on QNX 6.3.2, it fails with the following error messages:

source='smartctl.cpp' object='smartctl.o' libtool=no \
DEPDIR=.deps depmode=gcc /bin/sh ./depcomp \
QCC -DHAVE_CONFIG_H -I.  -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/usr/local/etc"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/local/share/smartmontools"'    -I./getopt -DHAVE_GETOPT_LONG -D__GNU_LIBRARY__    -g -O2 -Wall -W -c -o smartctl.o smartctl.cpp
smartctl.cpp: In function `const char* parse_options(int, char**, 
   ata_print_options&, scsi_print_options&, bool&)':
smartctl.cpp:397: error: `free' undeclared (first use this function)
smartctl.cpp:397: error: (Each undeclared identifier is reported only once for 
   each function it appears in.)
cc: /usr/qnx632/host/qnx6/x86/usr/lib/gcc-lib/i386-pc-nto-qnx6.3.0/3.3.5/cc1plus error 1

If I modify smartctl.cpp to include stdlib.h, it builds successfully.

Attachments (1)

patch (321 bytes) - added by mkraai 6 years ago.

Download all attachments as: .zip

Change History (4)

Changed 6 years ago by mkraai

Attachment: patch added

comment:1 Changed 6 years ago by mkraai

Keywords: qnx added

comment:2 Changed 6 years ago by Christian Franke

Milestone: Release 6.3
Owner: changed from somebody to Christian Franke
Status: newaccepted

comment:3 Changed 6 years ago by Christian Franke

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.