I am trying to use my binary Intel installation to compile PHP (which seems to be doing a _very_ simple program). So in a statically linked installation these references are defined in the embedded C library, but if one is linking it with another application, it isn't.
Possibly the intel C library would need to be distributed with the binary application for the sake of linking with other applications? Thoughts?




To quote the Intel C++ Compiler release notes:
"The Intel C++ Compiler uses two routines _intel_fast_memcpy and _intel_fast_memset to perform memcpy and memset operations that are not macro expanded to __builtin_memcpy and __builtin_memset in the source code. These are found in libirc. If you use the gcc compiler to link your application or if you directly call the linker, ld, you might find these unresolved symbols. For this reason, Intel recomends using the Intel C++ Compiler for linking, using the same compiler options used during the compilation phase. However, if you see these as undefined externals, either add -lirc to your link line, or change your includes so that memcpy and memset will be macro expanded to the builtin forms and recompile. The Intel C++ Compiler for IA-32 based applications calls a routine intel_proc_init from the main routine of any program to ensure that the processor is correctly set up. This routine is also found in libirc. These routines used further entry points from glibc, so -lirc needs to be placed before -lc on your command line."



usr/local/mysql/lib/libmysqlclient.a(libmysql.o): In function `read_rows':
libmysql.o(.text+0xe60): undefined reference to `_intel_fast_memcpy'
/usr/local/mysql/lib/libmysqlclient.a(libmysql.o): In function `mysql_real_connect.':
libmysql.o(.text+0x3044): undefined reference to `_intel_fast_memcpy'
/usr/local/mysql/lib/libmysqlclient.a(my_malloc.o): In function `my_memdup':
my_malloc.o(.text+0x31): undefined reference to `_intel_fast_memcpy'
/usr/local/mysql/lib/libmysqlclient.a(my_malloc.o): In function `my_strdup':
my_malloc.o(.text+0x100): undefined reference to `_intel_fast_memcpy'
/usr/local/mysql/lib/libmysqlclient.a(my_malloc.o): In function `my_strdup_with_length':
my_malloc.o(.text+0x132): undefined reference to `_intel_fast_memcpy'
/usr/local/mysql/lib/libmysqlclient.a(my_alloc.o)(.text+0x327): more undefined references to `_intel_fast_memcpy' follow
collect2: ld returned 1 exit status
configure: failed program was:
#line 56453 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char mysql_error();


int main() {
mysql_error()
; return 0; }


-Mike

_________________________________________________________________
Add photos to your messages with MSN Premium. Get 2 months FREE* http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines



-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]



Reply via email to