Opened 11 years ago

Closed 11 years ago

#41213 closed defect (fixed)

jigdo: use of undelared identifier 'setenv' in compat.hh

Reported by: whcordis@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: mavericks Cc:
Port: jigdo

Description

Got the below error when attempting to compile the current version of jigdo on OS 10.9 with Xcode 5.0.1

:info:build /usr/bin/clang++ $cxx -c mktemplate.cc -o mktemplate.o
:info:build In file included from compat.cc:16:
:info:build In file included from cachefile.cc:17:
:info:build ./compat.hh:47:25: warning: implicit conversion changes signedness: 'uint64' (aka 'unsigned long') to 'off_t' (aka 'long long') [-Wsign-conversion]
:info:build ./compat.hh:47:25: warning: implicit conversion changes signedness: 'uint64' (aka 'unsigned long') to 'off_t' (aka 'long long') [-Wsign-conversion]
:info:build   return truncate(path, length);
:info:build          ~~~~~~~~       ^~~~~~
:info:build   return truncate(path, length);
:info:build          ~~~~~~~~       ^~~~~~
:info:build ./compat.hh:84:11: ./compat.hh:84:11: error: use of undeclared identifier 'setenv'
:info:build   return (setenv(name, value, 1) == 0) ? SUCCESS : FAILURE;
:info:build           ^
:info:build error: use of undeclared identifier 'setenv'
:info:build   return (setenv(name, value, 1) == 0) ? SUCCESS : FAILURE;
:info:build           ^
:info:build 1 warning and 1 error generated.
:info:build make[1]: *** [cachefile.o] Error 1
:info:build make[1]: *** Waiting for unfinished jobs....
:info:build 1 warning and 1 error generated.
:info:build make[1]: *** [compat.o] Error 1

Attachments (1)

main.log (48.6 KB) - added by whcordis@… 11 years ago.
Full Log for compile failure

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by whcordis@…

Attachment: main.log added

Full Log for compile failure

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

comment:2 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

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