Re: libxml2-py310 fails to build

Sean Case <[email protected]>
Newsgroups gmane.os.apple.fink.general
Message-ID <[email protected]>
Sorry, I accidentally missed the system information off the end of the build log, since there were about 300 lines of errors.

> Also include the following system information:
> Package manager version: 0.45.99.git
> Distribution version: selfupdate-rsync Fri Oct  6 06:30:06 2023, 14.0, arm64
> Trees: local/main stable/main
> Xcode.app: 15.0
> Xcode command-line tools: 15.0.0.0.1.1694021235
> Max. Fink build jobs:  1

Also, I have since confirmed that libxml2-py27 builds OK.  The corresponding libtool command is

> /bin/sh ../libtool  --tag=CC   --mode=link gcc  -g -O2   -module -avoid-version -lxml2 -L/opt/sw/lib/aarch64-darwin -L/opt/sw/lib -Wl,-headerpad_max_install_names -o libxml2mod.la -rpath /opt/sw/lib/python2.7/site-packages libxml.lo libxml2-py.lo types.lo   -L/opt/sw/lib/python2.7/config -lpython2.7 -ldl -Wl,-framework,CoreFoundation 


The arguments "-L/opt/sw/lib/python2.7/config -lpython2.7" don’t have any counterparts in the build for libxml2-py310.  This is odd, given that the two packages are built from the same .info file.

Sean Case



> On 6 Oct 2023, at 08:42, Sean Case <[email protected]> wrote:
> 
> Running on Sonoma - yes, I know that’s not exactly supported.
> 
> It seems to go wrong around here:
> 
>> /bin/sh ../libtool  --tag=CC   --mode=link gcc  -g -O2   -module -avoid-version -lxml2 -L/opt/sw/lib/aarch64-darwin -L/opt/sw/lib -Wl,-headerpad_max_install_names -o libxml2mod.la -rpath /opt/sw/lib/python3.10/site-packages libxml.lo libxml2-py.lo types.lo   -ldl -Wl,-framework,CoreFoundation 
>> libtool: link: gcc  -o .libs/libxml2mod.so -bundle  .libs/libxml.o .libs/libxml2-py.o .libs/types.o   /opt/sw/lib/libxml2.dylib -L/opt/sw/lib/aarch64-darwin -L/opt/sw/lib -ldl  -g -O2 -Wl,-headerpad_max_install_names -Wl,-framework -Wl,CoreFoundation   -pthread
>> ld: Undefined symbols:
>>  _PyBool_Type, referenced from:
>>      _libxml_xmlXPathObjectPtrConvert in types.o
>>  _PyBytes_AsString, referenced from:
>>      _xmlPythonFileReadRaw in libxml.o
>>      _xmlPythonFileRead in libxml.o
>>      _PystringSet_Convert in libxml.o
>>  _PyBytes_Size, referenced from:
>>      _xmlPythonFileReadRaw in libxml.o
>>      _xmlPythonFileRead in libxml.o
>>  _PyCallable_Check, referenced from:
>>      _libxml_xmlSetEntityLoader in libxml.o
>>      _libxml_xmlRegisterInputCallback in libxml.o
>>  _PyCapsule_GetName, referenced from:
>>      _libxml_getObjDesc in libxml.o
>>  _PyCapsule_GetPointer, referenced from:
>>      _libxml_getObjDesc in libxml.o
>>      _libxml_xmlXPathDestructNsNode in types.o
>>  _PyCapsule_New, referenced from:
>>      _libxml_xmlDocPtrWrap in types.o
>>      _libxml_xmlNodePtrWrap in types.o
>>      _libxml_xmlURIPtrWrap in types.o
>>      _libxml_xmlNsPtrWrap in types.o
>>      _libxml_xmlAttrPtrWrap in types.o
>>      _libxml_xmlAttributePtrWrap in types.o
>>      _libxml_xmlElementPtrWrap in types.o
>>      ...
> 
> 
> plus many more missing symbols.
> 
> The missing symbols look like things that would be in the Python runtime library, which doesn’t seem to be mentioned in the linker command.  That seems like it might be a problem.
> 
> Any suggestions?
> 
> Sean Case
> 
> 
> 
> 
> _______________________________________________
> Fink-users mailing list
> [email protected]
> List archive:
> https://sourceforge.net/p/fink/mailman/fink-users/
> Subscription management:
> https://lists.sourceforge.net/lists/listinfo/fink-users




_______________________________________________
Fink-users mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-users/
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users
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.