Opened 15 years ago
Closed 15 years ago
#20978 closed defect (fixed)
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@…, jdswinbank (John 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 (5)
Change History (16)
comment:1 Changed 15 years ago by mf2k (Frank Schima)
Owner: | changed from macports-tickets@… to febeling@… |
---|---|
Port: | tuntaposx added |
comment:2 Changed 15 years ago by febeling@…
comment:3 Changed 15 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:5 Changed 15 years ago by jdswinbank (John Swinbank)
This should be fixed by the new 20090905 release:
http://sourceforge.net/tracker/?func=detail&aid=2816874&group_id=235725&atid=1097639
comment:7 Changed 15 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 15 years ago by andrewberry@…
Attachment: | Portfile-20090905.diff added |
---|
Changed 15 years ago by andrewberry@…
Attachment: | patch-src__tun__Makefile added |
---|
Changed 15 years ago by andrewberry@…
Attachment: | patch-src__tap__Makefile added |
---|
Changed 15 years ago by jdswinbank (John Swinbank)
Attachment: | patch-src__tap__Makefile.2 added |
---|
Changed 15 years ago by jdswinbank (John Swinbank)
Attachment: | patch-src__tun__Makefile.2 added |
---|
comment:9 Changed 15 years ago by jdswinbank (John 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:11 Changed 15 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
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