Opened 15 years ago

Closed 15 years ago

#21762 closed defect (fixed)

tuntaposx not building on 10.5

Reported by: zquestz (Josh Ellithorpe) Owned by: febeling@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc: mklein-de (Michael Klein), remy.blank@…, stransky@…, info@…
Port: tuntaposx

Description

questmbp:~ quest$ sudo port clean tuntaposx
---> Cleaning tuntaposx
questmbp:~ quest$ sudo port -u upgrade outdated
---> Computing dependencies for tuntaposx
---> Fetching tuntaposx
---> Verifying checksum(s) for tuntaposx
---> Extracting tuntaposx
---> Applying patches to tuntaposx
---> Configuring 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 -j1 all " returned error 2
Command output: cd src/tap && make TUNTAP_VERSION=20090913 -f Makefile all /usr/bin/g++-4.0 -Wall -mkernel -force_cpusubtype_ALL -fno-builtin -fno-stack-protector -O2 -DKERNEL -DAPPLE -DKERNEL_PRIVATE -DTUNTAP_VERSION=\"20090913\" -DTAP_KEXT_VERSION=\"20090913\" -I.. -I/System/Library/Frameworks/Kernel.framework/Headers -c ../tuntap.cc -o ../tuntap.o ../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*, long unsigned int, void*)' to 'errno_t (*)(ifnet*, u_int32_t, void*)'
make[1]: * tuntap.o Error 1
make:
* [tap.kext] Error 2

Attachments (2)

patch-leopard.diff (2.3 KB) - added by mklein-de (Michael Klein) 15 years ago.
tuntaposx-Portfile.diff (382 bytes) - added by mklein-de (Michael Klein) 15 years ago.

Download all attachments as: .zip

Change History (12)

comment:1 Changed 15 years ago by zquestz (Josh Ellithorpe)

Cc: quest@… added

Cc Me!

comment:2 Changed 15 years ago by tobypeterson

Cc: quest@… removed
Keywords: tuntaposx removed
Priority: HighNormal

comment:3 Changed 15 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to febeling@…

Changed 15 years ago by mklein-de (Michael Klein)

Attachment: patch-leopard.diff added

Changed 15 years ago by mklein-de (Michael Klein)

Attachment: tuntaposx-Portfile.diff added

comment:4 Changed 15 years ago by mklein-de (Michael Klein)

According to the homepage, you need Snow Leopard to compile the latest tuntaposx. Upstream doesn't want to fix: http://sourceforge.net/tracker/?func=detail&aid=2871574&group_id=235725&atid=1097639

Looks like it's just about changing a few "unsigned long" back to "uint32_t", see above patch.

comment:5 Changed 15 years ago by mklein-de (Michael Klein)

Cc: michael.klein@… added

Cc Me!

comment:6 Changed 15 years ago by remy.blank@…

Cc: remy.blank@… added

Cc Me!

comment:7 Changed 15 years ago by stransky@…

Cc: stransky@… added

Cc Me!

comment:8 Changed 15 years ago by info@…

Cc: info@… added

Cc Me!

comment:9 in reply to:  description Changed 15 years ago by info@…

michael.klein's patch does seem to fix the problem on 10.5.8 on PPC.

comment:10 Changed 15 years ago by jmroot (Joshua Root)

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