LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-24-2004, 04:11 AM   #1
edreddy
Member
 
Registered: Jul 2002
Location: INDIA, Bangalore.
Distribution: Red Hat Enterprise Linux 3.0 Advanced Server
Posts: 34

Rep: Reputation: 15
c compilation problem


Hi, anybody
I am compiling a php module on Red hat enterprise linux 3.0. I got into linking problem. I am using gcc for compilation purpose.
----------------------------------------------------------------
The command issued is :
------------------------------------------------------------------

gcc -export-dynamic -g -O2 -L/home/ias/ora_j2ee/lib/stubs -L/home/ias/ora_j2ee/lib -R /home/ias/ora_j2ee/lib/stubs -R /home/ias/ora_j2ee/lib ext/ctype/ctype.lo ext/mysql/php_mysql.lo ext/mysql/libmysql/libmysql.lo ext/mysql/libmysql/errmsg.lo ext/mysql/libmysql/net.lo ext/mysql/libmysql/violite.lo ext/mysql/libmysql/password.lo ext/mysql/libmysql/my_init.lo ext/mysql/libmysql/my_lib.lo ext/mysql/libmysql/my_static.lo ext/mysql/libmysql/my_malloc.lo ext/mysql/libmysql/my_realloc.lo ext/mysql/libmysql/my_create.lo ext/mysql/libmysql/my_delete.lo ext/mysql/libmysql/my_tempnam.lo ext/mysql/libmysql/my_open.lo ext/mysql/libmysql/mf_casecnv.lo ext/mysql/libmysql/my_read.lo ext/mysql/libmysql/my_write.lo ext/mysql/libmysql/errors.lo ext/mysql/libmysql/my_error.lo ext/mysql/libmysql/my_getwd.lo ext/mysql/libmysql/my_div.lo ext/mysql/libmysql/mf_pack.lo ext/mysql/libmysql/my_messnc.lo ext/mysql/libmysql/mf_dirname.lo ext/mysql/libmysql/mf_fn_ext.lo ext/mysql/libmysql/mf_wcomp.lo ext/mysql/libmysql/typelib.lo ext/mysql/libmysql/safemalloc.lo ext/mysql/libmysql/my_alloc.lo ext/mysql/libmysql/mf_format.lo ext/mysql/libmysql/mf_path.lo ext/mysql/libmysql/mf_unixpath.lo ext/mysql/libmysql/my_fopen.lo ext/mysql/libmysql/mf_loadpath.lo ext/mysql/libmysql/my_pthread.lo ext/mysql/libmysql/my_thr_init.lo ext/mysql/libmysql/thr_mutex.lo ext/mysql/libmysql/mulalloc.lo ext/mysql/libmysql/string.lo ext/mysql/libmysql/default.lo ext/mysql/libmysql/my_compress.lo ext/mysql/libmysql/array.lo ext/mysql/libmysql/my_once.lo ext/mysql/libmysql/list.lo ext/mysql/libmysql/my_net.lo ext/mysql/libmysql/dbug.lo ext/mysql/libmysql/strmov.lo ext/mysql/libmysql/strxmov.lo ext/mysql/libmysql/strnmov.lo ext/mysql/libmysql/strmake.lo ext/mysql/libmysql/strend.lo ext/mysql/libmysql/strfill.lo ext/mysql/libmysql/is_prefix.lo ext/mysql/libmysql/int2str.lo ext/mysql/libmysql/str2int.lo ext/mysql/libmysql/strinstr.lo ext/mysql/libmysql/strcont.lo ext/mysql/libmysql/strcend.lo ext/mysql/libmysql/bchange.lo ext/mysql/libmysql/bmove.lo ext/mysql/libmysql/bmove_upp.lo ext/mysql/libmysql/longlong2str.lo ext/mysql/libmysql/strtoull.lo ext/mysql/libmysql/strtoll.lo ext/mysql/libmysql/charset.lo ext/mysql/libmysql/ctype.lo ext/oci8/oci8.lo ext/overload/overload.lo ext/pcre/pcrelib/maketables.lo ext/pcre/pcrelib/get.lo ext/pcre/pcrelib/study.lo ext/pcre/pcrelib/pcre.lo ext/pcre/php_pcre.lo ext/posix/posix.lo ext/session/session.lo ext/session/mod_files.lo ext/session/mod_mm.lo ext/session/mod_user.lo regex/regcomp.lo regex/regexec.lo regex/regerror.lo regex/regfree.lo ext/standard/array.lo ext/standard/base64.lo ext/standard/basic_functions.lo ext/standard/browscap.lo ext/standard/crc32.lo ext/standard/crypt.lo ext/standard/cyr_convert.lo ext/standard/datetime.lo ext/standard/dir.lo ext/standard/dl.lo ext/standard/dns.lo ext/standard/exec.lo ext/standard/file.lo ext/standard/filestat.lo ext/standard/flock_compat.lo ext/standard/formatted_print.lo ext/standard/fsock.lo ext/standard/head.lo ext/standard/html.lo ext/standard/image.lo ext/standard/info.lo ext/standard/iptc.lo ext/standard/lcg.lo ext/standard/link.lo ext/standard/mail.lo ext/standard/math.lo ext/standard/md5.lo ext/standard/metaphone.lo ext/standard/microtime.lo ext/standard/pack.lo ext/standard/pageinfo.lo ext/standard/parsedate.lo ext/standard/quot_print.lo ext/standard/rand.lo ext/standard/reg.lo ext/standard/soundex.lo ext/standard/string.lo ext/standard/scanf.lo ext/standard/syslog.lo ext/standard/type.lo ext/standard/uniqid.lo ext/standard/url.lo ext/standard/url_scanner.lo ext/standard/var.lo ext/standard/versioning.lo ext/standard/assert.lo ext/standard/strnatcmp.lo ext/standard/levenshtein.lo ext/standard/incomplete_class.lo ext/standard/url_scanner_ex.lo ext/standard/ftp_fopen_wrapper.lo ext/standard/http_fopen_wrapper.lo ext/standard/php_fopen_wrapper.lo ext/standard/credits.lo ext/standard/css.lo ext/standard/var_unserializer.lo ext/standard/ftok.lo ext/standard/aggregation.lo ext/standard/sha1.lo ext/tokenizer/tokenizer.lo ext/xml/xml.lo ext/xml/expat/xmlparse.lo ext/xml/expat/xmlrole.lo ext/xml/expat/xmltok.lo TSRM/TSRM.lo TSRM/tsrm_strtok_r.lo TSRM/tsrm_virtual_cwd.lo main/main.lo main/snprintf.lo main/spprintf.lo main/php_sprintf.lo main/safe_mode.lo main/fopen_wrappers.lo main/alloca.lo main/php_scandir.lo main/php_ini.lo main/SAPI.lo main/rfc1867.lo main/php_content_types.lo main/strlcpy.lo main/strlcat.lo main/mergesort.lo main/reentrancy.lo main/php_variables.lo main/php_ticks.lo main/streams.lo main/network.lo main/php_open_temporary_file.lo main/php_logos.lo main/output.lo main/memory_streams.lo main/user_streams.lo Zend/zend_language_parser.lo Zend/zend_language_scanner.lo Zend/zend_ini_parser.lo Zend/zend_ini_scanner.lo Zend/zend_alloc.lo Zend/zend_compile.lo Zend/zend_constants.lo Zend/zend_dynamic_array.lo Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_execute.lo sapi/cli/php_cli.lo sapi/cli/getopt.lo main/internal_functions_cli.lo -i_dynamic -lcrypt -lcrypt -lresolv -lm -ldl -lnsl -ldl -lm -lclntsh -lcrypt -lcrypt -o sapi/cli/php




