Re: Compilation Error

2004-09-10 Thread Andrew Wheeler

--- Jim Grill [EMAIL PROTECTED] wrote:

  Hi,
 
  I am trying to compile MySQL. I know that it is
 possible to install this
  as a binary, that is not my goal.
 
  My environment consists of the following: If there
 are other tools that
  I need to specify please let me know.
  gcc-3.2-7
  libgcc-3.2-7
  gcc-c++-3.2-7
 
  I run configure as specified at the MySQL site:
 From config.log:
 
 ./configure --prefix=/usr/local/mysql
 --with-extra-charset=complex
  --enable-thread-safe-client --enable-local-infile
 --enable-assembler
  --disable-shared --with-client-ldflags=-all-static
  --with-mysqld-ldflags=-all-static
 
 
  When I run make I receive the following output:
 
  libmysql.c:1850: warning: passing arg 5 of
 `gethostbyname_r' from
  incompatibleointer type
  libmysql.c:1850: too few arguments to function
 `gethostbyname_r'
  libmysql.c:1850: warning: assignment makes pointer
 from integer without
  a castmake[2]: *** [libmysql.lo] Error 1
 
  I have googled this error message and the result
 include the following
  recommendation from MySQL:
 
  This is known problem with RedHat. In order to
 build MySQL you need to
  have g++
  installed from separate RPM
 
  In RedHat 8.0 RPM in quesiton is
 gcc-c++-3.2-7.i386.rpm
 
  It appears that I have installed
 gcc-c++-3.2-7.i386.rpm as you can see
  above from my build environment obtained by:
 
  rpm -qa | grep gcc
 
  Any help or pointers would be greatly appreciated.
 
  Andrew
 
 
 Looks like you have the right stuff.
 
 Have you tried the following:
 
 (run make distclean before configuring again to be
 sure you get a clean
 start.)
 
 CFLAGS=-O3 -mcpu=pentiumpro CXX=gcc CXXFLAGS=-O3
 -mcpu=pentiumpro \
 -felide-constructors -fno-exceptions -fno-rtti \
 ./configure --your options here
 
 change -mcpu=pentiumpro to suite your system
 (i386, i486, i586, i686,
 pentium, pentiumpro, k6, or athlon).
 
 Jim Grill
 
 
 
 -- 
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:   

http://lists.mysql.com/[EMAIL PROTECTED]
 
 


OK:

I ran make distclean

I then ran

CFLAGS=-O3 -mcpu=pentiumpro CXX=gcc CXXFLAGS=-O3
 -mcpu=pentiumpro \
 -felide-constructors -fno-exceptions -fno-rtti
./configure --prefix=/usr/local/mysql
 --with-extra-charset=complex
  --enable-thread-safe-client --enable-local-infile
  --enable-assembler
 --disable-shared --with-client-ldflags=-all-static
 --with-mysqld-ldflags=-all-static


and got the following error:

checking whether to enable maintainer-specific
portions of Makefiles... no
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... (cached) yes
checking for gawk... (cached) gawk
checking for gcc... gcc
checking for C compiler default output... configure:
error: C compiler cannot
create executables
See `config.log' for more details.


When I look at config.log I don't see any hints that I
understand.

Here is the part of the file that seems to offer clues
to the initiated.

gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
configure:2590: $? = 0
configure:2592: gcc -V /dev/null 5
gcc: argument to `-V' is missing
configure:2595: $? = 1
configure:2619: checking for C compiler default output
configure:2622: gcc O3 -mcpu=i686conftest.c  5
gcc: O3: No such file or directory
configure:2625: $? = 1
configure: failed program was:
| #line 2598 configure

Again any help or hints would be greatly appreciated.

Andrew
 








__
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

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



Problems Compiling

2004-09-03 Thread Andrew Wheeler
I am not sure that this is the correct list. I did not
see any list that seemed more appropriate.

I have RedHat 8:
gcc-3.2-7

I run ./configure --prefix=/usr/local/mysql
which according to the log exited with code 0

Then when I run make I get the following errors. My
question is what is the signifigance and how do I
correct.


a ../innobase/thr/libthr.a ../innobase/sync/libsync.a
../innobase/data/libdata.a ../innobase/mach/libmach.a
../innobase/ha/libha.a ../innobase/dyn/libdyn.a
../innobase/mem/libmem.a ../innobase/sync/libsync.a
../innobase/ut/libut.a ../innobase/os/libos.a
../innobase/ut/libut.a -lrt ../isam/libnisam.a
../merge/libmerge.a ../myisam/libmyisam.a
../myisammrg/libmyisammrg.a ../heap/libheap.a
../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a
../regex/libregex.a ../strings/libmystrings.a -ldl
-lpthread -lz -lcrypt -lnsl -lm -lpthread
make[4]: Leaving directory
`/root/downloads/mysql-4.0.20/sql'
make[3]: *** [all-recursive] Segmentation fault
make[3]: Leaving directory
`/root/downloads/mysql-4.0.20/sql'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/root/downloads/mysql-4.0.20/sql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/root/downloads/mysql-4.0.20'
Segmentation fault

Andrew 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



MySQL configure script errors

2003-12-11 Thread Andrew Wheeler
I am trying to compile MySQL on a machine. The OS is linux. I am following 
the directions I found on a website.  http://www.brtnet.org/linux/lampssl.htm.

The source files are in the directory /usr/local/src/mysql-4.0.16.
When I run the ./configure --prefix=/usr/local/mysql 
--localstatedir=/usr/local/mysql/date --disable-maintainer-mode 
--with-mysqld-user=mysql --with-unix-socket-path=/tmp/mysql.sock 
--without-comment --with-low-memory   The script fails with the message 
configure: error: No termcap/curses library found. I confirmed that the 
relevant packages had been installed after looking on the web to see what 
was missing.

My question is what is the name of the library and is the script 
complaining that the library is not in the directory /curses/termcap?

Any help would be greatly appreciated.

Andrew

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