New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #20978 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

tuntaposx does not compile on Snow Leopard

Reported by: monty19@… Owned by: febeling@…
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: Cc: kurtjaeke@…, swinbank@…, andrewberry@…, mnick@…
Port: tuntaposx

Description

sudo port install tuntaposx
--->  Computing dependencies for tuntaposx
--->  Building tuntaposx
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_tuntaposx/work/tuntap" && /usr/bin/make -j2 all " returned error 2
Command output: ../tuntap.cc:329: error: invalid conversion from 'errno_t (*)(__ifnet*, u_int32_t, void*)' to 'errno_t (*)(__ifnet*, long unsigned int, void*)'
../tuntap.cc: In member function 'virtual bool tuntap_interface::register_interface(const sockaddr_dl*, void*, u_int32_t)':
../tuntap.cc:329: error: invalid conversion from 'errno_t (*)(__ifnet*, u_int32_t, void*)' to 'errno_t (*)(__ifnet*, long unsigned int, void*)'
../tuntap.cc: In member function 'virtual errno_t tuntap_interface::if_ioctl(u_int32_t, void*)':
../tuntap.cc:889: error: jump to case label
../tuntap.cc:873: error:   crosses initialization of 'ifaddr* ifa'
../tuntap.cc:892: error: jump to case label
../tuntap.cc:873: error:   crosses initialization of 'ifaddr* ifa'
../tuntap.cc:913: error: jump to case label
../tuntap.cc:873: error:   crosses initialization of 'ifaddr* ifa'
../tuntap.cc:925: error: jump to case label
../tuntap.cc:873: error:   crosses initialization of 'ifaddr* ifa'
../tuntap.cc: In member function 'virtual errno_t tuntap_interface::if_ioctl(u_int32_t, void*)':
../tuntap.cc:889: error: jump to case label
../tuntap.cc:873: error:   crosses initialization of 'ifaddr* ifa'
../tuntap.cc:892: error: jump to case label
../tuntap.cc:873: error:   crosses initialization of 'ifaddr* ifa'
../tuntap.cc:913: error: jump to case label
../tuntap.cc:873: error:   crosses initialization of 'ifaddr* ifa'
../tuntap.cc:925: error: jump to case label
../tuntap.cc:873: error:   crosses initialization of 'ifaddr* ifa'
make[1]: *** [../tuntap.o] Error 1
make: *** [tun.kext] Error 2
make: *** Waiting for unfinished jobs....
/usr/bin/g++-4.2 -static -nostdinc -Wall -msoft-float -mlong-branch -force_cpusubtype_ALL -fno-builtin -O2 -DKERNEL -D__APPLE__ -DKERNEL_PRIVATE -DTUNTAP_VERSION=\"20080804\" -DTAP_KEXT_VERSION=\"20080804\" -nostdinc++ -fapple-kext -fno-exceptions -fno-rtti -I.. -I/System/Library/Frameworks/Kernel.framework/Headers -I/System/Library/Frameworks/Kernel.framework/Headers/bsd -c tap.cc -o tap.o
make[1]: *** [../tuntap.o] Error 1
make[1]: *** Waiting for unfinished jobs....
tap.cc: In member function 'virtual bool tap_interface::initialize(short unsigned int, short unsigned int)':
tap.cc:61: warning: deprecated conversion from string constant to 'char*'
make: *** [tap.kext] Error 2

Error: Status 1 encountered during processing.

Attachments

Portfile-20090905.diff (599 bytes) - added by andrewberry@… 4 years ago.
patch-src__tun__Makefile (712 bytes) - added by andrewberry@… 4 years ago.
patch-src__tap__Makefile (712 bytes) - added by andrewberry@… 4 years ago.
patch-src__tap__Makefile.2 (775 bytes) - added by swinbank@… 4 years ago.
patch-src__tun__Makefile.2 (775 bytes) - added by swinbank@… 4 years ago.

Change History

comment:1 Changed 4 years ago by macsforever2000@…

  • Owner changed from macports-tickets@… to febeling@…
  • Port set to tuntaposx

comment:2 Changed 4 years ago by febeling@…

This is an unsolved compatibility problem of the package. Here is the corresponding upstream bug report:

http://sourceforge.net/tracker/?func=detail&aid=2816874&group_id=235725&atid=1097639

comment:3 Changed 4 years ago by monty19@…

Thank you. Manually applying the changes in the patch posted on that page (from comment Date: 2009-08-31 23:28) caused it to compile successfully and after a basic test it appears to work.

(Looks like he patched 20080607 versus 20080804 so there were some minor differences in the files)

comment:4 Changed 4 years ago by kurtjaeke@…

  • Cc kurtjaeke@… added

Cc Me!

comment:5 Changed 4 years ago by swinbank@…

comment:6 Changed 4 years ago by swinbank@…

  • Cc swinbank@… added

Cc Me!

comment:7 Changed 4 years ago by andrewberry@…

Here is an updated port file along with fixed Makefile patches. Seems to work reasonably - though I've only tested the tap driver.

Changed 4 years ago by andrewberry@…

Changed 4 years ago by andrewberry@…

Changed 4 years ago by andrewberry@…

comment:8 Changed 4 years ago by andrewberry@…

  • Cc andrewberry@… added

Cc Me!

Changed 4 years ago by swinbank@…

Changed 4 years ago by swinbank@…

comment:9 Changed 4 years ago by swinbank@…

64 bit kernel extensions need to be of type "Mach-O 64-bit kext bundle x86_64". The attached patches should take care of it, I think.

comment:10 Changed 4 years ago by mnick@…

  • Cc mnick@… added

Cc Me!

comment:11 Changed 3 years ago by jmr@…

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.