--------------------------------------------------------------------------------------
I got the following Error:
-------------------------------------------------------------------------------------
ext/ctype/ctype.lo(.text+0x88): In function `zif_ctype_alnum':
/home/ias/php-4.3.4/ext/ctype/ctype.c:123: undefined reference to `__ctype_b_loc'
ext/ctype/ctype.lo(.text+0xb7):/home/ias/php-4.3.4/ext/ctype/ctype.c:123: undefined reference to `__ctype_b_loc'
ext/ctype/ctype.lo(.text+0x158): In function `zif_ctype_alpha':
/home/ias/php-4.3.4/ext/ctype/ctype.c:131: undefined reference to `__ctype_b_loc'
ext/ctype/ctype.lo(.text+0x187):/home/ias/php-4.3.4/ext/ctype/ctype.c:131: undefined reference to `__ctype_b_loc'
ext/ctype/ctype.lo(.text+0x228): In function `zif_ctype_cntrl':
/home/ias/php-4.3.4/ext/ctype/ctype.c:139: undefined reference to `__ctype_b_loc'
ext/ctype/ctype.lo(.text+0x253):/home/ias/php-4.3.4/ext/ctype/ctype.c:139: more undefined references to `__ctype_b_loc' follow
ext/pcre/pcrelib/maketables.lo(.text+0x4a): In function `php_pcre_maketables':
/usr/include/ctype.h:193: undefined reference to `__ctype_tolower_loc'
ext/pcre/pcrelib/maketables.lo(.text+0x67): In function `php_pcre_maketables':
/home/ias/php-4.3.4/ext/pcre/pcrelib/maketables.c:82: undefined reference to `__ctype_b_loc'
ext/pcre/pcrelib/maketables.lo(.text+0x8e): In function `php_pcre_maketables':
/usr/include/ctype.h:199: undefined reference to `__ctype_toupper_loc'
ext/pcre/pcrelib/maketables.lo(.text+0xa2):/usr/include/ctype.h:193: undefined reference to `__ctype_tolower_loc'
ext/pcre/pcrelib/maketables.lo(.text+0xd5): In function `php_pcre_maketables':
/home/ias/php-4.3.4/ext/pcre/pcrelib/maketables.c:92: undefined reference to `__ctype_b_loc'
ext/pcre/pcrelib/maketables.lo(.text+0x108):/home/ias/php-4.3.4/ext/pcre/pcrelib/maketables.c:97: undefined reference to `__ctype_b_loc'
ext/pcre/pcrelib/maketables.lo(.text+0x13b):/home/ias/php-4.3.4/ext/pcre/pcrelib/maketables.c:102: undefined reference to `__ctype_b_loc'
ext/pcre/pcrelib/maketables.lo(.text+0x17d):/home/ias/php-4.3.4/ext/pcre/pcrelib/maketables.c:108: undefined reference to `__ctype_b_loc'
ext/pcre/pcrelib/maketables.lo(.text+0x1a6):/home/ias/php-4.3.4/ext/pcre/pcrelib/maketables.c:109: undefined reference to `__ctype_b_loc'
ext/pcre/pcrelib/maketables.lo(.text+0x1d0):/home/ias/php-4.3.4/ext/pcre/pcrelib/maketables.c:110: more undefined references to `__ctype_b_loc' follow
regex/regcomp.lo(.text+0x17fc): In function `othercase':
/usr/include/ctype.h:193: undefined reference to `__ctype_tolower_loc'
regex/regcomp.lo(.text+0x1819):/usr/include/ctype.h:199: undefined reference to `__ctype_toupper_loc'
regex/regcomp.lo(.text+0x18a7): In function `ordinary':
/home/ias/php-4.3.4/regex/regcomp.c:872: undefined reference to `__ctype_b_loc'
regex/regexec.lo(.text+0x97c): In function `sbackref':
/home/ias/php-4.3.4/regex/engine.c:479: undefined reference to `__ctype_b_loc'
regex/regexec.lo(.text+0x9b0):/home/ias/php-4.3.4/regex/engine.c:479: undefined reference to `__ctype_b_loc'
regex/regexec.lo(.text+0xa05):/home/ias/php-4.3.4/regex/engine.c:490: undefined reference to `__ctype_b_loc'
regex/regexec.lo(.text+0xa34):/home/ias/php-4.3.4/regex/engine.c:490: undefined reference to `__ctype_b_loc'
regex/regexec.lo(.text+0xf2d):/home/ias/php-4.3.4/regex/engine.c:675: more undefined references to `__ctype_b_loc' follow
ext/standard/cyr_convert.lo(.text+0x43): In function `php_convert_cyr_string':
/usr/include/ctype.h:199: undefined reference to `__ctype_toupper_loc'
ext/standard/cyr_convert.lo(.text+0x122):/usr/include/ctype.h:199: undefined reference to `__ctype_toupper_loc'
ext/standard/exec.lo(.text+0x4e3): In function `php_Exec':
/home/ias/php-4.3.4/ext/standard/exec.c:253: undefined reference to `__ctype_b_loc'
ext/standard/exec.lo(.text+0x54e):/home/ias/php-4.3.4/ext/standard/exec.c:266: undefined reference to `__ctype_b_loc'
ext/standard/file.lo(.text+0x5023): In function `zif_fgetcsv':
/home/ias/php-4.3.4/ext/standard/file.c:2240: undefined reference to `__ctype_b_loc'
ext/standard/file.lo(.text+0x5096):/home/ias/php-4.3.4/ext/standard/file.c:2260: undefined reference to `__ctype_b_loc'
ext/standard/file.lo(.text+0x5259):/home/ias/php-4.3.4/ext/standard/file.c:2327: undefined reference to `__ctype_b_loc'
ext/standard/file.lo(.text+0x531a):/home/ias/php-4.3.4/ext/standard/file.c:2348: more undefined references to `__ctype_b_loc' follow
ext/standard/mail.lo(.text+0x52): In function `zif_ezmlm_hash':
/home/ias/php-4.3.4/ext/standard/mail.c:71: undefined reference to `__ctype_tolower_loc'
ext/standard/mail.lo(.text+0x16f): In function `zif_mail':
/home/ias/php-4.3.4/ext/standard/mail.c:109: undefined reference to `__ctype_b_loc'
ext/standard/mail.lo(.text+0x190):/home/ias/php-4.3.4/ext/standard/mail.c:114: undefined reference to `__ctype_b_loc'
ext/standard/mail.lo(.text+0x22f):/home/ias/php-4.3.4/ext/standard/mail.c:132: undefined reference to `__ctype_b_loc'
ext/standard/mail.lo(.text+0x251):/home/ias/php-4.3.4/ext/standard/mail.c:137: undefined reference to `__ctype_b_loc'
ext/standard/math.lo(.text+0x2706): In function `_php_math_number_format':
/home/ias/php-4.3.4/ext/standard/math.c:1007: undefined reference to `__ctype_b_loc'
ext/standard/metaphone.lo(.text+0x16a):/home/ias/php-4.3.4/ext/standard/metaphone.c:199: more undefined references to `__ctype_b_loc' follow
ext/standard/metaphone.lo(.text+0x171): In function `metaphone':
/home/ias/php-4.3.4/ext/standard/metaphone.c:199: undefined reference to `__ctype_toupper_loc'
ext/standard/metaphone.lo(.text+0x1b5):/home/ias/php-4.3.4/ext/standard/metaphone.c:207: undefined reference to `__ctype_toupper_loc'
ext/standard/metaphone.lo(.text+0x239):/home/ias/php-4.3.4/ext/standard/metaphone.c:210: undefined reference to `__ctype_toupper_loc'
ext/standard/metaphone.lo(.text+0x2e5):/home/ias/php-4.3.4/ext/standard/metaphone.c:224: undefined reference to `__ctype_toupper_loc'
ext/standard/metaphone.lo(.text+0x345):/home/ias/php-4.3.4/ext/standard/metaphone.c:233: undefined reference to `__ctype_toupper_loc'
ext/standard/metaphone.lo(.text+0x3a3):/home/ias/php-4.3.4/ext/standard/metaphone.c:235: more undefined references to `__ctype_toupper_loc' follow
ext/standard/metaphone.lo(.text+0x3bd): In function `metaphone':
/home/ias/php-4.3.4/ext/standard/metaphone.c:237: undefined reference to `__ctype_b_loc'
ext/standard/metaphone.lo(.text+0x4b5):/home/ias/php-4.3.4/ext/standard/metaphone.c:257: undefined reference to `__ctype_toupper_loc'
ext/standard/metaphone.lo(.text+0x526):/home/ias/php-4.3.4/ext/standard/metaphone.c:273: undefined reference to `__ctype_b_loc'
ext/standard/metaphone.lo(.text+0x55b):/home/ias/php-4.3.4/ext/standard/metaphone.c:292: undefined reference to `__ctype_toupper_loc'
ext/standard/metaphone.lo(.text+0x5ec):/home/ias/php-4.3.4/ext/standard/metaphone.c:295: undefined reference to `__ctype_toupper_loc'
ext/standard/metaphone.lo(.text+0x649):/home/ias/php-4.3.4/ext/standard/metaphone.c:297: undefined reference to `__ctype_b_loc'
ext/standard/metaphone.lo(.text+0x650):/home/ias/php-4.3.4/ext/standard/metaphone.c:305: undefined reference to `__ctype_toupper_loc'
ext/standard/metaphone.lo(.text+0x69e):/home/ias/php-4.3.4/ext/standard/metaphone.c:306: undefined reference to `__ctype_toupper_loc'
ext/standard/metaphone.lo(.text+0x708):/home/ias/php-4.3.4/ext/standard/metaphone.c:311: undefined reference to `__ctype_toupper_loc'
ext/standard/metaphone.lo(.text+0x765):/home/ias/php-4.3.4/ext/standard/metaphone.c:316: undefined reference to `__ctype_toupper_loc'
ext/standard/metaphone.lo(.text+0x855):/home/ias/php-4.3.4/ext/standard/metaphone.c:331: undefined reference to `__ctype_toupper_loc'
ext/standard/metaphone.lo(.text+0x871):/home/ias/php-4.3.4/ext/standard/metaphone.c:331: undefined reference to `__ctype_b_loc'
ext/standard/metaphone.lo(.text+0x8a4): In function `metaphone':
/usr/include/ctype.h:199: undefined reference to `__ctype_toupper_loc'
ext/standard/metaphone.lo(.text+0x939): In function `metaphone':
/home/ias/php-4.3.4/ext/standard/metaphone.c:345: undefined reference to `__ctype_toupper_loc'
ext/standard/metaphone.lo(.text+0x960):/home/ias/php-4.3.4/ext/standard/metaphone.c:346: undefined reference to `__ctype_b_loc'
ext/standard/metaphone.lo(.text+0x9b8): In function `metaphone':
/usr/include/ctype.h:199: undefined reference to `__ctype_toupper_loc'
ext/standard/metaphone.lo(.text+0x9d8): In function `metaphone':
/home/ias/php-4.3.4/ext/standard/metaphone.c:347: undefined reference to `__ctype_toupper_loc'
ext/standard/metaphone.lo(.text+0xa46):/home/ias/php-4.3.4/ext/standard/metaphone.c:354: undefined reference to `__ctype_b_loc'
ext/standard/metaphone.lo(.text+0xad5):/home/ias/php-4.3.4/ext/standard/metaphone.c:360: undefined reference to `__ctype_b_loc'
ext/standard/metaphone.lo(.text+0xb15):/home/ias/php-4.3.4/ext/standard/metaphone.c:361: undefined reference to `__ctype_toupper_loc'
ext/standard/metaphone.lo(.text+0xbad):/home/ias/php-4.3.4/ext/standard/metaphone.c:369: undefined reference to `__ctype_b_loc'
ext/standard/metaphone.lo(.text+0xbb4):/home/ias/php-4.3.4/ext/standard/metaphone.c:369: undefined reference to `__ctype_toupper_loc'
ext/standard/metaphone.lo(.text+0xc02):/home/ias/php-4.3.4/ext/standard/metaphone.c:369: undefined reference to `__ctype_b_loc'
ext/standard/metaphone.lo(.text+0xc10):/home/ias/php-4.3.4/ext/standard/metaphone.c:370: undefined reference to `__ctype_toupper_loc'
ext/standard/metaphone.lo(.text+0xc3b):/home/ias/php-4.3.4/ext/standard/metaphone.c:370: undefined reference to `__ctype_toupper_loc'
ext/standard/metaphone.lo(.text+0xc64): In function `metaphone':
/usr/include/ctype.h:199: undefined reference to `__ctype_toupper_loc'
ext/standard/metaphone.lo(.text+0xcc8): In function `metaphone':
/home/ias/php-4.3.4/ext/standard/metaphone.c:377: undefined reference to `__ctype_toupper_loc'
ext/standard/metaphone.lo(.text+0xd21):/home/ias/php-4.3.4/ext/standard/metaphone.c:384: undefined reference to `__ctype_toupper_loc'
ext/standard/metaphone.lo(.text+0xdf9):/home/ias/php-4.3.4/ext/standard/metaphone.c:399: more undefined references to `__ctype_toupper_loc' follow
ext/standard/metaphone.lo(.text+0x10a1): In function `metaphone':
/home/ias/php-4.3.4/ext/standard/metaphone.c:432: undefined reference to `__ctype_b_loc'
ext/standard/metaphone.lo(.text+0x10a8):/home/ias/php-4.3.4/ext/standard/metaphone.c:435: undefined reference to `__ctype_toupper_loc'
ext/standard/metaphone.lo(.text+0x1185):/home/ias/php-4.3.4/ext/standard/metaphone.c:442: undefined reference to `__ctype_b_loc'
ext/standard/metaphone.lo(.text+0x118c):/home/ias/php-4.3.4/ext/standard/metaphone.c:445: undefined reference to `__ctype_toupper_loc'
ext/standard/metaphone.lo(.text+0x1299):/home/ias/php-4.3.4/ext/standard/metaphone.c:459: undefined reference to `__ctype_toupper_loc'
ext/standard/metaphone.lo(.text+0x12c7):/home/ias/php-4.3.4/ext/standard/metaphone.c:268: undefined reference to `__ctype_toupper_loc'
ext/standard/parsedate.lo(.text+0xc4e): In function `LookupWord':
/home/ias/php-4.3.4/ext/standard/parsedate.c:1724: undefined reference to `__ctype_b_loc'
ext/standard/parsedate.lo(.text+0xc61):/home/ias/php-4.3.4/ext/standard/parsedate.c:1726: undefined reference to `__ctype_tolower_loc'
ext/standard/parsedate.lo(.text+0xedb):/home/ias/php-4.3.4/ext/standard/parsedate.c:1806: undefined reference to `__ctype_b_loc'
ext/standard/parsedate.lo(.text+0xfa4): In function `php_gd_lex':
/home/ias/php-4.3.4/ext/standard/parsedate.c:1843: undefined reference to `__ctype_b_loc'
ext/standard/parsedate.lo(.text+0x10d1):/home/ias/php-4.3.4/ext/standard/parsedate.c:1876: undefined reference to `__ctype_b_loc'
ext/standard/parsedate.lo(.text+0x10e9):/home/ias/php-4.3.4/ext/standard/parsedate.c:1878: undefined reference to `__ctype_b_loc'
ext/standard/quot_print.lo(.text+0x12): In function `php_hex2int':
/home/ias/php-4.3.4/ext/standard/quot_print.c:39: undefined reference to `__ctype_b_loc'
ext/standard/quot_print.lo(.text+0x169):/home/ias/php-4.3.4/ext/standard/quot_print.c:81: more undefined references to `__ctype_b_loc' follow
ext/standard/reg.lo(.text+0x1199): In function `zif_sql_regcase':
/home/ias/php-4.3.4/ext/standard/reg.c:616: undefined reference to `__ctype_toupper_loc'

