[MacPorts] #15891: Undefined symbols: _xmlTextReaderSchemaValidate _xmlTextReaderSchemaValidate
#15891: Undefined symbols: _xmlTextReaderSchemaValidate _xmlTextReaderSchemaValidate -------------------------------------------+-------------------------------- Reporter: martin@fairfaxconsultancy.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Keywords: | -------------------------------------------+-------------------------------- Running: sudo port install php5 +fastcgi +mysql5 +darwin_8 Fresh install of MacPorts 1.6.0 with gcc43, lighttpd and gsed. On OS X 10.4.11 Trying to install php5 gets me the following error: /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols: _xmlTextReaderSchemaValidate _xmlTextReaderSchemaValidate collect2: ld returned 1 exit status make: *** [sapi/cgi/php-cgi] Error 1 I can't find any solution anywhere. What do I do? -- Ticket URL: <http://trac.macports.org/ticket/15891> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15891: Undefined symbols: _xmlTextReaderSchemaValidate _xmlTextReaderSchemaValidate --------------------------------------------+------------------------------- Reporter: martin@fairfaxconsultancy.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: closed Priority: Low | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: wontfix | Keywords: php5 libxml2 --------------------------------------------+------------------------------- Changes (by pmagrath@macports.org): * keywords: => php5 libxml2 * priority: Normal => Low * status: new => closed * resolution: => wontfix * milestone: => Port Bugs Comment: This is caused by multiple conflicting versions of Libxml2. There was a php5 bug tracking this but the devs closed it on the grounds that it isn't caused by php5. It is caused by multiple installs of libxml2 which is a php5 dependency. 1) Run locate libxml2.dylib. Delete any obviously unnecessary versions of libxml2. 2) Download a new version of libxml2 from here:http://xmlsoft.org/downloads.html. Do a "./configure && make && sudo make install". This will replace the default version of libxml2 on your system with one that (should) match that you have installed by macports. Replying to [ticket:15891 martin@fairfaxconsultancy.com]:
Running: sudo port install php5 +fastcgi +mysql5 +darwin_8
Fresh install of MacPorts 1.6.0 with gcc43, lighttpd and gsed. On OS X 10.4.11
Trying to install php5 gets me the following error:
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols: _xmlTextReaderSchemaValidate _xmlTextReaderSchemaValidate collect2: ld returned 1 exit status make: *** [sapi/cgi/php-cgi] Error 1
I can't find any solution anywhere.
What do I do?
-- Ticket URL: <http://trac.macports.org/ticket/15891#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15891: Undefined symbols: _xmlTextReaderSchemaValidate _xmlTextReaderSchemaValidate --------------------------------------------+------------------------------- Reporter: martin@fairfaxconsultancy.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: reopened Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: php5 libxml2 --------------------------------------------+------------------------------- Changes (by raimue@macports.org): * priority: Low => Normal * status: closed => reopened * resolution: wontfix => Comment: Replying to [comment:1 pmagrath@macports.org]:
1) Run locate libxml2.dylib. Delete any obviously unnecessary versions of libxml2. 2) Download a new version of libxml2 from here:http://xmlsoft.org/downloads.html. Do a "./configure && make && sudo make install". This will replace the default version of libxml2 on your system with one that (should) match that you have installed by macports.
This is not a good solution. I assume this will install libxml2 to `/usr/local`. First make sure there is no previous version of libxml2 installed there. We should fix this so no additional action is needed outside MacPorts. -- Ticket URL: <http://trac.macports.org/ticket/15891#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15891: Undefined symbols: _xmlTextReaderSchemaValidate _xmlTextReaderSchemaValidate --------------------------------------------+------------------------------- Reporter: martin@fairfaxconsultancy.com | Owner: ryandesign@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: php5 libxml2 --------------------------------------------+------------------------------- Changes (by raimue@macports.org): * cc: cedric.luthi@gmail.com (added) * owner: macports-tickets@lists.macosforge.org => ryandesign@macports.org * status: reopened => new Comment: Assigning to maintainer of php5, CC'ing maintainer of libxml2. -- Ticket URL: <http://trac.macports.org/ticket/15891#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15891: Undefined symbols: _xmlTextReaderSchemaValidate _xmlTextReaderSchemaValidate --------------------------------------------+------------------------------- Reporter: martin@fairfaxconsultancy.com | Owner: ryandesign@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: php5 libxml2 --------------------------------------------+------------------------------- Comment (by ryandesign@macports.org): @raimue: agreed. @martin: please delete any libxml in /usr/local/lib and /sw/lib and try again. If it still doesn't work please attach your config.log. -- Ticket URL: <http://trac.macports.org/ticket/15891#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15891: Undefined symbols: _xmlTextReaderSchemaValidate _xmlTextReaderSchemaValidate --------------------------------------------+------------------------------- Reporter: martin@fairfaxconsultancy.com | Owner: ryandesign@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: php5 libxml2 --------------------------------------------+------------------------------- Comment (by martin@fairfaxconsultancy.com): The problem is the system installed library in /usr/lib/. I changed the symbolic link there to point to the library created by MacPorts and it now works fine. Thank you -- Ticket URL: <http://trac.macports.org/ticket/15891#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15891: Undefined symbols: _xmlTextReaderSchemaValidate _xmlTextReaderSchemaValidate --------------------------------------------+------------------------------- Reporter: martin@fairfaxconsultancy.com | Owner: ryandesign@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: php5 libxml2 --------------------------------------------+------------------------------- Comment (by ryandesign@macports.org): @martin: If you have to muck with your Apple-provided software in order to make a port work, then something is wrong. Since I do not see the problem on my system, which is also Mac OS X 10.4.11 Intel, I need more information to resolve the problem. Please undo your /usr/lib symlink change, "`sudo port uninstall php5`", "`sudo port configure php5 +fastcgi +mysql5`" and attach the config.log which is now in the source directory, which you should be able to open in the Finder by typing "{{{open `port dir php5`/work/php-5.2.6}}}" -- Ticket URL: <http://trac.macports.org/ticket/15891#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15891: Undefined symbols: _xmlTextReaderSchemaValidate _xmlTextReaderSchemaValidate --------------------------------------------+------------------------------- Reporter: martin@fairfaxconsultancy.com | Owner: ryandesign@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: php5 libxml2 --------------------------------------------+------------------------------- Comment (by pmagrath@macports.org): Ticket for issue in PHP issue tracker: http://bugs.php.net/bug.php?id=44294 -- Ticket URL: <http://trac.macports.org/ticket/15891#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15891: Undefined symbols: _xmlTextReaderSchemaValidate _xmlTextReaderSchemaValidate --------------------------------------------+------------------------------- Reporter: martin@fairfaxconsultancy.com | Owner: ryandesign@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: php5 libxml2 --------------------------------------------+------------------------------- Comment (by ryandesign@macports.org): Ok, in that ticket, a jani@php.net says to uninstall libxml2 and reinstall it. So try: {{{ sudo port -f uninstall libxml2 sudo port install libxml2 }}} Then clean php5 and try installing it again: {{{ sudo port clean --work php5 sudo port install php5 +fastcgi +mysql5 }}} Does that help? -- Ticket URL: <http://trac.macports.org/ticket/15891#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15891: Undefined symbols: _xmlTextReaderSchemaValidate _xmlTextReaderSchemaValidate --------------------------------------------+------------------------------- Reporter: martin@fairfaxconsultancy.com | Owner: ryandesign@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: php5 libxml2 --------------------------------------------+------------------------------- Comment (by martin@fairfaxconsultancy.com): During installation the wrong libraries were used. I have MAMP installed with older versions of the same libraries, which might have been the problem. When I installed MacPorts (2 days ago) I used the package installer, but it did not add anything to my .profile for the environment variables. I followed the instructions from the source install section (http://www.macports.org/install.php) and added the path and display environment variables manually. Both MAMP and ImageMagick needed the dylib environment variable added to. I added /opt/local/lib/ to the dylib and now php5 installs fine. So, is this an issue with the MacPorts installation when other environments are present or is the documentation not clear enough (for me at least)? -- Ticket URL: <http://trac.macports.org/ticket/15891#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15891: Undefined symbols: _xmlTextReaderSchemaValidate _xmlTextReaderSchemaValidate --------------------------------------------+------------------------------- Reporter: martin@fairfaxconsultancy.com | Owner: ryandesign@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: php5 libxml2 --------------------------------------------+------------------------------- Comment (by ryandesign@macports.org): Replying to [comment:9 martin@fairfaxconsultancy.com]:
During installation the wrong libraries were used. I have MAMP installed with older versions of the same libraries, which might have been the problem.
Is there something from MAMP that you need that's not provided by MacPorts? If so, please let us know so we can add it to MacPorts and you can use MacPorts exclusively.
When I installed MacPorts (2 days ago) I used the package installer, but it did not add anything to my .profile for the environment variables. I followed the instructions from the source install section (http://www.macports.org/install.php) and added the path and display environment variables manually.
That is a [wiki:ProblemHotlist#a4..profilenotsetup known bug] in the 1.6.0 binary packages. It will be fixed in the next release of MacPorts.
Both MAMP and ImageMagick needed the dylib environment variable added to.
What environment variable have you set to what value? And are you talking about the ImageMagick port in MacPorts or a different installation of ImageMagick? The ImageMagick port does not need any environment variable set to any value, to the best of my knowledge.
I added /opt/local/lib/ to the dylib and now php5 installs fine.
Added /opt/local/lib to what?
So, is this an issue with the MacPorts installation when other environments are present or is the documentation not clear enough (for me at least)?
Need more information. -- Ticket URL: <http://trac.macports.org/ticket/15891#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15891: Undefined symbols: _xmlTextReaderSchemaValidate _xmlTextReaderSchemaValidate --------------------------------------------+------------------------------- Reporter: martin@fairfaxconsultancy.com | Owner: ryandesign@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: php5 libxml2 --------------------------------------------+------------------------------- Comment (by martin@fairfaxconsultancy.com): Sorry to have made it more confusing. I did not have MacPorts installed until 2 days ago. I am using MAMP, simply because it is easy. ImageMagick was a standalone installation (so, not the MacPorts version). ImageMagick required the DYLD_LIBRARY_PATH to be extended. I also added MAMP's lib dir to the DYLD_LIBRARY_PATH. After installing MacPorts I ran into library conflicts with MAMP and initially prepended /opt/local/lib to DYLD_LIBRARY_PATH That seemed to work for installation but not for runtime. I am now running without the DYLD_LIBRARY_PATH changed for MAMP and MacPorts and it all works. I guess the moral of the story is to keep the .profile as clean as possible. And I will probably move from MAMP to MacPorts too. But it all works at the moment so I am reluctant to switch them. Then again, the reason to start using MacPorts is the ability to use variants and to keep up to date with versions. -- Ticket URL: <http://trac.macports.org/ticket/15891#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15891: Undefined symbols: _xmlTextReaderSchemaValidate _xmlTextReaderSchemaValidate --------------------------------------------+------------------------------- Reporter: martin@fairfaxconsultancy.com | Owner: ryandesign@macports.org Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: wontfix | Keywords: php5 libxml2 --------------------------------------------+------------------------------- Changes (by ryandesign@macports.org): * status: new => closed * resolution: => wontfix Comment: Ok, I'm going to say the error was caused by setting DYLD_LIBRARY_PATH, which is not recommended and which I can't support for use with MacPorts. MacPorts needs to link with its own ports, and by setting DYLD_LIBRARY_PATH you are telling it to link with other things, which is not supported. -- Ticket URL: <http://trac.macports.org/ticket/15891#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts