[Slackbuilds-users] hddtemp

Jorge Almeida jjalmeida at gmail.com
Wed Mar 5 11:53:20 UTC 2014


Doesn't compile:

In file included from /usr/include/string.h:633:0,
                 from scsi.c:38:
/usr/include/bits/string2.h:1301:14: note: expected 'const char *' but
argument is of type 'unsigned char *'
 extern char *__strdup (const char *__string) __THROW __attribute_malloc__;
              ^
if gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I. -I..
-I. -I. -I.. -I../intl -I../intl   -Wall -W -rdynamic -O2 -march=i486
-mtune=i686 -Wall -W -Wcast-align -MT hddtemp-scsicmds.o -MD -MP -MF
".deps/hddtemp-scsicmds.Tpo" \
  -c -o hddtemp-scsicmds.o `test -f 'scsicmds.c' || echo './'`scsicmds.c; \
then mv -f ".deps/hddtemp-scsicmds.Tpo" ".deps/hddtemp-scsicmds.Po"; \
else rm -f ".deps/hddtemp-scsicmds.Tpo"; exit 1; \
fi
scsicmds.c: In function 'scsi_modeselect':
scsicmds.c:184:3: warning: pointer targets in passing argument 4 of
'scsi_command' differ in signedness [-Wpointer-sign]
   return scsi_command(device, cdb, sizeof(cdb), buffer, cdb[4],
SG_DXFER_TO_DEV);
   ^
scsicmds.c:116:5: note: expected 'unsigned char *' but argument is of
type 'char *'
 int scsi_command(int device, unsigned char *cdb, int cdb_len,
unsigned char *buffer, int buffer_len, int dxfer_direction)
     ^
scsicmds.c: In function 'scsi_smartDEXCPTdisable':
scsicmds.c:216:5: warning: pointer targets in passing argument 2 of
'scsi_modeselect' differ in signedness [-Wpointer-sign]
     return scsi_modeselect (device, buf);
     ^
scsicmds.c:171:5: note: expected 'char *' but argument is of type
'unsigned char *'
 int scsi_modeselect(int device, char *buffer) {
     ^
if gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I. -I..
-I. -I. -I.. -I../intl -I../intl   -Wall -W -rdynamic -O2 -march=i486
-mtune=i686 -Wall -W -Wcast-align -MT hddtemp-backtrace.o -MD -MP -MF
".deps/hddtemp-backtrace.Tpo" \
  -c -o hddtemp-backtrace.o `test -f 'backtrace.c' || echo './'`backtrace.c; \
then mv -f ".deps/hddtemp-backtrace.Tpo" ".deps/hddtemp-backtrace.Po"; \
else rm -f ".deps/hddtemp-backtrace.Tpo"; exit 1; \
fi
backtrace.c: In function 'backtrace_handler':
backtrace.c:67:29: error: 'REG_EIP' undeclared (first use in this function)
      puc->uc_mcontext.gregs[REG_EIP]);
                             ^
backtrace.c:67:29: note: each undeclared identifier is reported only
once for each function it appears in
backtrace.c:45:32: warning: unused variable 'old_ebp' [-Wunused-variable]
   static unsigned int old_eip, old_ebp;
                                ^
backtrace.c:45:23: warning: unused variable 'old_eip' [-Wunused-variable]
   static unsigned int old_eip, old_ebp;
                       ^
make[2]: *** [hddtemp-backtrace.o] Error 1
make[2]: Leaving directory
`/slash/extra/slack/slackbuild/tmp/hddtemp-0.3-beta15/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/slash/extra/slack/slackbuild/tmp/hddtemp-0.3-beta15'
make: *** [all] Error 2


More information about the SlackBuilds-users mailing list