Opened 11 years ago

Closed 11 years ago

#38943 closed defect (fixed)

base trunk does not build on Tiger because of undefined __DARWIN_MAXPATHLEN and undeclared SYS_getdirentries64

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: neverpanic (Clemens Lang)
Priority: Normal Milestone:
Component: base Version:
Keywords: Cc: neverpanic (Clemens Lang)
Port:

Description

This is the failure on PPC Mac OS X 10.4.11 with Revision 105593:

===> making all in src/registry2.0
gcc -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -Wextra -Wall -pedantic   -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include" -fno-common registry.c -o registry.o
gcc -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -Wextra -Wall -pedantic   -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include" -fno-common util.c -o util.o
gcc -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -Wextra -Wall -pedantic   -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include" -fno-common entry.c -o entry.o
gcc -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -Wextra -Wall -pedantic   -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include" -fno-common entryobj.c -o entryobj.o
gcc -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -Wextra -Wall -pedantic   -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include" -fno-common file.c -o file.o
gcc -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -Wextra -Wall -pedantic   -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include" -fno-common fileobj.c -o fileobj.o
cc -dynamiclib  registry.o util.o entry.o entryobj.o file.o fileobj.o ../cregistry/cregistry.a -o registry.dylib -L/System/Library/Frameworks/Tcl.framework/Versions/8.4 -ltclstub8.4   -lsqlite3
===> making all in src/darwintracelib1.0
gcc -g -O2 -Wextra -Wall   -fPIC -Wno-deprecated-declarations -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include"  -c -o darwintrace.o darwintrace.c
darwintrace.c:1106: error: ‘__DARWIN_MAXPATHLEN’ undeclared here (not in a function)
darwintrace.c: In function ‘__getdirentries64’:
darwintrace.c:1111: error: ‘SYS_getdirentries64’ undeclared (first use in this function)
darwintrace.c:1111: error: (Each undeclared identifier is reported only once
darwintrace.c:1111: error: for each function it appears in.)
make[2]: *** [darwintrace.o] Error 1
make[1]: *** [all] Error 1
make: *** [all] Error 1

Attachments (2)

syscall.h (11.7 KB) - added by ballapete (Peter "Pete" Dyballa) 11 years ago.
/usr/include/sys/syscall.h from Mac OS X 10.4.11
dirent.h (4.3 KB) - added by ballapete (Peter "Pete" Dyballa) 11 years ago.
/usr/include/sys/dirent.h from Mac OS X 10.4.11

Download all attachments as: .zip

Change History (7)

comment:1 Changed 11 years ago by larryv (Lawrence Velázquez)

Cc: cal@… added; cal removed
Component: portsbase
Port: trunk removed

Cc takes real email addresses.

comment:2 Changed 11 years ago by neverpanic (Clemens Lang)

Owner: changed from macports-tickets@… to cal@…
Status: newassigned

Can you attach (or mail) /usr/include/sys/syscall.h and /usr/include/sys/dirent.h? It seems getdirentries64 wasn't available on Tiger so I can just #ifdef it out completely, but I'd like to make sure that's actually the case.

Changed 11 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: syscall.h added

/usr/include/sys/syscall.h from Mac OS X 10.4.11

Changed 11 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: dirent.h added

/usr/include/sys/dirent.h from Mac OS X 10.4.11

comment:3 Changed 11 years ago by neverpanic (Clemens Lang)

Can you check whether r105633 solves the problem for you?

comment:4 in reply to:  3 Changed 11 years ago by ballapete (Peter "Pete" Dyballa)

Replying to cal@…:

Can you check whether r105633 solves the problem for you?

'make' and 'make install' now succeeded.

comment:5 Changed 11 years ago by neverpanic (Clemens Lang)

Resolution: fixed
Status: assignedclosed

Great :)

Note: See TracTickets for help on using tickets.