aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: 1 2 [3] 4

Author Topic: aMule SVN compile for PPC Leopard *This time it works!*  (Read 28169 times)

gtoso

  • Official MacOSX Packager
  • Full Member
  • ***
  • Karma: 24
  • Offline Offline
  • Posts: 208
Can't share external drives (expand Volumes Folder in Preferences)
« Reply #30 on: September 08, 2008, 04:55:14 PM »

Works fine, I can select folders on external volumes and it displays the subfolders in the dialog.

No, it doesn't work:
Yes, if I select an external disk/partition then it lists correctly the content,
but if I choose /Volumes then it doesn't list the content:
at least it doesn't list active mount points, if I create an empty dir it lists only it...
It seems to stay in local filesystem and don't see mount points.

I compiled foldertest so:
`../wxMac-2.8.8/osx-build/wx-config --cxx` `../wxMac-2.8.8/osx-build/wx-config --cxxflags` `../wxMac-2.8.8/osx-build/wx-config --libs` foldertest.cpp Path.cpp StringFunctions.cpp FileFunctions.cpp -o foldertest

I know this is an old and OT thread, but I considered it important to resume this test,
since the issue is still open...
If someone can split this topic...

EDIT:
Mmm from graphics they seem alias (see last image),
but from shell they seem directory/mountpoints:
Code: [Select]
super:~ gtoso$ df -h
Filesystem                Size   Used  Avail Capacity  Mounted on
/dev/disk0s3               19G    17G   1.8G    90%    /
devfs                     114K   114K     0B   100%    /dev
fdesc                     1.0K   1.0K     0B   100%    /dev
<volfs>                   512K   512K     0B   100%    /.vol
/dev/disk0s5              9.9G   9.8G    93M    99%    /Volumes/OSXServer
/dev/disk0s6              8.8G   4.7G   4.1G    54%    /Volumes/Leopard
/dev/disk0s8               37G    36G   1.0G    97%    /Volumes/Extras
automount -nsl [127]        0B     0B     0B   100%    /Network
automount -fstab [132]      0B     0B     0B   100%    /automount/Servers
automount -static [132]     0B     0B     0B   100%    /automount/static
/dev/disk1s2               91G    66G    25G    73%    /Volumes/Mastro
super:~ gtoso$ ls -la /Volumes/
total 24
drwxrwxrwt    9 root      admin   306 Sep  8 16:37 .
drwxrwxr-t   30 root      admin  1122 Sep  8 10:56 ..
-rw-rw-rw-    1 administ  admin  6148 Sep  2 19:21 .DS_Store
drwxrwxr-t   12 root      admin   510 Mar 14 12:38 Extras
drwxrwxr-t    9 root      admin   408 Aug 16 19:16 Leopard
drwxr-xr-x    9 gtoso     gtoso   408 Aug 18 18:48 Mastro
lrwxr-xr-x    1 root      admin     1 Sep  3 13:44 OSX -> /
drwxrwxr-t   34 root      admin  1258 Feb 18  2007 OSXServer
drwxr-xr-x    2 gtoso     admin    68 Sep  8 16:37 pippo
super:~ gtoso$ /Developer/Tools/GetFileInfo /Volumes/Mastro
directory: "/Volumes/Mastro"
attributes: avbstclinmedz
created: 08/18/2008 18:25:36
modified: 08/18/2008 18:48:50
super:~ gtoso$ /Developer/Tools/GetFileInfo /Volumes/pippo
directory: "/Volumes/pippo"
attributes: avbstclinmedz
created: 09/08/2008 16:37:36
modified: 09/08/2008 16:37:36
super:~ gtoso$ mount
/dev/disk0s3 on / (local, journaled)
devfs on /dev (local)
fdesc on /dev (union)
<volfs> on /.vol
/dev/disk0s5 on /Volumes/OSXServer (local, journaled)
/dev/disk0s6 on /Volumes/Leopard (local, journaled)
/dev/disk0s8 on /Volumes/Extras (local, journaled)
automount -nsl [127] on /Network (automounted)
automount -fstab [132] on /automount/Servers (automounted)
automount -static [132] on /automount/static (automounted)
/dev/disk1s2 on /Volumes/Mastro (local, nodev, nosuid, journaled)
super:~ gtoso$
« Last Edit: September 08, 2008, 07:43:23 PM by gtoso »
Logged

gtoso

  • Official MacOSX Packager
  • Full Member
  • ***
  • Karma: 24
  • Offline Offline
  • Posts: 208
