>Description:
        Compilation problem on SunOS intel.
>How-To-Repeat:
        Try to build using gcc (package from sunfreeware) and configuring
        like this:

                sh configure \
                    --enable-thread-safe-client \
                    --enable-assembler \
                    --localstatedir=somewhere

        then files
                strings/strings-x86.s
                strings/longlong2str-x86.s

        make the assembler choke.
        When I pass them through gas on my FreeBSD box, they compile fine:

                cpp < strings-x86.s      | as -o strings-x86.o
                cpp < longlong2str-x86.s | as -o longlong2str-x86.o

        I copy them over to the SunOS box and it works almost. I'm getting
        linker errors. I can fix those by changing two lines in the above
        mentioned files. Please apply the following patch to your source.

>Fix:
Only in mysql-3.23.35-fixed/strings: longlong2str-x86.o
diff -c -b -r mysql-3.23.35/strings/longlong2str-x86.s 
mysql-3.23.35-fixed/strings/longlong2str-x86.s
*** mysql-3.23.35/strings/longlong2str-x86.s    Fri Mar 16 01:51:52 2001
--- mysql-3.23.35-fixed/strings/longlong2str-x86.s      Thu Mar 22 19:09:44 2001
***************
*** 133,139 ****
        .size    longlong2str,.Lfe3-longlong2str

  .globl        longlong10_to_str
!       .type    longlong10_str,@function
  longlong10_to_str:
        jmp longlong2str

--- 133,139 ----
        .size    longlong2str,.Lfe3-longlong2str

  .globl        longlong10_to_str
!       .type    longlong10_to_str,@function
  longlong10_to_str:
        jmp longlong2str

Only in mysql-3.23.35-fixed/strings: strings-x86.o
diff -c -b -r mysql-3.23.35/strings/strings-x86.s 
mysql-3.23.35-fixed/strings/strings-x86.s
*** mysql-3.23.35/strings/strings-x86.s Fri Mar 16 01:51:56 2001
--- mysql-3.23.35-fixed/strings/strings-x86.s   Thu Mar 22 19:00:15 2001
***************
*** 403,406 ****
        movl    %edx,%ebx
        ret
  .strxmov_end:
!       .size    strxmov,strxmov_end-strxmov
--- 403,406 ----
        movl    %edx,%ebx
        ret
  .strxmov_end:
!       .size    strxmov,.strxmov_end-strxmov

>Submitter-Id:  <submitter ID>
>Originator:    Dirk Zoller
>Organization:
        e-mail: [EMAIL PROTECTED]
>
>MySQL support: none
>Synopsis:      Build problem with files strings/xxxx-x86.s
>Severity:      non-critical
>Priority:      low
>Category:      mysql
>Class:         sw-bug
>Release:       mysql-3.23.35 (Source distribution)
>Server: /opt/pnldev/FreeBSD-i386/bin/mysqladmin  Ver 8.18 Distrib 3.23.35, for 
>unknown-freebsdelf3.5 on i386
Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license

Server version          3.23.35
Protocol version        10
Connection              Localhost via UNIX socket
UNIX socket             /tmp/mysql.sock
Uptime:                 1 hour 59 min 24 sec

Threads: 1  Questions: 14  Slow queries: 0  Opens: 12  Flush tables: 1  Open tables: 6 
Queries per second avg: 0.002
>Environment:
        
System: FreeBSD erde.sol-3.de 3.5-STABLE FreeBSD 3.5-STABLE #9: Fri Nov 17 20:00:05 
CET 2000     [EMAIL PROTECTED]:/usr/src/sys/compile/ERDE  i386


Some paths:  /usr/local/bin/perl /usr/bin/make /usr/local/bin/gmake /opt/gnu/bin/gcc 
/usr/bin/cc
GCC: Reading specs from 
/opt/gnu/gcc-2.95.3/lib/gcc-lib/i386-unknown-freebsdelf/2.95.3/specs
gcc version 2.95.3 20010315 (release)
Compilation info: CC='gcc'  CFLAGS='-pipe -march=i586 -mcpu=i686 -fno-ident 
-ffast-math -mfancy-math-387 -mpreferred-stack-boundary=2 -O2 -fomit-frame-pointer'  
CXX='c++'  CXXFLAGS='-pipe -march=i586 -mcpu=i686 -fno-ident -ffast-math 
-mfancy-math-387 -mpreferred-stack-boundary=2 -fno-exceptions -fno-rtti -fpermissive 
-O2 -fomit-frame-pointer'  LDFLAGS=' -s'
LIBC:
-r--r--r--  1 root  wheel  1048706 Nov 17 21:38 /usr/lib/libc.a
lrwxrwx---  1 root  wheel  9 Nov 17 21:38 /usr/lib/libc.so -> libc.so.3
-r--r--r--  1 root  wheel  520557 Nov 17 21:38 /usr/lib/libc.so.3
Configure command: configure  --prefix=/opt/pnldev/FreeBSD-i386/mysql-3.23.35 
--disable-shared --enable-thread-safe-client --enable-assembler 
--localstatedir=/opt/pnl/data


---------------------------------------------------------------------
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

Reply via email to