ext/standard/string.lo(.text+0x7989):/home/ias/php-4.3.4/ext/standard/string.c:3494: undefined reference to `__ctype_tolower_loc'
ext/standard/string.lo(.text+0x8f1e): In function `zif_str_word_count':
/home/ias/php-4.3.4/ext/standard/string.c:4083: undefined reference to `__ctype_b_loc'
ext/standard/string.lo(.text+0x8f43):/home/ias/php-4.3.4/ext/standard/string.c:4086: undefined reference to `__ctype_b_loc'
ext/standard/scanf.lo(.text+0x315): In function `ValidateFormat':
/home/ias/php-4.3.4/ext/standard/scanf.c:366: undefined reference to `__ctype_b_loc'
ext/standard/scanf.lo(.text+0x3bd):/home/ias/php-4.3.4/ext/standard/scanf.c:420: undefined reference to `__ctype_b_loc'
ext/standard/scanf.lo(.text+0x871): In function `php_sscanf_internal':
/home/ias/php-4.3.4/ext/standard/scanf.c:690: undefined reference to `__ctype_b_loc'
ext/standard/scanf.lo(.text+0x90d):/home/ias/php-4.3.4/ext/standard/scanf.c:729: more undefined references to `__ctype_b_loc' follow
ext/standard/url.lo(.text+0x843): In function `php_htoi':
/usr/include/ctype.h:193: undefined reference to `__ctype_tolower_loc'
ext/standard/url.lo(.text+0x879): In function `php_htoi':
/home/ias/php-4.3.4/ext/standard/url.c:339: undefined reference to `__ctype_b_loc'
ext/standard/url.lo(.text+0x894): In function `php_htoi':
/usr/include/ctype.h:193: undefined reference to `__ctype_tolower_loc'
ext/standard/url.lo(.text+0xac0): In function `php_url_decode':
/home/ias/php-4.3.4/ext/standard/url.c:446: undefined reference to `__ctype_b_loc'
ext/standard/url.lo(.text+0xcf4): In function `php_raw_url_decode':
/home/ias/php-4.3.4/ext/standard/url.c:542: undefined reference to `__ctype_b_loc'
ext/standard/url_scanner.lo(.text+0x3f1): In function `url_adapt':
/home/ias/php-4.3.4/ext/standard/url_scanner.c:135: undefined reference to `__ctype_b_loc'
ext/standard/url_scanner.lo(.text+0x469):/home/ias/php-4.3.4/ext/standard/url_scanner.c:145: undefined reference to `__ctype_b_loc'
ext/standard/url_scanner.lo(.text+0x54d):/home/ias/php-4.3.4/ext/standard/url_scanner.c:165: undefined reference to `__ctype_b_loc'
ext/standard/url_scanner.lo(.text+0x5ed):/home/ias/php-4.3.4/ext/standard/url_scanner.c:179: more undefined references to `__ctype_b_loc' follow
ext/standard/strnatcmp.lo(.text+0x2fa): In function `strnatcmp_ex':
/usr/include/ctype.h:199: undefined reference to `__ctype_toupper_loc'
ext/standard/strnatcmp.lo(.text+0x31f):/usr/include/ctype.h:199: undefined reference to `__ctype_toupper_loc'
ext/standard/url_scanner_ex.lo(.text+0xe6): In function `OnUpdateTags':
/home/ias/php-4.3.4/ext/standard/url_scanner_ex.c:73: undefined reference to `__ctype_tolower_loc'
ext/standard/url_scanner_ex.lo(.text+0x9f6): In function `url_adapt_ext':
/usr/include/ctype.h:193: undefined reference to `__ctype_tolower_loc'
ext/standard/ftp_fopen_wrapper.lo(.text+0x191): In function `php_stream_url_wrap_ftp':
/home/ias/php-4.3.4/ext/standard/ftp_fopen_wrapper.c:83: undefined reference to `__ctype_b_loc'
ext/standard/ftp_fopen_wrapper.lo(.text+0x2e5):/home/ias/php-4.3.4/ext/standard/ftp_fopen_wrapper.c:83: undefined reference to `__ctype_b_loc'
ext/standard/ftp_fopen_wrapper.lo(.text+0x465):/home/ias/php-4.3.4/ext/standard/ftp_fopen_wrapper.c:83: undefined reference to `__ctype_b_loc'
ext/standard/ftp_fopen_wrapper.lo(.text+0x569):/home/ias/php-4.3.4/ext/standard/ftp_fopen_wrapper.c:83: undefined reference to `__ctype_b_loc'
ext/standard/ftp_fopen_wrapper.lo(.text+0x649):/home/ias/php-4.3.4/ext/standard/ftp_fopen_wrapper.c:83: undefined reference to `__ctype_b_loc'
ext/standard/ftp_fopen_wrapper.lo(.text+0x775):/home/ias/php-4.3.4/ext/standard/ftp_fopen_wrapper.c:83: more undefined references to `__ctype_b_loc' follow
main/SAPI.lo(.text+0x1ad): In function `sapi_read_post_data':
/home/ias/php-4.3.4/main/SAPI.c:148: undefined reference to `__ctype_tolower_loc'
main/SAPI.lo(.text+0xb59): In function `sapi_header_op':
/home/ias/php-4.3.4/main/SAPI.c:530: undefined reference to `__ctype_b_loc'
main/rfc1867.lo(.text+0x705): In function `multipart_buffer_headers':
/home/ias/php-4.3.4/main/rfc1867.c:417: undefined reference to `__ctype_b_loc'
main/rfc1867.lo(.text+0xa43): In function `php_ap_getword_conf':
/home/ias/php-4.3.4/main/rfc1867.c:555: undefined reference to `__ctype_b_loc'
main/rfc1867.lo(.text+0xadb):/home/ias/php-4.3.4/main/rfc1867.c:582: undefined reference to `__ctype_b_loc'
main/rfc1867.lo(.text+0xb08):/home/ias/php-4.3.4/main/rfc1867.c:588: undefined reference to `__ctype_b_loc'
main/rfc1867.lo(.text+0x1019):/home/ias/php-4.3.4/main/rfc1867.c:771: more undefined references to `__ctype_b_loc' follow
Zend/zend_operators.lo(.text+0x182): In function `zend_string_to_double':
/home/ias/php-4.3.4/Zend/zend_operators.c:82: undefined reference to `__ctype_toupper_loc'
Zend/zend_operators.lo(.text+0x48f3): In function `zend_binary_strcasecmp':
/home/ias/php-4.3.4/Zend/zend_operators.c:1610: undefined reference to `__ctype_tolower_loc'
Zend/zend_operators.lo(.text+0x4967): In function `zend_binary_strncasecmp':
/home/ias/php-4.3.4/Zend/zend_operators.c:1629: undefined reference to `__ctype_tolower_loc'
/lib/libpthread.so.0: undefined reference to `__libc_siglongjmp@GLIBC_PRIVATE'
/lib/libpthread.so.0: undefined reference to `__libc_pthread_init@GLIBC_PRIVATE'
/lib/libpthread.so.0: undefined reference to `__libc_allocate_rtsig_private@GLIBC_PRIVATE'
/lib/libpthread.so.0: undefined reference to `__libc_thread_freeres@GLIBC_PRIVATE'
/lib/libpthread.so.0: undefined reference to `__on_exit@GLIBC_PRIVATE'
/lib/libpthread.so.0: undefined reference to `__libc_longjmp@GLIBC_PRIVATE'
/lib/libpthread.so.0: undefined reference to `__libc_system@GLIBC_PRIVATE'
/lib/libpthread.so.0: undefined reference to `__register_atfork@GLIBC_2.3.2'
/lib/libpthread.so.0: undefined reference to `__libc_fork@GLIBC_PRIVATE'
/lib/libpthread.so.0: undefined reference to `__libc_current_sigrtmin_private@GLIBC_PRIVATE'
/lib/libpthread.so.0: undefined reference to `__libc_current_sigrtmax_private@GLIBC_PRIVATE'
/lib/libpthread.so.0: undefined reference to `__uselocale@GLIBC_2.3'
/lib/libpthread.so.0: undefined reference to `__libc_sigaction@GLIBC_PRIVATE'
collect2: ld returned 1 exit status
-------------------------------------------------------------------------------------------------------------


In which library I can get these symbol so that I can link that library with this commnad


Thanks in advance.
Dhananjaya Reddy E
 
Old 02-24-2004, 04:24 AM   #2
chewysplace
Member
 
Registered: Sep 2003
Distribution: Slackware 10 w/ Kernel 2.6.8
Posts: 176

Rep: Reputation: 30
When you compile it, where is your reference to the php libraries?
Also, if you have installed the PHP libraries in a command line do "ldconfig" this will update your current libraries.
Give that a shot.

PS
Try not to post everything. Just post the compile command and the error. If anything post a text file online somewhere and link it. Kind of annoying to have to scroll down so far.

Last edited by chewysplace; 02-24-2004 at 04:33 AM.
 
Old 02-24-2004, 04:36 AM   #3
edreddy
Member
 
Registered: Jul 2002
Location: INDIA, Bangalore.
Distribution: Red Hat Enterprise Linux 3.0 Advanced Server
Posts: 34

Original Poster
Rep: Reputation: 15
Hi, chewysplace,
what do you mean by reference to php libraries. how can I specify it?.
Actually I am compiling php libraries themselves to be acceseed by Apeche web server.
I did ldconfig, but still doesn't work.
Can you please elaborate on this.

Thanks
Dhananjaya Reddy
 
Old 02-24-2004, 04:40 AM   #4
chewysplace
Member
 
Registered: Sep 2003
Distribution: Slackware 10 w/ Kernel 2.6.8
Posts: 176

Rep: Reputation: 30
first of all, figure out where your library files are going.
then in your /etc/ld.so.conf file make shure that directory is listed:
example: the php is in /usr/lib/ make shure /usr/lib is in the ld.so.conf file
then ofcourse do "ldconfig".
now by reference i mean in your compile options i dont see anything like "-lPHP" or "-L/usr/lib/PHP" which tells the compiler to check that directory. Also its not a bad idea to use the "-Wall" command. this might give you more indepth information on whats going on.
 
Old 02-24-2004, 10:52 PM   #5
edreddy
Member
 
Registered: Jul 2002
Location: INDIA, Bangalore.
Distribution: Red Hat Enterprise Linux 3.0 Advanced Server
Posts: 34

Original Poster
Rep: Reputation: 15
Hi, chewysplace,
I am sorry. might be I am wrong in edititing the question. My problem is in compiling php library itself. that is what I meant by php module. It is NOT that "php library is already available in my linux box and I am building a module using those libraries".
I think you assumed that I already have php library and building a module using that library. My intention is to complie the php library itself.
My problem is to compile the php library from the source code downloaded from php.net.

Actually it is the linking problem. At the time of linking linker is unable to find the certain sybmols `__ctype_b_loc', `__ctype_toupper_loc', `__ctype_tolower_loc', etc./....
In which library these symbols are available. ( I am sure these are c library symbols. but in libgcc.a, these symbols (function names) doesn't present -- I used nm on libgcc.a).

I hope I am clear now chewysplace.
can you help me in this regard.

Thanks
Dhananjaya Reddy
 
Old 06-02-2004, 12:37 PM   #6
alcarbone
LQ Newbie
 
Registered: Feb 2004
Location: france
Distribution: gnome2.6/gnu-linux-2.4.26(from scratch ~almost,i.e.suse7.0)
Posts: 3

Rep: Reputation: 0
These symbols : __ctype_b, __ctype_toupper and __ctype_tolower seem to have disappear in the glibc 2.3.2 ...

while building from scratch the gnome 2.6 desktop, I had some builds which fail at the link time, due to these unresolved variables .
I found a bug report at the following : http://bugzilla.redhat.com/bugzilla/...g.cgi?id=86465
Their solution to add a file ctype.o from time to time to resolv these external declarations work fine with me :-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ Compilation problem with G++ nelnel Programming 6 07-06-2005 09:58 PM
Compilation Problem jonty_11 Programming 4 03-24-2005 09:45 PM
wine compilation problem anubis26 Linux - Software 2 01-25-2005 03:46 PM
kernel compilation problem vishamr2000 Linux - Newbie 2 08-22-2004 04:35 AM
Compilation problem... need help Korshun Programming 2 05-07-2002 12:33 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration