Opened 11 years ago

Closed 11 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 11 years ago.

Download all attachments as: .zip

Change History (4)

by mkraai, 11 years ago

Attachment: patch added

comment:1 by mkraai, 11 years ago

Keywords: qnx added

comment:2 by Christian Franke, 11 years ago

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

comment:3 by Christian Franke, 11 years ago

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