sitecopy fails to build

Boey Maun Suang boeyms at
Tue Jun 12 19:16:39 PDT 2007

Hi Malcolm,

> MacPorts 1.442 / Mac OSX 10.3.9 running on 600MHz PPC G3 - iBook

Ah, I had one of those; I'd probably still be using it if the screen  
hadn't died on me :-(

> Error: Target returned: shell command " cd "/opt/ 
> local/var/db/dports/build/_op
> t_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dpo 
> rts_www_sitecopy/work/si
> tecopy-0.16.3" && make all " returned error 2
> Command output: >>> Entering intl
> make[1]: Nothing to be done for `all'.
> <<< Leaving intl
> >>> Entering lib/neon
> Bundled neon build not being used.
> <<< Leaving lib/neon
> gcc -I/opt/local/include -I/opt/local/include -no-cpp-precomp -I/ 
> System/Library/Frameworks/Cor
> eFoundation.framework/Headers -I. -DHAVE_CONFIG_H -DLOCALEDIR=\"/ 
> opt/local/share/locale\" -I./
> src -I./lib -O2 -I/opt/local/include/neon -o src/sites.o -c src/ 
> sites.c
> gcc -I/opt/local/include -I/opt/local/include -no-cpp-precomp -I/ 
> System/Library/Frameworks/Cor
> eFoundation.framework/Headers -I. -DHAVE_CONFIG_H -DLOCALEDIR=\"/ 
> opt/local/share/locale\" -I./
> src -I./lib -O2 -I/opt/local/include/neon -o src/sitefiles.o -c src/ 
> sitefiles.c
> src/sitefiles.c: In function `fnlist_match':
> src/sitefiles.c:303: error: `FNM_LEADING_DIR' undeclared (first use  
> in this function)
> src/sitefiles.c:303: error: (Each undeclared identifier is reported  
> only once
> src/sitefiles.c:303: error: for each function it appears in.)
> make: *** [src/sitefiles.o] Error 1

This seems rather odd to me; it looks as if it can't find a system  
header file.  Do you have the file /usr/include/fnmatch.h on your  
system, and if so, does it have a line containing "#define  
FNM_LEADING_DIR ..."?  If so, I think your safest bet would be to re- 
install XCode and try again (unless wiser heads than mine have better  

If /usr/include/fnmatch.h does exist and has the #define, then it  
might be picking up a different fnmatch.h; try "locate fnmatch.h" on  
the command line (or "find / -name fnmatch.h" if you're willing to  
wait for it to search all your attached drives -- locate depends on  
its database being up to date) and let us know what that gives you.

Kind regards,

Maun Suang

Boey Maun Suang (Boey is my surname)
Email: boeyms at macports dot org

More information about the macports-users mailing list