Re: Can't share external drives (expand Volumes Folder in Preferences)
« Reply #31 on: September 08, 2008, 04:56:44 PM »

Last 2 screenshots (mkdir /Volumes/pippo).

Edit:
From graphics the mountpoints in /Volumes seem alias that point to oneself!

« Last Edit: September 08, 2008, 07:43:47 PM by gtoso »
Logged

gtoso

  • Official MacOSX Packager
  • Full Member
  • ***
  • Karma: 24
  • Offline Offline
  • Posts: 208
Re: Can't share external drives (expand Volumes Folder in Preferences)
« Reply #32 on: September 08, 2008, 07:35:12 PM »

One step forward  :o

I changed in foldertest.cpp
CPath dirName = sharedDir.GetFirstFile(CDirIterator::Dir);
to:
CPath dirName = sharedDir.GetFirstFile(CDirIterator::Any);

and it works, it shows all files including mountpoints!!!

Now the problem is:
it must show only the directories, but the Mac mountpoints are seen as file  ???
from FileFunctions.h:
File = wxDIR_FILES | wxDIR_HIDDEN
Dir  = wxDIR_DIRS  | wxDIR_HIDDEN
Any  = wxDIR_FILES | wxDIR_DIRS   | wxDIR_HIDDEN

So if with Dir they aren't shown then they are seen as wxDIR_FILES,
OSX problem or wxMac bug?
« Last Edit: September 08, 2008, 07:44:03 PM by gtoso »
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4319
Re: aMule SVN compile for PPC Leopard *This time it works!*
« Reply #33 on: September 08, 2008, 08:01:02 PM »

Does this kind of behaviour *ONLY* happen in the /Volumes folder? Or is this something which happens at other places as well? In any case, I could imagine a workaround based on the "/Volumes" name to solve this problem in aMule.

But depending on the correctness of the behaviour (is an alias for an directory a file?), we should fix this in wxMac.
Logged

blackfede

  • Jr. Member
  • **
  • Karma: 3
  • Offline Offline
  • Posts: 70
Re: aMule SVN compile for PPC Leopard *This time it works!*
« Reply #34 on: September 08, 2008, 09:52:08 PM »

It's a problem related to Volumes folde only. Volumes is a direcory where Mac OS X mount all drives attached to himself. If you are familiar to linux it's the sam concept. Make a folder in Volumes is like assign a "Letter" to a drive in Windows.
Logged
All troll are idiots and will go in /dev/null

gtoso

  • Official MacOSX Packager
  • Full Member
  • ***
  • Karma: 24
  • Offline Offline
  • Posts: 208
Re: aMule SVN compile for PPC Leopard *This time it works!*
« Reply #35 on: September 09, 2008, 05:38:49 PM »

Does this kind of behaviour *ONLY* happen in the /Volumes folder?

Yes, at least during "normal Mac usage".

Or is this something which happens at other places as well?

It happens for any mountpoint so if I do:
mkdir pippo
/sbin/mount_ftp -o noautomounted -o browse ftp://gtoso@ftp.xxx.xxx /Users/gtoso/pippo

But Mac users use the Terminal very rarely and the OS automatically mounts anything on /Volumes.

In any case, I could imagine a workaround based on the "/Volumes" name to solve this problem in aMule.

I agree

But depending on the correctness of the behaviour (is an alias for an directory a file?), we should fix this in wxMac.

Emm it's a mystery, but I think so too.

Yes, an alias to a directory is an "empty" file, at least it seems so from shell/Darwin:
Code: [Select]
super:~/Desktop gtoso$ ls -la OWL
total 23640
drwxr-xr-x    7 gtoso  gtoso      238 May 21 22:31 .
drwx------   48 gtoso  gtoso     1632 Sep  9 16:59 ..
-rw-r--r--    1 gtoso  gtoso     6148 May 21 22:31 .DS_Store
-rw-r--r--    1 gtoso  gtoso  6368180 Feb  5  2007 Owl-0.94.tar.gz
-rw-r--r--    1 gtoso  gtoso  5693848 Oct 29  2007 Owl-0.95.tar.gz
-rw-r--r--    1 gtoso  gtoso    26767 May  2  2006 Owl-0.9x-locale-Italian.tar.gz
drwxr-xr-x   38 gtoso  gtoso     1292 May 21 22:31 owl-0.95
super:~/Desktop gtoso$ ls -la OWL\ alias
-rw-r--r--   1 gtoso  gtoso  0 Sep  9 16:59 OWL alias
super:~/Desktop gtoso$ file OWL\ alias
OWL alias: empty
super:~/Desktop gtoso$ if [ -f OWL\ alias ]; then echo ok; fi
ok
super:~/Desktop gtoso$ /Developer/Tools/GetFileInfo OWL\ alias
file: "/Users/gtoso/Desktop/OWL alias"
type: "fdrp"
creator: "MACS"
attributes: Avbstclinmedz
created: 09/09/2008 16:59:46
modified: 09/09/2008 16:59:46
super:~/Desktop gtoso$

