ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Red Hat Enterprise Linux 3.0 Advanced Server
Posts: 34
Rep:
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 :
------------------------------------------------------------------
--------------------------------------------------------------------------------------
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
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.
Distribution: Red Hat Enterprise Linux 3.0 Advanced Server
Posts: 34
Original Poster
Rep:
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.
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.
Distribution: Red Hat Enterprise Linux 3.0 Advanced Server
Posts: 34
Original Poster
Rep:
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.
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 :-)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.