FileZilla 3.2.7 and OS X Tiger

Moderator: Project members

Post Reply
Message
Author
jdratlif
226 Transfer OK
Posts: 392
Joined: 2008-12-30 10:30
First name: John
Last name: Ratliff
Location: In a small white padded room.

FileZilla 3.2.7 and OS X Tiger

#1 Post by jdratlif » 2009-08-13 23:12

It appears the new power management code is Leopard specific. Perhaps I am wrong, but I can no longer compile a 10.4 compatible binary, and the docs seem to suggest a new API was implemented in Leopard.

I am going to try to find a Tiger disc and try building it again, but I can't build it on Leopard right now, and I think the new power management code is why.

Code: Select all

g++ -DHAVE_CONFIG_H -I. -I../../src/include -I./../include -I/Users/jdratlif/unix/wxMac-2.8.10/lib/wx/include/mac-unicode-release-2.8 -I/Users/jdratlif/unix/wxMac-2.8.10/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXMAC__ -I/Users/jdratlif/unix/libidn/include -I/Users/jdratlif/unix/wxMac-2.8.10/lib/wx/include/mac-unicode-release-2.8 -I/Users/jdratlif/unix/wxMac-2.8.10/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXMAC__ -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -O2 -Wall -g -fexceptions -c -o filezilla-Mainfrm.o `test -f 'Mainfrm.cpp' || echo './'`Mainfrm.cpp
power_management.h:41: error: ‘IOPMAssertionID’ does not name a type
power_management.h:41: error: ‘IOPMAssertionID’ does not name a type
lipo: can't figure out the architecture type of: /var/folders/YJ/YJuy-UUWE-yEMjtuLuZsD++++TI/-Tmp-//ccc2jlwV.out
http://serenity.uncc.edu/web/ADC/2005/D ... ystemPower

It looks like this is the older API for handling sleep events.
http://jdrrant.blogspot.com/ - CODEpendent Blog

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: FileZilla 3.2.7 and OS X Tiger

#2 Post by botg » 2009-08-14 07:55

Perhaps it's time to install the 10.5 servicepack.

jdratlif
226 Transfer OK
Posts: 392
Joined: 2008-12-30 10:30
First name: John
Last name: Ratliff
Location: In a small white padded room.

Re: FileZilla 3.2.7 and OS X Tiger

#3 Post by jdratlif » 2009-08-14 21:36

I already run Leopard, but there are plenty of Tiger users still around. (I wonder if that statements true... anyone know of any websites that track that kind of information?)

I am busy packing to move right now, so I don't have time to look for a real solution, but I have made a patch which removes the power management code so it will compile for Tiger.

http://code.technoplaza.net/filezilla/f ... ment.patch

I may try to look for a better solution later. I am going to go post the new unofficial tiger binary now.
http://jdrrant.blogspot.com/ - CODEpendent Blog

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: FileZilla 3.2.7 and OS X Tiger

#4 Post by botg » 2009-08-15 13:45

You might want to also remove the checkbox from the UI, see optionspage_interface.cpp

jdratlif
226 Transfer OK
Posts: 392
Joined: 2008-12-30 10:30
First name: John
Last name: Ratliff
Location: In a small white padded room.

Re: FileZilla 3.2.7 and OS X Tiger

#5 Post by jdratlif » 2009-08-17 03:40

Thanks, I will look into that when I finish moving. My mac is all boxed up right now.
http://jdrrant.blogspot.com/ - CODEpendent Blog

jdratlif
226 Transfer OK
Posts: 392
Joined: 2008-12-30 10:30
First name: John
Last name: Ratliff
Location: In a small white padded room.

Re: FileZilla 3.2.7 and OS X Tiger

#6 Post by jdratlif » 2009-08-25 04:10

Okay, for the 3.2.7.1 release, the checkbox is hidden as well.

http://code.technoplaza.net/filezilla/f ... t-r1.patch
http://jdrrant.blogspot.com/ - CODEpendent Blog

jdratlif
226 Transfer OK
Posts: 392
Joined: 2008-12-30 10:30
First name: John
Last name: Ratliff
Location: In a small white padded room.

Re: FileZilla 3.2.7 and OS X Tiger

#7 Post by jdratlif » 2009-09-19 19:28

I have found a solution so that a single codebase can be used with both Leopard and Tiger.

http://code.technoplaza.net/filezilla/f ... ment.patch

It works by exploiting the default values of MAC_OS_X_VERSION_MAX_ALLOWED, which is always defined as the current system you are building on or for. So when MACOSX_DEPLOYMENT_TARGET is set to 10.4, or you are building on Tiger, MAC_OS_X_VERSION_MAX_ALLOWED is MAC_OS_X_VERSION_10_4, and when building on Leopard, it's MAC_OS_X_VERSION_10_5. And so on for Snow Leopard or whatever else.

This patch was tested against the 3.2.7.1 source release.

http://wxforum.shadonet.com/viewtopic.php?p=108853 - Thanks tierra.
http://jdrrant.blogspot.com/ - CODEpendent Blog

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: FileZilla 3.2.7 and OS X Tiger

#8 Post by botg » 2009-09-19 21:52

Thanks, applied.

I wish more users would submit patches.

Post Reply