php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22209 Compile fails due to pspell
Submitted: 2003-02-13 10:34 UTC Modified: 2003-02-20 08:20 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: jnichel at by-tor dot com Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 4.3.0 OS: RedHat 7.3
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jnichel at by-tor dot com
New email:
PHP Version: OS:

 

 [2003-02-13 10:34 UTC] jnichel at by-tor dot com
RedHat 7.3, Apache 1.3.27, Aspell 0.50.2, Aspell English, and PHP 4.3.0

Php configures fine, but during compile, I get the errors below.  I have pspell up and working on another machine, but it's an older version of php (4.2.3), and aspell / pspell.  According to the aspell author, with aspell .50.x, you do not need pspell anymore (so I don't have pspell installed).

-lcrypt -lresolv -lm -ldl -lnsl -lcrypt  -o sapi/cli/php
ext/mysql/libmysql/my_tempnam.o: In function `my_tempnam':
/usr/local/src/php-4.3.0/ext/mysql/libmysql/my_tempnam.c:103: the use of `tempnam' is dangerous, better use `mkstemp'
ext/pspell/pspell.o: In function `zif_pspell_new':
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:129: undefined reference to `new_pspell_config'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:131: undefined reference to `pspell_config_replace'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:136: undefined reference to `pspell_config_replace'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:143: undefined reference to `pspell_config_replace'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:150: undefined reference to `pspell_config_replace'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:165: undefined reference to `pspell_config_replace'
ext/pspell/pspell.o:/usr/local/src/php-4.3.0/ext/pspell/pspell.c:170: more undefined references to `pspell_config_replace' follow
ext/pspell/pspell.o: In function `zif_pspell_new':
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:174: undefined reference to `new_pspell_manager'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:175: undefined reference to `delete_pspell_config'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:177: undefined reference to `pspell_error_number'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:178: undefined reference to `pspell_error_message'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:182: undefined reference to `to_pspell_manager'
ext/pspell/pspell.o: In function `zif_pspell_new_personal':
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:206: undefined reference to `new_pspell_config'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:209: undefined reference to `pspell_config_replace'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:210: undefined reference to `pspell_config_replace'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:213: undefined reference to `pspell_config_replace'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:218: undefined reference to `pspell_config_replace'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:225: undefined reference to `pspell_config_replace'
ext/pspell/pspell.o:/usr/local/src/php-4.3.0/ext/pspell/pspell.c:232: more undefined references to `pspell_config_replace' follow
ext/pspell/pspell.o: In function `zif_pspell_new_personal':
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:256: undefined reference to `new_pspell_manager'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:257: undefined reference to `delete_pspell_config'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:259: undefined reference to `pspell_error_number'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:260: undefined reference to `pspell_error_message'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:264: undefined reference to `to_pspell_manager'
ext/pspell/pspell.o: In function `zif_pspell_new_config':
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:291: undefined reference to `new_pspell_manager'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:293: undefined reference to `pspell_error_number'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:294: undefined reference to `pspell_error_message'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:298: undefined reference to `to_pspell_manager'
ext/pspell/pspell.o: In function `zif_pspell_check':
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:326: undefined reference to `pspell_manager_check'
ext/pspell/pspell.o: In function `zif_pspell_suggest':
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:362: undefined reference to `pspell_manager_suggest'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:364: undefined reference to `pspell_word_list_elements'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:367: undefined reference to `pspell_string_emulation_next'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:368: undefined reference to `delete_pspell_string_emulation'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:370: undefined reference to `pspell_manager_error_message'
ext/pspell/pspell.o: In function `zif_pspell_store_replacement':
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:399: undefined reference to `pspell_manager_store_replacement'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:400: undefined reference to `pspell_manager_error_number'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:403: undefined reference to `pspell_manager_error_message'
ext/pspell/pspell.o: In function `zif_pspell_add_to_personal':
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:436: undefined reference to `pspell_manager_add_to_personal'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:437: undefined reference to `pspell_manager_error_number'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:440: undefined reference to `pspell_manager_error_message'
ext/pspell/pspell.o: In function `zif_pspell_add_to_session':
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:473: undefined reference to `pspell_manager_add_to_session'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:474: undefined reference to `pspell_manager_error_number'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:477: undefined reference to `pspell_manager_error_message'
ext/pspell/pspell.o: In function `zif_pspell_clear_session':
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:504: undefined reference to `pspell_manager_clear_session'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:505: undefined reference to `pspell_manager_error_number'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:508: undefined reference to `pspell_manager_error_message'
ext/pspell/pspell.o: In function `zif_pspell_save_wordlist':
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:535: undefined reference to `pspell_manager_save_all_word_lists'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:537: undefined reference to `pspell_manager_error_number'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:540: undefined reference to `pspell_manager_error_message'
ext/pspell/pspell.o: In function `zif_pspell_config_create':
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:562: undefined reference to `new_pspell_config'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:564: undefined reference to `pspell_config_replace'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:569: undefined reference to `pspell_config_replace'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:576: undefined reference to `pspell_config_replace'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:583: undefined reference to `pspell_config_replace'
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:589: undefined reference to `pspell_config_replace'
ext/pspell/pspell.o:/usr/local/src/php-4.3.0/ext/pspell/pspell.c:619: more undefined references to `pspell_config_replace' follow
ext/pspell/pspell.o: In function `php_pspell_close':
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:87: undefined reference to `delete_pspell_manager'
ext/pspell/pspell.o: In function `php_pspell_close_config':
/usr/local/src/php-4.3.0/ext/pspell/pspell.c:94: undefined reference to `delete_pspell_config'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-13 11:54 UTC] iliaa@php.net
I have come across no such problems compiling PHP against latest Aspell (which still comes with pspell library). I suspect the problem is the result of you having more then 1 pspell or aspell libraries.
Do locate libpspell & locate libaspell to see what libraries you have.
 [2003-02-13 12:11 UTC] jnichel at by-tor dot com
