Subject: pkg/28318: problem with compiling libsndfile-1.0.10
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <juraj.nospam@bednar.sk>
List: pkgsrc-bugs
Date: 11/15/2004 09:28:00
>Number:         28318
>Category:       pkg
>Synopsis:       problem with compiling libsndfile-1.0.10
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 15 09:28:00 +0000 2004
>Originator:     Juraj Bednar
>Release:        yesterday's checkout of pkgsrc on mac os x
>Organization:
>Environment:
Darwin jurajbug.local 7.6.0 Darwin Kernel Version 7.6.0: Sun Oct 10 12:05:27 PDT 2004; root:xnu/xnu-517.9.4.obj~1/RELEASE_PPC  Power Macintosh powerpc

>Description:
The compilation of libsndfile under mac os x 10.3.6 ends with this problem:

 gcc -DHAVE_CONFIG_H -I. -no-cpp-precomp -O2 -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wcast-align -Wcast-qual -Wnested-externs -Wbad-function-cast -Wwrite-strings -pipe -fpascal-strings -MT macbinary3.lo -MD -MP -MF .deps/macbinary3.Tpo -c macbinary3.c  -fno-common -DPIC -o .libs/macbinary3.o
macbinary3.c:30:33: CoreServices.h: No such file or directory
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/audio/libsndfile/work/libsndfile-1.0.10/src
*** Error code 1

if I want to search for the missing header, it's here:

locate CoreServices.h
/Developer/Headers/FlatCarbon/CoreServices.h
/Developer/SDKs/MacOSX10.3.0.sdk/Developer/Headers/CFMCarbon/CoreServices/CoreServices.h
/Developer/SDKs/MacOSX10.3.0.sdk/Developer/Headers/CFMCarbon/CoreServices.h
/Developer/SDKs/MacOSX10.3.0.sdk/Developer/Headers/FlatCarbon/CoreServices.h
/Developer/SDKs/MacOSX10.3.0.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Headers/CoreServices.h
/System/Library/Frameworks/CoreServices.framework/Versions/A/Headers/CoreServices.h

>How-To-Repeat:
just try to compile libsndfile pkgsrc under mac os x
>Fix:
add the correct path to CoreServices.h