Description:

The linker does not seem to be correctly set !!!  I am not sure what these 
error messages are really saying.... 

ld: fatal: library -ldir: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 3958 "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 opendir();

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

-------------------------------------------------------------
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 4330 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char gethostbyname_r(); below.  */
#include <assert.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 gethostbyname_r();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
choke me
#else
gethostbyname_r();
#endif

; return 0; }
-------------------------------------------------------------

...etc....

 
How-To-Repeat:
#!/bin/sh

CFLAGS="-O3"
CXX=gcc 
CXXFLAGS="-O3 -felide-constructors -fno-exceptions -fno-rtti"
export CFLAGS CXX CXXFLAGS 
./configure --prefix=/usr/mysql --enable-assembler 
--with-mysqld-ldflags=-all-static



Fix:
YOU TELL ME ... I DO NOT KNOW !! 


>Submitter-Id:  <submitter ID>
>Originator: 
>Organization:
 <organization of PR author (multiple lines)>
>MySQL support: [none | licence | email support | extended email support ]
>Synopsis:      <synopsis of the problem (one line)>
>Severity:      <[ non-critical | serious | critical ] (one line)>
>Priority:      <[ low | medium | high ] (one line)>
>Category:      mysql
>Class:         <[ sw-bug | doc-bug | change-request | support ] (one 
line)>
>Release:       mysql-3.23.39 (Source distribution)

>Environment:
        <machine, os, target, libraries (multiple lines)>
System: SunOS holy 5.7 Generic_106541-16 sun4u sparc 
SUNW,UltraSPARC-IIi-cEngine
Architecture: sun4

Some paths:  /usr/local/bin/perl /home/sw/buildadm/bin/make 
/usr/local/bin/gmake /home/sw/buildadm/bin/gcc /usr/ucb/cc
GCC: Reading specs from 
/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/3.2.2/specs
Configured with: ../configure --disable-nls --with-ld=/usr/ccs/bin/ld 
--with-as=/usr/ccs/bin/as
Thread model: posix
gcc version 3.2.2
Compilation info: CC='gcc'  CFLAGS=''  CXX='gcc'  CXXFLAGS=''  LDFLAGS=''
LIBC: 
-rw-r--r--   1 bin      bin      1707752 May 29  2001 /lib/libc.a
lrwxrwxrwx   1 root     root          11 Jan  8  2001 /lib/libc.so -> 
./libc.so.1
-rwxr-xr-x   1 bin      bin      1125056 May 29  2001 /lib/libc.so.1
-rw-r--r--   1 bin      bin      1707752 May 29  2001 /usr/lib/libc.a
lrwxrwxrwx   1 root     root          11 Jan  8  2001 /usr/lib/libc.so -> 
./libc.so.1
-rwxr-xr-x   1 bin      bin      1125056 May 29  2001 /usr/lib/libc.so.1
Configure command: ./configure --with-unix-socket-path=/var/tmp/mysql.sock 
--with-low-memory --with-mit-threads=yes --without-perl 
--enable-thread-safe-client --with-berkeley-db --with-innodb
Perl: This is perl, version 5.005_03 built for sun4-solaris



Kind Regards,
Marek Gimza 

Arris International
3871 Lakefield Drive,
Suwanee, GA, 30024
(770-622-8541,  mobile: 678-662-2844)

Reply via email to