Re: Unable to update these files

Hanspeter Niederstrasser <[email protected]>
Newsgroups gmane.os.apple.fink.beginners
Organization Snaggled Works
Message-ID <[email protected]>
On 6/22/23 9:49 AM, James Kolata via Fink-beginners wrote:
> 
> params-util-pm5184
> params-util-pm5302
> scalar-list-utils-pm5184
> scalar-list-utils-pm5302
> sub-name-pm5184
> sub-name-pm5302
> 
> These updates all terminate with the same error message below ('EXTERN.h' file not found).
> Note: the corresponding packages for pm5303 update perfectly.
> 
> 
> gcc -c   -I/opt/sw/include -fno-common -DPERL_DARWIN -no-cpp-precomp -mmacosx-version-min=12.6 -fno-strict-aliasing -pipe -fstack-protector -I/opt/sw/include -Wno-error=implicit-function-declaration -O3   -DVERSION=\"0.27\" -DXS_VERSION=\"0.27\"  -iwithsysroot "/opt/sw/lib/perl5-core/5.18.4/darwin-thread-multi-2level/CORE"   Name.c
> Name.xs:7:10: fatal error: 'EXTERN.h' file not found
> #include "EXTERN.h"
>           ^~~~~~~~~~
> 1 error generated.
> make: *** [Name.o] Error 1

Our compiler commands are quite different. This is what I get on 13.4:

gcc -c   -I/opt/sw/include -fno-common -DPERL_DARWIN -no-cpp-precomp 
-mmacosx-version-min=12.0 -fno-strict-aliasing -pipe -fstack-protector 
-I/opt/sw/include -O3   -DVERSION=\"0.27\" -DXS_VERSION=\"0.27\" 
"-I/opt/sw/lib/perl5-core/5.18.4/darwin-thread-multi-2level/CORE"   Name.c

Your command has extra flags (like -Wno-error), changes the 
macosx-version-min from 12.0 to 12.6, and then it uses -iwithsysroot 
instead of -I.
Do you have extutils-makemaker-pmXXXX installed? extutils-makemaker does 
patch -I to -iwithsysroot, but sub-name-pm doesn't seem to use it. It 
also doesn't explain where your -Wno-error=implicit-function-declaration 
flag comes from, which is not part of Fink's perls.

Hanspeter
-- 
........\|/......\|/........
........~@-/ oO \-@~........
......../_( \__/ )_\........
...........\__U_/...........
....NEENER NEENER NEENER....



_______________________________________________
Fink-beginners mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-users/
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-beginners
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.