List:General Discussion« Previous MessageNext Message »
From:Eric Frazier Date:February 2 2003 3:35am
Subject:Re: Configure prob with FreeBSD/Linuxthreads
View as plain text  
Hi,

I don't know if this is all old news now, but I got the exact same error
that Jesse did when I ran a copy and paste from your example. 
When I both switched to sh from csh, and made that big paragraph into a
single line, then it worked. So I got though the configure. 

But on the make I got an error. (yes, I did install linuxthreads from ports) 

pe -march=pentiumpro -D__USE_UNIX98 -D_REENTRANT -D_THREAD_SAFE
-DHAVE_BROKEN_REALPATH -I/usr/local/include/pthread/linuxthreads
-felide-constructors -fno-rtti -fno-exceptions  -fno-implicit-templates
-fno-exceptions -fno-rtti -DMYSQLD_NET_RETRY_COUNT=1000000
-DHAVE_BROKEN_REALPATH -c -o sql_map.o `test -f sql_map.cc || echo
'./'`sql_map.cc
source='mysqld.cc' object='mysqld.o' libtool=no  depfile='.deps/mysqld.Po'
tmpdepfile='.deps/mysqld.TPo'  depmode=gcc /bin/sh ../depcomp  cc
-DMYSQL_SERVER  -DDEFAULT_MYSQL_HOME="\"/usr/local/mysql\""
-DDATADIR="\"/usr/local/mysql/var\""
-DSHAREDIR="\"/usr/local/mysql/share/mysql\""  -DHAVE_CONFIG_H -I. -I. -I..
-I../innobase/include  -I./../include  -I./../regex  -I. -I../include -I.
-O3 -DDBUG_OFF -O -pipe -march=pentiumpro -D__USE_UNIX98 -D_REENTRANT
-D_THREAD_SAFE -DHAVE_BROKEN_REALPATH
-I/usr/local/include/pthread/linuxthreads -felide-constructors -fno-rtti
-fno-exceptions  -fno-implicit-templates -fno-exceptions -fno-rtti
-DMYSQLD_NET_RETRY_COUNT=1000000 -DHAVE_BROKEN_REALPATH -c -o mysqld.o `test
-f mysqld.cc || echo './'`mysqld.cc
mysqld.cc: In function `int main(int, char **)':
mysqld.cc:1961: implicit declaration of function `int pthread_setprio(...)'
*** Error code 1

Stop in /usr/local/mysql-4.0.9-gamma/sql.
*** Error code 1


I have 
gcc version 2.95.4 20020320 [FreeBSD]
# uname -a
FreeBSD local.host 4.7-RELEASE FreeBSD 4.7-RELEASE #0: Wed Oct  9 15:08:34
GMT 2002


But now, I find that sysctl hw.ncpu says *ONE* not 2 so my problems are a
little bigger than just compiler stuff.


Thanks,


Eric 



At 11:36 PM 1/28/03 -0800, Jeremy Zawodny wrote:
>On Tue, Jan 28, 2003 at 04:28:53PM -0500, Jesse Sheidlower wrote:
>> > 
>> > Out of curiosity, which version of gcc are you using?
>> 
>> As I posted a few lines up, it's gcc 2.95.4 ;-)
>
>Oh, err.  Hm.  Right.  I can read.  Yeah.
>
>> After I sent the original message, I tried to play around with the
>> configure variables, and discovered that it only worked by 
>> eliminating the entire 
>> 
>> '--with-named-thread-libs=-DHAVE_GLIBC2_STYLE_GETHOSTBYNAME_R    \
>> -D_THREAD_SAFE -DHAVE_BROKEN_REALPATH                            \
>> -L/usr/local/lib       \
>> -llthread -llgcc_r'
>> 
>> group; I tried removing each one individually and it failed each
>> time with the 
>> 
>> checking size of char... configure: error: cannot compute sizeof (char), 77
>> 
>> error. 
>
>Hmm.
>
>> I've since given up, installed with the exact configure line shown
>> in the MySQL docs, FreeBSD section, and it worked perfectly, so I'm
>> worrying about moving my grant tables from 3.23.49 and so forth,
>> instead of getting Linuxthreads to work....But I'd be happy to try
>> to get this fixed, especially if it will help others.
>
>If you're interested, I could make my FreeBSD binary availale just to
>see if it runs on your system.  I wouldn't expect you to run it for
>real--just see if it starts.  I'm a little curious now to see if my
>builds even work on a non-Yahoo version of FreeBSD.
>
>Jeremy
>-- 
>Jeremy D. Zawodny     |  Perl, Web, MySQL, Linux Magazine, Yahoo!
><Jeremy@stripped>  |  http://jeremy.zawodny.com/
>
>MySQL 4.0.8: up 1 days, processed 36,740,584 queries (336/sec. avg)
>
>---------------------------------------------------------------------
>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 <mysql-thread131129@stripped>
>To unsubscribe, e-mail <mysql-unsubscribe-ef=kwinternet.com@stripped>
>Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>

(250) 655 - 9513 (PST Time Zone)

"Inquiry is fatal to certainty." -- Will Durant 




Thread
Configure prob with FreeBSD/LinuxthreadsJesse Sheidlower28 Jan
  • Re: Configure prob with FreeBSD/LinuxthreadsJeremy Zawodny28 Jan
    • Re: Configure prob with FreeBSD/LinuxthreadsJesse Sheidlower28 Jan
      • Re: Configure prob with FreeBSD/LinuxthreadsJonathan Disher29 Jan
      • Re: Configure prob with FreeBSD/LinuxthreadsJeremy Zawodny29 Jan
  • Re: Configure prob with FreeBSD/LinuxthreadsDan Nelson28 Jan
  • Re: Configure prob with FreeBSD/LinuxthreadsJonathan Disher29 Jan
    • Re: Configure prob with FreeBSD/LinuxthreadsDan Nelson29 Jan
    • Re: Configure prob with FreeBSD/LinuxthreadsGianluca Sordiglioni29 Jan
      • Re: Configure prob with FreeBSD/LinuxthreadsJonathan Disher30 Jan
        • Re: Configure prob with FreeBSD/LinuxthreadsGianluca Sordiglioni30 Jan
          • Re: Configure prob with FreeBSD/LinuxthreadsJonathan Disher30 Jan
            • Re: Configure prob with FreeBSD/LinuxthreadsMaximo Migliari31 Jan
              • Re: Configure prob with FreeBSD/LinuxthreadsDan Nelson31 Jan
                • Re: Configure prob with FreeBSD/LinuxthreadsMaximo Migliari31 Jan
Re: Configure prob with FreeBSD/LinuxthreadsMaximo Migliari31 Jan
  • Re: Configure prob with FreeBSD/LinuxthreadsDan Nelson31 Jan
Re: Configure prob with FreeBSD/LinuxthreadsEric Frazier2 Feb