Okay, this is the output.  I don't know what I'm looking for though.

[root@jnichel php-4.3.0]# locate libpspell
/usr/lib/libpspell-impl.so.6.0.0
/usr/lib/libpspell-impl.la
/usr/lib/libpspell-impl.so.6
/usr/lib/libpspell-modules.so.1.0.1
/usr/lib/libpspell-modules.la
/usr/lib/libpspell-modules.so.1
/usr/lib/libpspell.so.4.0.3
/usr/lib/libpspell.la
/usr/lib/libpspell.so.4
/usr/lib/libpspell-modules.so
/usr/lib/libpspell-impl.a
/usr/lib/libpspell-impl.so
/usr/lib/libpspell-modules.a
/usr/lib/libpspell.so
/usr/lib/libpspell.a
/usr/local/lib/libpspell.so.15.0.1
/usr/local/lib/libpspell.so.15
/usr/local/lib/libpspell.so
/usr/local/lib/libpspell.la
/usr/local/src/aspell-0.50.2/lib/libpspell.la
/usr/local/src/aspell-0.50.2/lib/.libs/libpspell.so.15.0.1
/usr/local/src/aspell-0.50.2/lib/.libs/libpspell.so.15
/usr/local/src/aspell-0.50.2/lib/.libs/libpspell.so
/usr/local/src/aspell-0.50.2/lib/.libs/libpspell.lai
/usr/local/src/aspell-0.50.2/lib/.libs/libpspell.la
/usr/local/src/aspell-0.50.2/lib/.libs/libpspell.so.15.0.1T

[root@jnichel php-4.3.0]# locate libaspell
/usr/local/lib/libaspell.so
/usr/local/lib/libaspell-common-0.50.2.so
/usr/local/lib/libaspell-common.so
/usr/local/lib/libaspell-common.la
/usr/local/lib/libaspell.so.15.0.1
/usr/local/lib/libaspell.so.15
/usr/local/lib/libaspell.la
/usr/local/src/aspell-0.50.2/lib/libaspell.la
/usr/local/src/aspell-0.50.2/lib/.libs/libaspell.so.15.0.1
/usr/local/src/aspell-0.50.2/lib/.libs/libaspell.so.15
/usr/local/src/aspell-0.50.2/lib/.libs/libaspell.so
/usr/local/src/aspell-0.50.2/lib/.libs/libaspell.lai
/usr/local/src/aspell-0.50.2/lib/.libs/libaspell.la
/usr/local/src/aspell-0.50.2/lib/.libs/libaspell.so.15.0.1T
/usr/local/src/aspell-0.50.2/common/.libs/libaspell-common-0.50.2.so
/usr/local/src/aspell-0.50.2/common/.libs/libaspell-common.so
/usr/local/src/aspell-0.50.2/common/.libs/libaspell-common.lai
/usr/local/src/aspell-0.50.2/common/.libs/libaspell-common.la
/usr/local/src/aspell-0.50.2/common/libaspell-common.la
/usr/local/src/aspell-0.50.2/modules/speller/default/.libs/libaspell-speller-default.a
/usr/local/src/aspell-0.50.2/modules/speller/default/.libs/libaspell-speller-default.la
/usr/local/src/aspell-0.50.2/modules/speller/default/libaspell-speller-default.la
/usr/local/src/aspell-0.50.2/modules/filter/libaspell-filter-standard.la
/usr/local/src/aspell-0.50.2/modules/filter/.libs/libaspell-filter-standard.a
/usr/local/src/aspell-0.50.2/modules/filter/.libs/libaspell-filter-standard.la
/usr/local/src/aspell-0.50.2/modules/tokenizer/libaspell-tokenizer-standard.la
/usr/local/src/aspell-0.50.2/modules/tokenizer/.libs/libaspell-tokenizer-standard.a
/usr/local/src/aspell-0.50.2/modules/tokenizer/.libs/libaspell-tokenizer-standard.la
 [2003-02-13 12:15 UTC] iliaa@php.net
Yup, you have 2 sets of libraries, the old pspell in /usr/lib and the new one in /usr/local/lib.

What you need to do is backup the old pspell/aspell libraries & headers which are in /usr/lib & /usr/include and then remove them. Once you do that run ldconfig and then try to rebuild PHP from scratch, it should work then.
 [2003-02-13 12:52 UTC] jnichel at by-tor dot com
I backed up the old libs, removed them, then did a ldconfig.  A 'ls /usr/lib/libps*' returns nothing, however, the php compile still fails with the same errors.  Also, when I do a locate libpspell, it returns this....

[root@jnichel php-4.3.0]# cd /usr/lib
[root@jnichel lib]# ls libps*
ls: libps*: No such file or directory
[root@jnichel lib]# ldconfig
[root@jnichel lib]# locate libpspell
/usr/lib/libpspell-impl.so.6.0.0
/usr/lib/libpspell-impl.la
/usr/lib/libpspell-impl.so.6
/usr/lib/libpspell-modules.so.1.0.1
/usr/lib/libpspell-modules.la
/usr/lib/libpspell-modules.so.1
/usr/lib/libpspell.so.4.0.3
/usr/lib/libpspell.la
/usr/lib/libpspell.so.4
/usr/lib/libpspell-modules.so
/usr/lib/libpspell-impl.a
/usr/lib/libpspell-impl.so
/usr/lib/libpspell-modules.a
/usr/lib/libpspell.so
/usr/lib/libpspell.a
/usr/local/lib/libpspell.so.15.0.1
/usr/local/lib/libpspell.so.15
/usr/local/lib/libpspell.so
/usr/local/lib/libpspell.la
/usr/local/src/aspell-0.50.2/lib/libpspell.la
/usr/local/src/aspell-0.50.2/lib/.libs/libpspell.so.15.0.1
/usr/local/src/aspell-0.50.2/lib/.libs/libpspell.so.15
/usr/local/src/aspell-0.50.2/lib/.libs/libpspell.so
/usr/local/src/aspell-0.50.2/lib/.libs/libpspell.lai
/usr/local/src/aspell-0.50.2/lib/.libs/libpspell.la
/usr/local/src/aspell-0.50.2/lib/.libs/libpspell.so.15.0.1T
 [2003-02-13 14:47 UTC] iliaa@php.net
The locate database is usually updated only once a day so you won't see the effect of your move right away. Also, did you just move the libraries  or did you move pspell related headers from /usr/include also?
 [2003-02-20 08:20 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC