[MacPorts] #41213: jigdo: use of undelared identifier 'setenv' in compat.hh

MacPorts noreply at macports.org
Tue Nov 5 14:44:18 PST 2013


#41213: jigdo: use of undelared identifier 'setenv' in compat.hh
------------------------+--------------------------------
 Reporter:  whcordis@…  |      Owner:  macports-tickets@…
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.2.1
 Keywords:  mavericks   |       Port:  jigdo
------------------------+--------------------------------
 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
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/41213>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list