The attribute "a" means "Alias file".
From Finder it's an alias of 664 byte (see image).
Until this point everything corresponds to information found around:
http://julipedia.blogspot.com/2007/01/mac-os-x-aliases-and-symbolic-links.html

But mountpoints are strange:
from Darwin they are directory as in any *nix that I know
from Finder they seem alias...

Code: [Select]
super:~ gtoso$ mkdir prova
super:~ gtoso$ file prova
prova: directory
super:~ gtoso$ ls -la |grep prova
drwxr-xr-x     2 gtoso  gtoso        68 Sep  9 17:11 prova
super:~ gtoso$ ls -la prova/
total 0
drwxr-xr-x     2 gtoso  gtoso    68 Sep  9 17:11 .
drwxr-xr-x   253 gtoso  gtoso  8602 Sep  9 17:11 ..
super:~ gtoso$ /Developer/Tools/GetFileInfo prova
directory: "/Users/gtoso/prova"
attributes: avbstclinmedz
created: 09/09/2008 17:11:12
modified: 09/09/2008 17:11:12
super:~ gtoso$ /sbin/mount_ftp -o noautomounted -o browse ftp://gtoso@ftp.tor.it /Users/gtoso/prova
super:~ gtoso$ file prova
prova: directory
super:~ gtoso$ ls -la |grep prova
dr-xr-xr-x     1 gtoso  gtoso       512 Sep  9 17:12 prova
super:~ gtoso$ df -h 
Filesystem                Size   Used  Avail Capacity  Mounted on
/dev/disk0s3               19G    16G   2.0G    89%    /
devfs                     114K   114K     0B   100%    /dev
fdesc                     1.0K   1.0K     0B   100%    /dev
<volfs>                   512K   512K     0B   100%    /.vol
/dev/disk0s5              9.9G   9.8G    93M    99%    /Volumes/OSXServer
/dev/disk0s6              8.8G   4.4G   4.4G    50%    /Volumes/Leopard
/dev/disk0s8               37G    36G   1.0G    97%    /Volumes/Extras
automount -nsl [127]        0B     0B     0B   100%    /Network
automount -fstab [132]      0B     0B     0B   100%    /automount/Servers
automount -static [132]     0B     0B     0B   100%    /automount/static
/dev/disk1s2               91G    68G    24G    74%    /Volumes/Mastro
ftp://gtoso@ftp.tor.it    1.0G   1.0G     0B   100%    /Users/gtoso/prova
super:~ gtoso$ /Developer/Tools/GetFileInfo prova
directory: "/Users/gtoso/prova"
attributes: avbstclinmedz
created: 01/01/1904 01:00:00
modified: 09/09/2008 17:13:23
super:~ gtoso$ if [ -d /Users/gtoso/prova ]; then echo ok; fi
ok
super:~ gtoso$ /Developer/Tools/GetFileInfo prova
directory: "/Users/gtoso/prova"
attributes: avbstclinmedz
created: 01/01/1904 01:00:00
modified: 09/09/2008 17:15:15
super:~ gtoso$ ls -la |grep prova
dr-xr-xr-x     1 gtoso  gtoso       512 Sep  9 17:15 prova
super:~ gtoso$ kill -15 18399
super:~ gtoso$ ls -la |grep prova
drwxr-xr-x     2 gtoso  gtoso        68 Sep  9 17:11 prova
super:~ gtoso$

However I think we should first investigate how wxMac recognizes a directory...
« Last Edit: September 09, 2008, 06:16:40 PM by gtoso »
Logged

gtoso

  • Official MacOSX Packager
  • Full Member
  • ***
  • Karma: 24
  • Offline Offline
  • Posts: 208
Re: aMule SVN compile for PPC Leopard *This time it works!*
« Reply #36 on: September 09, 2008, 06:29:56 PM »

Does this kind of behaviour *ONLY* happen in the /Volumes folder?

Yes, at least during "normal Mac usage".

