mysql-arm cross compilation problem
Hi all, I have download the mysql-4.0.27. And I am trying to cross compile it for Intel-XScale ARM processor on Linux-2.4.20. I have run the configure command as follows # CC=$PATH/arm-linux-gcc LD=$PATH/arm-linux-ld ./configure -C --host=arm-linux This gives the error as follows (last few lines are given below): checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for a BSD-compatible install... /usr/bin/install -c checking for bison... bison -y checking for pdftex... manual.pdf checking for tex... manual.dvi checking return type of sprintf... configure: error: cannot run test program while cross compiling Let me know, where is the mistake. Appreciate your help and thanks in advance. Vishal Axis Software Pvt. Ltd. Pune-04. Not Failure but Low Aim is Crime -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
mysql-cross compilation problem
Hi all, I have been trying to cross compile mysql4.0.27 for an Intel-XScale based ARM board on a i686-Linux PC. I have run configure with the following command line options: $ CC=$PATH/arm-linux-gcc LD=$PATH/arm-linux-ld ./configure -C -build=i686-linux -host=arm-linux -target=arm-linux It is giving error as follows checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for a BSD-compatible install... /usr/bin/install -c checking for bison... bison -y checking for pdftex... manual.pdf checking for tex... manual.dvi checking return type of sprintf... configure: error: cannot run test program while cross compiling I am hoping that someone could tell me if I am missing out something or If something is wrong with the procedure I am following. Thanks in advance, Vishal Axis Software Pvt. Ltd. Pune-04. Not Failure but Low Aim is Crime -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
Mysql 4.1.7 and cluster compilation problem
Hi all, I try to make a rpm with rpmbuild -ta mysql-4.1.7.tar.gz from tarball mysql-4.1.7.tar.gz, i have modified the mysql-4.1.7.spec file and add --with-ndbcluster on the configure lines. I got a fedora core 2 and at the compile time i got that error : [...] ../libmysql/.libs/libmysqlclient.so: undefined reference to `my_gethostbyname_r' ../libmysql/.libs/libmysqlclient.so: undefined reference to `free_old_query' ../libmysql/.libs/libmysqlclient.so: undefined reference to `my_init_done' ../libmysql/.libs/libmysqlclient.so: undefined reference to `net_realloc' ../libmysql/.libs/libmysqlclient.so: undefined reference to `my_net_read' ../libmysql/.libs/libmysqlclient.so: undefined reference to `escape_string_for_mysql' collect2: ld returned 1 exit status make[2]: *** [mysql] Error 1 make[2]: Leaving directory `/usr/src/redhat/BUILD/mysql-4.1.7/client' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/redhat/BUILD/mysql-4.1.7' make: *** [all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.61168 (%build) someone can help ? TIA Seb. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
mysql_install_db static compilation problem solved
Hi, When compiling MySQL with statically linking options (with glibc 2.3.1), There weren't any errors during configure and compilation stages but mysql_install_db was giving out a segmentation fault. The list archives had suggested to give up statically linking libraries, which worked fine. It seems that this was a glibc issue. When I upgraded to glibc 2.3.2, MySQL no longer crashed while running mysql_install_db even when I compiled with-all-static-flags. Doruk -- FISEK INSTITUTE - http://ww.fisek.com.tr -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
MySQL 3.23.51 compilation problem (Mandrake 9.0).
Hello, I have encountered a problem when trying to compile MySQL version 3.23.51 on Mandrake version 9.0. I've been browsing through several pages related to problems met while compiling that version but didn't find anything relevant. My nerves are starting to shake seriously... The configure part worked well with the command line : ./configure --prefix=/usr/local/mysql --with-named-curses-libs=/usr/lib/libncurses.so.5 But during the make install part, I have the following Error message : libmysql.c: In function `mysql_real_connect': libmysql.c:1325: warning: passing arg 5 of `gethostbyname_r' from incompatible pointer type libmysql.c:1325: too few arguments to function `gethostbyname_r' libmysql.c:1325: warning: assignment makes pointer from integer without a cast make[1]: *** [libmysql.lo] Erreur 1 make[1]: Quitte le répertoire `/var/tmp/mysql-3.23.51/libmysql' make: *** [install-recursive] Erreur 1 This version of MySQL has been compiled using gcc version 3.2 as shown below. Configured with: ../configure --prefix=/usr --libdir=/usr/lib --with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --enable-long-long --enable-__cxa_atexit --enable-languages=c,c++,ada,f77,objc,java --host=i586-mandrake-linux-gnu --with-system-zlib Thread model: posix gcc version 3.2 (Mandrake Linux 9.0 3.2-1mdk) Any hint, anyone ? Shall I downgrade to GCC 2.95 ? Thanks very much ! __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Compilation problem on Solaris 8
Hi I've tried to compile the latest mysql source on our Solaris 8 SPARC server and gcc 2.95.3, but make hangs up with these errors; -I/usr/share/src/mysql-3.23.51/include -DHAVE_RWLOCK_T -c sql_lex.cc sql_lex.cc: In function `void lex_init()': sql_lex.cc:85: `symbols' undeclared (first use this function) sql_lex.cc:85: (Each undeclared identifier is reported only once sql_lex.cc:85: for each function it appears in.) sql_lex.cc:87: `sql_functions' undeclared (first use this function) sql_lex.cc: In function `int find_keyword(LEX *, unsigned int, bool)': sql_lex.cc:168: implicit declaration of function `int get_hash_symbol(...)' sql_lex.cc:168: initialization to `SYMBOL *' from `int' lacks a cast *** Error code 1 make: Fatal error: Command failed for target `sql_lex.o' Current working directory /usr/share/src/mysql-3.23.51/sql *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Current working directory /usr/share/src/mysql-3.23.51/sql *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Current working directory /usr/share/src/mysql-3.23.51 *** Error code 1 make: Fatal error: Command failed for target `all-recursive-am' Could you help me, please what should I set or install to get a working mysql server? Thanks in advance! Regards; Istvan - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
compilation problem
I am facing problem in compiling c++ program using mysql libraries. I am doing this for the first time. I would appreciate if anyone of you help me out. thanks. folowing is the code ___ #include mysql.h #include assert.h #include stdio.h #include stdlib.h #include string.h int main(void) { MYSQL mysql; assert(mysql_init(mysql) != NULL); } following is the command i am using to compling #gcc connect.c -o mysql_capi.cgi -I/usr/include/mysql -L/usr/lib/mysql -lmysqlclient -lm following is the output i am getting /usr/lib/mysql/libmysqlclient.a(my_compress.o): In function `my_uncompress': my_compress.o(.text+0xaa): undefined reference to `uncompress' /usr/lib/mysql/libmysqlclient.a(my_compress.o): In function `my_compress_alloc': my_compress.o(.text+0x13c): undefined reference to `compress' collect2: ld returned 1 exit status _ Send and receive Hotmail on your mobile device: http://mobile.msn.com - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: compilation problem
kapil nakra wrote: I am facing problem in compiling c++ program using mysql libraries. I am doing this for the first time. I would appreciate if anyone of you help me out. thanks. folowing is the code ___ #include mysql.h #include assert.h #include stdio.h #include stdlib.h #include string.h int main(void) { MYSQL mysql; assert(mysql_init(mysql) != NULL); } following is the command i am using to compling #gcc connect.c -o mysql_capi.cgi -I/usr/include/mysql -L/usr/lib/mysql -lmysqlclient -lm #gcc connect.c -o mysql_capi.cgi -I/usr/include/mysql -L/usr/lib/mysql -lmysqlclient -lm -lz Make sure you have zlib installed. following is the output i am getting /usr/lib/mysql/libmysqlclient.a(my_compress.o): In function `my_uncompress': my_compress.o(.text+0xaa): undefined reference to `uncompress' /usr/lib/mysql/libmysqlclient.a(my_compress.o): In function `my_compress_alloc': my_compress.o(.text+0x13c): undefined reference to `compress' collect2: ld returned 1 exit status _ Send and receive Hotmail on your mobile device: http://mobile.msn.com - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
mysql c++ compilation problem
I am facing problem in compiling c++ program using mysql libraries. I am doing this for the first time. I would appreciate if anyone of you help me out. thanks. folowing is the code ___ #include mysql.h #include assert.h #include stdio.h #include stdlib.h #include string.h int main(void) { MYSQL mysql; assert(mysql_init(mysql) != NULL); } following is the command i am using to compling #gcc connect.c -o mysql_capi.cgi -I/usr/include/mysql -L/usr/lib/mysql -lmysqlclient -lm following is the output i am getting /usr/lib/mysql/libmysqlclient.a(my_compress.o): In function `my_uncompress': my_compress.o(.text+0xaa): undefined reference to `uncompress' /usr/lib/mysql/libmysqlclient.a(my_compress.o): In function `my_compress_alloc': my_compress.o(.text+0x13c): undefined reference to `compress' collect2: ld returned 1 exit status _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Compilation problem on Slackware 8
Hello all. I'm trying to compile MySQL-4.0.0 on Slackware 8. Here's what I've done... export CFLAGS=-O3 CXX=gcc CXXFLAGS=-O3 -felide-constructors -fno-exceptions -fno-rtti ./configure --enable-thread-safe-client --with-openssl --enable-assembler make Then after a little compiling, I get: gcc -DDEFAULT_CHARSET_HOME=\/usr/local\ -DDATADIR=\/usr/local/var\ -DSHAREDIR=\/usr/local/share/mysql\ -DDONT_USE_RAID -I./../include -I../include -I./.. -I.. -I.. -I/usr/include/openssl -O3 -DDBUG_OFF -O3 -mcpu=pentiumpro -march=pentiumpro -DCPU=pentiumpro -c ctype.c -fPIC -DPIC -o .libs/ctype.lo In file included from ctype.c:27: ctype_autoconf.c:9: `ctype_latin1' undeclared here (not in a function) ctype_autoconf.c:9: initializer element is not constant ctype_autoconf.c:9: (near initialization for `compiled_charsets[0].ctype') ctype_autoconf.c:10: `to_lower_latin1' undeclared here (not in a function) ctype_autoconf.c:10: initializer element is not constant ctype_autoconf.c:10: (near initialization for `compiled_charsets[0].to_lower') ctype_autoconf.c:11: `to_upper_latin1' undeclared here (not in a function) ctype_autoconf.c:11: initializer element is not constant ctype_autoconf.c:11: (near initialization for `compiled_charsets[0].to_upper') ctype_autoconf.c:12: `sort_order_latin1' undeclared here (not in a function) ctype_autoconf.c:12: initializer element is not constant ctype_autoconf.c:12: (near initialization for `compiled_charsets[0].sort_order') make[2]: *** [ctype.lo] Error 1 make[2]: Leaving directory `/usr/src/mysql-4.0.0-alpha/libmysql_r' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/mysql-4.0.0-alpha' make: *** [all-recursive-am] Error 2 root@vortex:/usr/src/mysql-4.0.0-alpha# I have tried with the Autoconf that came with Slackware 8 (version 2.5), and then remembered that this sometimes gives problems compiling stuff that hasn't been updated, so i tried Autoconf-2.13. No difference, so I suppose I can rule out autoconf. Also, if you could cc: me at [EMAIL PROTECTED] that would be great as I'm only subscribed to the daily digest. Thanks in advance! Dan -- Daniel Kasak IT Developer * NUS Consulting Group* Level 18, 168 Walker Street North Sydney, NSW, Australia 2060 T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989 email: [EMAIL PROTECTED] website: http://www.nusconsulting.com - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
compilation problem
Description: When I compiled my program with the new installed mysql-3.23.41-pc-linux-gnu-i686 binary version I got the following eror message: gcc -I. -I/usr/local/mysql/include regprg.c net.o util2k.o httppost.c syslog.o -o regprg -L. -L/usr/local/mysql/lib -lmysqlclient /usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function `my_uncompress': my_compress.o(.text+0x9a): undefined reference to `uncompress' /usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function `my_compress_alloc': my_compress.o(.text+0x12a): undefined reference to `compress' collect2: ld returned 1 exit status make: *** [regprg] Error 1 How-To-Repeat: Fix: Submitter-Id: submitter ID Originator:Kenneth Chao Organization: MySQL support: [none | licence | email support | extended email support ] Synopsis: compilation problem Severity: Priority: Category: mysql Class: Release: mysql-3.23.41 (Official MySQL binary) Environment: System: Linux test.acermsoft.com 2.2.14-5.0 #1 Tue Mar 7 21:07:39 EST 2000 i686 unknown Architecture: i686 Some paths: /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc /usr/bin/cc GCC: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) Compilation info: CC='gcc' CFLAGS='-O3 -mpentium ' CXX='gcc' CXXFLAGS='-O3 -mpentium -felide-constructors' LDFLAGS='-static' LIBC: lrwxrwxrwx1 root root 13 Jul 26 03:25 /lib/libc.so.6 - libc-2.1.3.so -rwxr-xr-x1 root root 4101324 Mar 1 2000 /lib/libc-2.1.3.so -rw-r--r--1 root root 20272704 Mar 1 2000 /usr/lib/libc.a -rw-r--r--1 root root 178 Mar 1 2000 /usr/lib/libc.so Configure command: ./configure --prefix=/usr/local/mysql '--with-comment=Official MySQL binary' --with-extra-charsets=complex --with-server-suffix= --enable-assembler --with-mysqld-ldflags=-all-static --with-client-ldflags=-all-static --disable-shared Perl: This is perl, version 5.005_03 built for i386-linux - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
mysql compilation problem
hi, had some problems while installing mysql-3.23.38 unzip and tar already did the following: 1) ./configure --prefix=/usr/home/domain/mysql --with-low-memory \ --with-unix-socket-path=/usr/home/domain/mysql/mysql-domain.sock 2)unlimit 3)make everything was going fine until an error appears: make: don't know how to make mi_test_all. Stop *** Error code 1 tried to use gmake -s, it was compiling halfway when it ended with an error virtual memory exhausted. i'm trying to install mysql over telnet with my internet service provider which uses BSDI BSD/OS 4.2 as their Operating System. can anyone please help? thank you. Regards, TonyTee
Compilation problem
Hi all, My ISP provides me with MySql version 3.23.36 on Red Hat Linux 5.2 box, gcc version is 2.7.2.1 When I try to compile my C application I get lots of errors. What is wrong ? Since this is not my own server, what should I ask my ISP to do in order to correct this? gcc -o test.cgi test.c cgihtml.a -I/usr/local/mysql/include -L/usr/local/mysql/lib -lmysqlclient -lz /usr/local/mysql/lib/libmysqlclient.a(libmysql.o): In function `net_safe_read': libmysql.o(.text+0x2bc): undefined reference to `__stpcpy' /usr/local/mysql/lib/libmysqlclient.a(libmysql.o): In function `simple_command': libmysql.o(.text+0x46b): undefined reference to `__stpcpy' /usr/local/mysql/lib/libmysqlclient.a(libmysql.o): In function `read_rows': libmysql.o(.text+0xa64): undefined reference to `__stpcpy' /usr/local/mysql/lib/libmysqlclient.a(libmysql.o): In function `mysql_real_connect': libmysql.o(.text+0xe85): undefined reference to `__stpcpy' libmysql.o(.text+0x146c): undefined reference to `__stpcpy' /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)(.text+0x148a): more undefined references to `__stpcpy' follow /usr/local/mysql/lib/libmysqlclient.a(libmysql.o): In function `mysql_list_dbs': libmysql.o(.text+0x25cd): undefined reference to `__mempcpy' /usr/local/mysql/lib/libmysqlclient.a(libmysql.o): In function `mysql_list_tables': libmysql.o(.text+0x2675): undefined reference to `__mempcpy' /usr/local/mysql/lib/libmysqlclient.a(libmysql.o): In function `mysql_stat': libmysql.o(.text+0x29aa): undefined reference to `__stpcpy' /usr/local/mysql/lib/libmysqlclient.a(violite.o): In function `vio_peer_addr': violite.o(.text+0x1d): undefined reference to `__mempcpy' /usr/local/mysql/lib/libmysqlclient.a(violite.o): In function `vio_poll_read': violite.o(.text+0x306): undefined reference to `poll' /usr/local/mysql/lib/libmysqlclient.a(my_open.o): In function `my_open': my_open.o(.text+0x17): undefined reference to `open64' /usr/local/mysql/lib/libmysqlclient.a(my_error.o): In function `my_error': my_error.o(.text+0x1ba): undefined reference to `__stpcpy' /usr/local/mysql/lib/libmysqlclient.a(mf_pack.o): In function `pack_dirname': mf_pack.o(.text+0x1e5): undefined reference to `__stpcpy' mf_pack.o(.text+0x240): undefined reference to `__stpcpy' mf_pack.o(.text+0x29f): undefined reference to `__stpcpy' /usr/local/mysql/lib/libmysqlclient.a(mf_pack.o): In function `cleanup_dirname': mf_pack.o(.text+0x401): undefined reference to `__stpcpy' mf_pack.o(.text+0x6cc): undefined reference to `__mempcpy' mf_pack.o(.text+0x725): undefined reference to `__stpcpy' mf_pack.o(.text+0x7ee): undefined reference to `__stpcpy' /usr/local/mysql/lib/libmysqlclient.a(mf_pack.o): In function `unpack_filename': mf_pack.o(.text+0xa15): undefined reference to `__stpcpy' /usr/local/mysql/lib/libmysqlclient.a(mf_pack.o): In function `intern_filename': mf_pack.o(.text+0xa5e): undefined reference to `__stpcpy' /usr/local/mysql/lib/libmysqlclient.a(typelib.o): In function `find_type': typelib.o(.text+0x13d): undefined reference to `__stpcpy' /usr/local/mysql/lib/libmysqlclient.a(typelib.o)(.text+0x174): more undefined references to `__stpcpy' follow /usr/local/mysql/lib/libmysqlclient.a(mf_format.o): In function `fn_format': mf_format.o(.text+0x20f): undefined reference to `__lxstat64' /usr/local/mysql/lib/libmysqlclient.a(default.o): In function `search_default_file': default.o(.text+0x4d9): undefined reference to `__stpcpy' default.o(.text+0x53f): undefined reference to `__stpcpy' /usr/local/mysql/lib/libmysqlclient.a(default.o): In function `print_defaults': default.o(.text+0x95b): undefined reference to `__stpcpy' /usr/local/mysql/lib/libmysqlclient.a(my_net.o): In function `my_inet_ntoa': my_net.o(.text+0x16): undefined reference to `__stpcpy' /usr/local/mysql/lib/libmysqlclient.a(my_lib.o): In function `my_dir': my_lib.o(.text+0x1f7): undefined reference to `__stpcpy' /usr/local/mysql/lib/libmysqlclient.a(my_lib.o)(.text+0x210): more undefined references to `__stpcpy' follow /usr/local/mysql/lib/libmysqlclient.a(my_lib.o): In function `my_dir': my_lib.o(.text+0x269): undefined reference to `readdir64' /usr/local/mysql/lib/libmysqlclient.a(my_lib.o): In function `directory_file_name': my_lib.o(.text+0x343): undefined reference to `__stpcpy' /usr/local/mysql/lib/libmysqlclient.a(my_lib.o): In function `my_stat': my_lib.o(.text+0x3a8): undefined reference to `__xstat64' /usr/local/mysql/lib/libmysqlclient.a(my_lib.o): In function `my_fstat': my_lib.o(.text+0x406): undefined reference to `__fxstat64' /usr/local/mysql/lib/libmysqlclient.a(my_fopen.o): In function `my_fopen': my_fopen.o(.text+0x1f): undefined reference to `fopen64' make: *** [test] Error 1 Thanks in advance, Mitko - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL
MySQL 3.23 compilation problem
Hi. Im occuring some proglems after the configure is done and I start the 'make' process, below is my result Note: This is on Slackware 7.1, Piii 650, 128ram etc and so on from 'make': make[2]: Entering directory `/usr/src/mysql-3.23.37/libmysql' make[2]: stat:libmysql.c: Too many levels of symbolic links make[2]: *** No rule to make target `libmysql.c', needed by `libmysql.lo'. Stop. make[2]: Leaving directory `/usr/src/mysql-3.23.37/libmysql' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/mysql-3.23.37' make: *** [all-recursive-am] Error 2 I have no idea what is causing this, hoping for some luck here :) - Martin Östlund - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Compilation problem with libmysqlclient.a shared lib
Hi, I am trying to compile Apache with PHP4/MySQL support. PHP4 compiles/installs fine, but when I compile Apache with PHP4/MySQL support, I get an error when linking the MySQL shared library libmysqlclient.a. Here is the compile log, after that are the various compilation options. *Snippet of Apache compilation logs : egcs -O9 -funroll-loops -ffast-math -malign-double -mcpu=pentiumpro - march=pentiumpro -fomit-frame-p ointer -fno-exceptions -DLINUX=22 -I/usr/local/src/php-4.0.4pl1 -I/usr/ local/src/php-4.0.4pl1/main - I/usr/local/src/php-4.0.4pl1/main -I/usr/local/src/php-4.0.4pl1/Zend -I/ usr/local/src/php-4.0.4pl1/Z end -I/usr/local/src/php-4.0.4pl1/TSRM -I/usr/local/src/php-4.0.4pl1/TSRM -I/usr/local/src/php-4.0.4 pl1 -DMOD_PERL -DUSE_PERL_SSI -Dbool=char -DHAS_BOOL -I/usr/local/include -DUSE_EXPAT -I./lib/expat- lite -DNO_DL_NEEDED -DDYNAMIC_MODULE_LIMIT=0 `./apaci`\ -o httpd buildmark.o modules.o modules/php4/libphp4.a modules/perl/ libperl.a modules/experimen tal/libexperimental.a modules/standard/libstandard.a modules/extra/ libextra.a main/libmain.a ./os/un ix/libos.a ap/libap.a lib/expat-lite/libexpat.a -Wl,-rpath,/usr/local/ mysql/lib/mysql -rdynamic - L/usr/local/mysql/lib/mysql -Lmodules/php4 -L../modules/php4 -L../../ modules/php4 -lmodphp4 -lpam -ldl -lmm -lmysqlclient -lresolv -lm -ldl -lcrypt -lnsl -lresolv -lm - lcrypt -ldb -rdynamic -L/u sr/local/lib /usr/lib/perl5/5.00503/i386-linux/auto/DynaLoader/ DynaLoader.a -L/usr/lib/perl5/5.00503 /i386-linux/CORE -lperl -lnsl -ldl -lm -lc -lposix -lcrypt /usr/local/mysql/lib/mysql/libmysqlclient.a(my_compress.o): In function `my_uncompress': my_compress.o(.text+0x97): undefined reference to `uncompress' /usr/local/mysql/lib/mysql/libmysqlclient.a(my_compress.o): In function `my_compress_alloc': my_compress.o(.text+0x12b): undefined reference to `compress' collect2: ld returned 1 exit status make[2]: *** [target_static] Error 1 make[2]: Leaving directory `/usr/local/src/apache_1.3.19/src' make[1]: *** [build-std] Error 2 make[1]: Leaving directory `/usr/local/src/apache_1.3.19' make: *** [build] Error 2 *MySQL latest stable is setup and running on the box, and have been compiled with the following options : - From mysqlbug : System: Linux intranet.par.sports.com 2.2.19 #2 Fri Apr 27 13:30:43 CEST 2001 i686 unknown Architecture: i686 Some paths: /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc / usr/bin/cc GCC: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs- 2.91.66/specs gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) Compilation info: CC='gcc' CFLAGS='-O9 -mpentiumpro -fomit-frame- pointer' CXX='c++' CXXFLAGS='' LDFLAGS='' LIBC: lrwxrwxrwx1 root root 13 Apr 19 22:15 /lib/libc.so.6 - libc-2.1.3.so -rwxr-xr-x1 root root 4101836 Jan 15 16:49 /lib/libc-2.1.3.so -rw-r--r--1 root root 20273324 Jan 15 16:49 /usr/lib/libc.a -rw-r--r--1 root root 178 Jan 15 16:49 /usr/lib/libc.so Configure command: ./configure --prefix=/usr/local/mysql --enable- assembler --with-mysqld-ldflags=-all-static --disable-shared --with- extra-charset=complex Perl: This is perl, version 5.005_03 built for i386-linu - Compilations environment variables I used : CFLAGS=-O9 -mpentiumpro -fomit-frame-pointer -funroll-loops CC=egcs CXX=egcs CXXFLAGS=-O9 -mpentiumpro -fomit-frame-pointer -funroll-loops -felide- constructors -fno-exceptions -fno-rtti ./configure --prefix=/usr/local/mysql --enable-assembler --with-mysqld- ldflags=-all-static *PHP4pl1 compilation options : /configure \ --disable-debug \ --with-apache=../apache_1.3.19/ \ --enable-safe-mode \ --with-mysql \ --with-mm \ --enable-inline-optimization \ --with-gnnu-ld \ --enable-memory-limit \ --enable-track-vars \ --with-mysql=/usr/local/mysql *Apache 1.3.19 compilation options : CC=egcs \ OPTIM=-O9 -funroll-loops -ffast-math -malign-double -mcpu=pentiumpro - march=pentiumpro -fomit-frame-pointer -fno-exceptions \ CFLAGS=-DDYNAMIC_MODULE_LIMIT=0 \ /configure \ --mandir=/usr/man \ --add-module=src/modules/experimental/mod_mmap_static.c \ --add-module=src/modules/standard/mod_auth_db.c \ --activate-module=src/modules/php4/libphp4.a \ --enable-module=php4 \ --activate-module=src/modules/perl/libperl.a \ --enable-module=perl \ --disable-module=userdir \ --disable-module=asis \ --disable-module=imap \ --disable-module=actions Thanks in advance for advices/help ... -- Mathieu Masseboeuf - Responsable Systèmes et Réseaux http://sports.com/fr Tous les sports en direct et en coutinu sur Internet. - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php