[MacPorts] #39847: reaver @1.4 fails to build libwps.o

MacPorts noreply at macports.org
Sat Aug 3 02:02:04 PDT 2013


#39847: reaver @1.4 fails to build libwps.o
-------------------------------+--------------------------------
  Reporter:  nonstop.server@…  |      Owner:  macports-tickets@…
      Type:  defect            |     Status:  new
  Priority:  Normal            |  Milestone:
 Component:  ports             |    Version:  2.1.3
Resolution:                    |   Keywords:  leopard
      Port:  reaver            |
-------------------------------+--------------------------------

Comment (by ryandesign@…):

 Replying to [comment:3 nonstop.server@…]:
 > Replying to [comment:1 ryandesign@…]:
 >
 > I got the following advice from the developer of reaver in
 [http://code.google.com/p/reaver-wps/issues/detail?id=524#c8 Issue 524],
 but I'm not sure how to correctly implement such a change in a Portfile.
 >
 >> I see that your problem is missing or do not find Headers: [[br]]
 >> stdlib.h, stdint.h, stdio.h, string.h.

 How was this determination reached?
 The log you attached says stdlib.h, stdint.h and string.h were found.
 There is no mention of stdio.h in the log.

 The log says the problem is that u_char is undefined.
 /usr/include/sys/types.h is where u_char is defined. I don't see
 sys/types.h being `#include`d in libwps.c or libwps.h.

 >> It may be that you have installed the SDK. (/ Developer / SDKs)

 SDKs are of course installed, since Xcode does so automatically. However
 MacPorts does not use an SDK, except when building universal on 10.4 on
 PowerPC, which is not the case here.

 >> specify the - sysroot flag to the compiler [[br]]
 >> you also need to specify the MACOSX_DEPLOYMENT_TARGET environment
 variable.

 MacPorts automatically sets MACOSX_DEPLOYMENT_TARGET for all ports.

 >> set (CMAKE_CXX_FLAGS "--sysroot $ {CMAKE_OSX_SYSROOT CMAKE_CXX_FLAGS} $
 {}")

 Does not make sense since reaver 1.4 does not use cmake.

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


More information about the macports-tickets mailing list