But mountpoints are strange:
from Darwin they are directory as in any *nix that I know
from Finder they seem alias...

However I think we should first investigate how wxMac recognizes a directory...


Ignore all the rest,
I'm sorry for the confusion but I think that volumes/mountpoints are directory, regardless of how Finder represents them...
The only problem is to understand because they are seen as wxDIR_FILES.

Code: [Select]
super:~ gtoso$ ls -la /Volumes/
total 24
drwxrwxrwt    8 root      admin   272 Sep  9 15:23 .
drwxrwxr-t   30 root      admin  1122 Sep  8 10:56 ..
-rw-rw-rw-    1 administ  admin  6148 Sep  9 14:02 .DS_Store
drwxrwxr-t   12 root      admin   510 Mar 14 12:38 Extras
drwxrwxr-t    9 root      admin   408 Aug 16 19:16 Leopard
drwxr-xr-x    9 gtoso     gtoso   408 Sep  9 17:20 Mastro
lrwxr-xr-x    1 root      admin     1 Sep  3 13:44 OSX -> /
drwxrwxr-t   34 root      admin  1258 Feb 18  2007 OSXServer
super:~ gtoso$ stat /Volumes/Mastro
234881032 2 drwxr-xr-x 9 gtoso gtoso 0 408 "Sep  9 18:03:58 2008" "Sep  9 17:20:45 2008" "Sep  9 17:20:45 2008" 4096 0 0 /Volumes/Mastro
super:~ gtoso$ cat testdir.c
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>

struct stat stbuf;

int main (int argc, char ** argv) {
        if (argc != 2) exit(-1);
        printf("%s: ", argv[1]);
        if (stat(argv[1], &stbuf) == -1) exit(-1);
        if ((stbuf.st_mode & S_IFMT) == S_IFDIR)
                printf("DIR\n");
        else
                printf("NO DIR\n");
        exit(0);
}
super:~ gtoso$ ./testdir /Volumes/Mastro
/Volumes/Mastro: DIR
super:~ gtoso$
« Last Edit: September 09, 2008, 06:31:31 PM by gtoso »
Logged

gtoso

  • Official MacOSX Packager
  • Full Member
  • ***
  • Karma: 24
  • Offline Offline
  • Posts: 208
Re: aMule SVN compile for PPC Leopard *This time it works!*
« Reply #37 on: September 10, 2008, 07:06:38 PM »

Maybe I found the bug, but I'm confused  ???

I worked on wuischke foldertest and now it works fine, it finds all the directories (mountpoints and even symlinks to directories included).
But I haven't changed the code, only added wxMac src/unix/dir.cpp to files passed to g++ !!!

So instead of:
Code: [Select]
WXCONFIG='../wxMac-2.8.8/osx-build/wx-config'

`$WXCONFIG --cxx` `$WXCONFIG --cxxflags` `$WXCONFIG --libs` foldertest.cpp Path.cpp StringFunctions.cpp FileFunctions.cpp -o foldertest
cp foldertest foldertest.app/Contents/MacOS/

I used:
Code: [Select]
WXBASE='../wxMac-2.8.8'
WXCONFIG="$WXBASE/osx-build/wx-config"

`$WXCONFIG --cxx` `$WXCONFIG --cxxflags` `$WXCONFIG --libs` foldertest.cpp Path.cpp StringFunctions.cpp FileFunctions.cpp $WXBASE/src/unix/dir.cpp -o foldertest
cp foldertest foldertest.app/Contents/MacOS/

Tested on Tiger PCC, if someone with Leopard can try.
New zip attached.

« Last Edit: September 12, 2008, 04:00:01 PM by gtoso »
Logged

gtoso

  • Official MacOSX Packager
  • Full Member
  • ***
  • Karma: 24
  • Offline Offline
  • Posts: 208
wxMac and wxDir::GetFirst
« Reply #38 on: September 12, 2008, 04:26:11 PM »

I'm not expert of C++ or WxWidgets but IMHO this seems strange.
I refer to what I said in the previous post and confirmed by these tests.

Test1: testdir
"Is a dir?" C compiled normally (gcc -W -Wall -pedantic testdir.c -o testdir)

Code: [Select]
super:~/mulo/testdir gtoso$ cat testdir.c
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>

struct stat stbuf;

int main (int argc, char ** argv) {
        if (argc != 2) exit(-1);
        printf("%s: ", argv[1]);
        if (stat(argv[1], &stbuf) == -1) exit(-1);
        if ((stbuf.st_mode & S_IFMT) == S_IFDIR)
                printf("DIR\n");
        else
                printf("NO DIR\n");
        exit(0);
}
super:~/mulo/testdir gtoso$ ls -la /Volumes/      
total 24
drwxrwxrwt    8 root      admin   272 Sep 11 21:37 .
drwxrwxr-t   30 root      admin  1122 Sep 11 21:23 ..
-rw-rw-rw-    1 administ  admin  6148 Sep  9 14:02 .DS_Store
drwxrwxr-t   12 root      admin   510 Mar 14  2008 Extras
drwxrwxr-t    9 root      admin   408 Aug 16 19:16 Leopard
drwxr-xr-x    9 gtoso     gtoso   408 Sep  9 17:20 Mastro
lrwxr-xr-x    1 root      admin     1 Sep 11 21:23 OSX -> /
drwxrwxr-t   34 root      admin  1258 Feb 18  2007 OSXServer
super:~/mulo/testdir gtoso$ ls -la /Developer
lrwxr-xr-x   1 root  admin  25 Nov 19  2007 /Developer -> /Volumes/Extras/Developer
super:~/mulo/testdir gtoso$ ./testdir /Volumes
/Volumes: DIR
super:~/mulo/testdir gtoso$ ./testdir /Volumes/Mastro
/Volumes/Mastro: DIR
super:~/mulo/testdir gtoso$ ./testdir /Developer
/Developer: DIR
super:~/mulo/testdir gtoso$ ./testdir /Volumes/.DS_Store
/Volumes/.DS_Store: NO DIR
super:~/mulo/testdir gtoso$

Test2: testdir2
As testdir but in mypseudo C++ using wxDir::Exists
It works fine returning the same results of testdir only more big:
-rwxr-xr-x   1 gtoso  gtoso    14268 Sep 12 15:48 testdir
-rwxr-xr-x   1 gtoso  gtoso  1794208 Sep 12 15:50 testdir2

Code: [Select]
super:~/mulo/testdir gtoso$ cat testdir2.cpp
#include <stdio.h>
#include <stdlib.h>
#include <wx/dir.h>
#include <wx/filefn.h>

struct stat stbuf;

int main (int argc, char ** argv) {
        if (argc != 2) exit(-1);
        wxString file (argv[1], wxConvUTF8);
        printf("%s: ", argv[1]);
        if (wxDir::Exists(file))
                printf("DIR\n");
        else
                printf("NO DIR\n");
        exit(0);
}
super:~/mulo/testdir gtoso$ cat compile2   
`../wxMac-2.8.8/osx-build/wx-config --cxx` `../wxMac-2.8.8/osx-build/wx-config --cxxflags` `../wxMac-2.8.8/osx-build/wx-config --libs` testdir2.cpp -o testdir2
super:~/mulo/testdir gtoso$ ./testdir2 /
/: DIR
super:~/mulo/testdir gtoso$ ./testdir2 /Volumes
/Volumes: DIR
super:~/mulo/testdir gtoso$ ./testdir2 /Volumes/Mastro
/Volumes/Mastro: DIR
super:~/mulo/testdir gtoso$ ./testdir2 /Developer    
/Developer: DIR
super:~/mulo/testdir gtoso$ ./testdir2 testdir2.cpp   
testdir2.cpp: NO DIR
super:~/mulo/testdir gtoso$

Test3: testdir3
"What dirs this dir contains?" C++ using wxDir::GetFirst
This seems the problem...

Code: [Select]
super:~/mulo/testdir gtoso$ cat testdir3.cpp
#include <stdio.h>
#include <stdlib.h>
#include <wx/dir.h>
#include <wx/filefn.h>

int main (int argc, char ** argv) {
        if (argc != 2) exit(-1);
        wxString file (argv[1], wxConvUTF8);
        printf("%s:\n", argv[1]);

        wxDir dir(file);
        if ( !dir.IsOpened() ) {
                exit(-1);
        }

        wxString filename;
        bool cont = dir.GetFirst(&filename, wxEmptyString, wxDIR_DIRS);
        while ( cont ) {
                printf("%s\n", (const char *) filename.mb_str());
                cont = dir.GetNext(&filename);
        }
        exit(0);
}
super:~/mulo/testdir gtoso$ cat compile3
`../wxMac-2.8.8/osx-build/wx-config --cxx` `../wxMac-2.8.8/osx-build/wx-config --cxxflags` `../wxMac-2.8.8/osx-build/wx-config --libs` testdir3.cpp -o testdir3
super:~/mulo/testdir gtoso$ ./testdir3 /
/:
Applications
Library
opt
System
Users
super:~/mulo/testdir gtoso$ ./testdir3 /Volumes
/Volumes:
super:~/mulo/testdir gtoso$

But compiling it with dir.cpp it works,
why?  ???

Code: [Select]
super:~/mulo/testdir gtoso$ cat compile3.new
`../wxMac-2.8.8/osx-build/wx-config --cxx` `../wxMac-2.8.8/osx-build/wx-config --cxxflags` `../wxMac-2.8.8/osx-build/wx-config --libs` ../wxMac-2.8.8/src/unix/dir.cpp testdir3.cpp -o testdir3.1
super:~/mulo/testdir gtoso$ ./testdir3.1 /
/:
Applications
automount
bin
cores
dev
Developer
etc
Library
Network
opt
private
sbin
System
tmp
Users
usr
var
Volumes
super:~/mulo/testdir gtoso$ ./testdir3.1 /Volumes
/Volumes:
Extras
Leopard
Mastro
OSX
OSXServer
super:~/mulo/testdir gtoso$

It doesn't show hidden dirs because I used only wxDIR_DIRS and not wxDIR_HIDDEN.

EDIT:
testdir3 doesn't show hidden dirs,
testdir3.1 linked to unix dir.cpp doesn't show dirs beginning with dot but it shows dirs with invisible attribute.
« Last Edit: September 12, 2008, 08:36:48 PM by gtoso »
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4319
Re: aMule SVN compile for PPC Leopard *This time it works!*
« Reply #39 on: September 12, 2008, 05:16:12 PM »

Thanks for this further research, I'll try to make sense of it tomorrow or Sunday.
Logged

gtoso

  • Official MacOSX Packager
  • Full Member
  • ***
  • Karma: 24
  • Offline Offline
  • Posts: 208
Re: wxMac and wxDir::GetFirst
« Reply #40 on: September 12, 2008, 05:22:35 PM »


Test3: testdir3
"What dirs this dir contains?" C++ using wxDir::GetFirst
This seems the problem...

But compiling it with dir.cpp it works,
why?  ???


GRRRRRRR('")£(r£"b)')£
I understand!!!!

In Mac during wxMac compilation,
src/unix/dir.cpp is not used...
It use src/mac/carbon/dirmac.cpp that I think is bugged...maybe...

Logged

gtoso

  • Official MacOSX Packager
  • Full Member
  • ***
  • Karma: 24
  • Offline Offline
  • Posts: 208
Re: aMule SVN compile for PPC Leopard *This time it works!*
« Reply #41 on: September 12, 2008, 05:26:47 PM »

Thanks for this further research, I'll try to make sense of it tomorrow or Sunday.

Good,
maybe I just found the bugged file: src/mac/carbon/dirmac.cpp
but I'm not sure

Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 165
  • Offline Offline
  • Posts: 2675
Re: aMule SVN compile for PPC Leopard *This time it works!*
« Reply #42 on: September 12, 2008, 11:58:42 PM »

gtoso, you may want to test the following:

in src/mac/carbon/dirmac.cpp: wxDirData::Read(), before each "continue" statement add some debugging output to see why and what is skipped; for example: wxASSERT(wxT("skipped ") + name + wxT(" because ...")); (add proper '{' and '}' braces too; you may also use the wxLog facility, ...).

This way we can find out if FSGetCatalogInfoBulk fails to find those items or wx skips them for whatever reason.

(For wxASSERT to work you have to compile wx in debug-enabled mode.)
Logged
concordia cum veritate

gtoso

  • Official MacOSX Packager
  • Full Member
  • ***
  • Karma: 24
  • Offline Offline
  • Posts: 208
Re: aMule SVN compile for PPC Leopard *This time it works!*
« Reply #43 on: September 14, 2008, 04:24:50 AM »

GonoszTopi I will try...
For now I made some test using dirt printf without results:
kFSNodeIsDirectoryMask see mountpoints as files!
I tried to use sharingFlags without success.

Some usefull info here:
http://developer.apple.com/documentation/Carbon/Reference/File_Manager/Reference/reference.html

Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 165
  • Offline Offline
  • Posts: 2675
Re: aMule SVN compile for PPC Leopard *This time it works!*
« Reply #44 on: September 14, 2008, 10:28:08 AM »

If neither nodeFlags nor sharingFlags work, I have no idea.
Logged
concordia cum veritate
Pages: 1 2 [3] 4