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]



Re: Compilation Error

2004-09-09 Thread Jim Grill
 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]



Re: Compilation error

2004-08-19 Thread Casey Allen Shobe
Michael Stassen said:
 -lz means to link with libz (the zlib library
 http://www.gzip.org/zlib/),
 but the error is that it couldn't be found.  Do you have zlib?  I'd expect
 yes, or configure should have complained.

Yes, I have zlib.

$ find /lib -user zlib | xargs ls -l
lrwxrwxrwx1 zlib zlib   13 Mar 29  2003 /lib/libz.so -
libz.so.1.1.4
lrwxrwxrwx1 zlib zlib   13 Mar 29  2003 /lib/libz.so.1 -
libz.so.1.1.4
-rwxr-xr-x1 zlib zlib63020 Mar 23  2003 /lib/libz.so.1.1.4

-- 
Casey Allen Shobe  |  http://casey.allen.shobe.info
  [EMAIL PROTECTED]  |  ICQ: 1494523  |  AIM: SomeLinuxGuy

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



Re: Compilation error

2004-08-19 Thread Casey Allen Shobe
Same problem when trying to compile 4.0 instead of 4.1:

gcc -O3 -DDBUG_OFF -O3 -mcpu=i686 -felide-constructors -fno-rtti
-fno-exceptions -fno-implicit-templates -fno-exceptions -fno-rtti
-DUSE_MYSYS_NEW -DDEFINE_CXA_PURE_VIRTUAL -rdynamic -o mysqld sql_lex.o
sql_handler.o item.o item_sum.o item_buff.o item_func.o item_cmpfunc.o
item_strfunc.o item_timefunc.o thr_malloc.o item_create.o field.o key.o
sql_class.o sql_list.o net_serv.o net_pkg.o lock.o my_lock.o sql_string.o
sql_manager.o sql_map.o mysqld.o password.o hash_filo.o hostname.o
convert.o set_var.o sql_parse.o sql_yacc.o sql_base.o table.o sql_select.o
sql_insert.o sql_update.o sql_delete.o uniques.o sql_do.o procedure.o
item_uniq.o sql_test.o log.o log_event.o init.o derror.o sql_acl.o
unireg.o des_key_file.o time.o opt_range.o opt_sum.o opt_ft.o records.o
filesort.o handler.o ha_heap.o ha_myisam.o ha_myisammrg.o ha_berkeley.o
ha_innodb.o ha_isam.o ha_isammrg.o sql_db.o sql_table.o sql_rename.o
sql_crypt.o sql_load.o mf_iocache.o field_conv.o sql_show.o sql_udf.o
sql_analyse.o sql_cache.o slave.o sql_repl.o sql_union.o mini_client.o
mini_client_errors.o stacktrace.o repl_failsafe.o sql_olap.o -static 
../innobase/usr/libusr.a ../innobase/srv/libsrv.a
../innobase/dict/libdict.a ../innobase/que/libque.a
../innobase/srv/libsrv.a ../innobase/ibuf/libibuf.a
../innobase/row/librow.a ../innobase/pars/libpars.a
../innobase/btr/libbtr.a ../innobase/trx/libtrx.a
../innobase/read/libread.a ../innobase/usr/libusr.a
../innobase/buf/libbuf.a ../innobase/ibuf/libibuf.a
../innobase/eval/libeval.a ../innobase/log/liblog.a
../innobase/fsp/libfsp.a ../innobase/fut/libfut.a ../innobase/fil/libfil.a
../innobase/lock/liblock.a ../innobase/mtr/libmtr.a
../innobase/page/libpage.a ../innobase/rem/librem.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
/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make[2]: *** [mysqld] Error 1
make[2]: Leaving directory `/share/src/mysql/mysql-4.0.20/sql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/share/src/mysql/mysql-4.0.20/sql'
make: *** [all] Error 2

Casey Allen Shobe said:
 Michael Stassen said:
 -lz means to link with libz (the zlib library
 http://www.gzip.org/zlib/),
 but the error is that it couldn't be found.  Do you have zlib?  I'd
 expect
 yes, or configure should have complained.

 Yes, I have zlib.

 $ find /lib -user zlib | xargs ls -l
 lrwxrwxrwx1 zlib zlib   13 Mar 29  2003 /lib/libz.so -
 libz.so.1.1.4
 lrwxrwxrwx1 zlib zlib   13 Mar 29  2003 /lib/libz.so.1 -
 libz.so.1.1.4
 -rwxr-xr-x1 zlib zlib63020 Mar 23  2003 /lib/libz.so.1.1.4

 --
 Casey Allen Shobe  |  http://casey.allen.shobe.info
   [EMAIL PROTECTED]  |  ICQ: 1494523  |  AIM: SomeLinuxGuy

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




-- 
Casey Allen Shobe  |  http://casey.allen.shobe.info
  [EMAIL PROTECTED]  |  ICQ: 1494523  |  AIM: SomeLinuxGuy

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



Re: Compilation error

2004-08-19 Thread Dan Nelson
In the last episode (Aug 19), Casey Allen Shobe said:
 Same problem when trying to compile 4.0 instead of 4.1:
 
 gcc -O3 -DDBUG_OFF -O3 -mcpu=i686 -felide-constructors -fno-rtti
 mini_client_errors.o stacktrace.o repl_failsafe.o sql_olap.o -static 

^^^ Note the -static flag here

 ../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a
 ../strings/libmystrings.a -ldl -lpthread -lz -lcrypt -lnsl -lm -lpthread
 /bin/ld: cannot find -lz
 collect2: ld returned 1 exit status

  Yes, I have zlib.
 
  $ find /lib -user zlib | xargs ls -l
  lrwxrwxrwx1 zlib zlib   13 Mar 29  2003 /lib/libz.so - 
  libz.so.1.1.4
  lrwxrwxrwx1 zlib zlib   13 Mar 29  2003 /lib/libz.so.1 - 
  libz.so.1.1.4
  -rwxr-xr-x1 zlib zlib63020 Mar 23  2003 /lib/libz.so.1.1.4

But you don't have a static libz (libz.a).  You've only got a dynamic
one.  Redhat usually puts the static libraries in a separate -dev
rpm.

-- 
Dan Nelson
[EMAIL PROTECTED]

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



Re: Compilation error

2004-08-19 Thread Casey Allen Shobe
Dan Nelson said:
 ^^^ Note the -static flag here
 But you don't have a static libz (libz.a).  You've only got a dynamic
 one.  Redhat usually puts the static libraries in a separate -dev
 rpm.

Aha, yes.  This is a custom-built linux installation where I have built
zlib dynamically-only, intentionally.  How can I make MySQL build against
the dynamic library instead of the static?

-- 
Casey Allen Shobe  |  http://casey.allen.shobe.info
  [EMAIL PROTECTED]  |  ICQ: 1494523  |  AIM: SomeLinuxGuy

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



Re: Compilation error

2004-08-19 Thread Dan Nelson
In the last episode (Aug 19), Casey Allen Shobe said:
 Dan Nelson said:
  ^^^ Note the -static flag here
  But you don't have a static libz (libz.a).  You've only got a dynamic
  one.  Redhat usually puts the static libraries in a separate -dev
  rpm.
 
 Aha, yes.  This is a custom-built linux installation where I have built
 zlib dynamically-only, intentionally.  How can I make MySQL build against
 the dynamic library instead of the static?

Take -static out of the link line, of course :)  That's not the default
for a mysql source build, so you must have a LDFLAGS=-static env
variable or --with-mysqld-ldflags=-all-static configure flag somewhere.

-- 
Dan Nelson
[EMAIL PROTECTED]

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



Re: Compilation error

2004-08-18 Thread Michael Stassen
-lz means to link with libz (the zlib library http://www.gzip.org/zlib/), 
but the error is that it couldn't be found.  Do you have zlib?  I'd expect 
yes, or configure should have complained.

Michael
Casey Allen Shobe wrote:
I'm running into the following error when I try to compile MySQL 4.1 on my
server.  Any advice?  I'm not sure what -lz is...
g++ -O3 -DDBUG_OFF -O3 -mcpu=i686 -felide-constructors -fno-rtti
-fno-exceptions -fno-implicit-templates -fno-exceptions -fno-rtti
-rdynamic -o mysqld sql_lex.o sql_handler.o item.o item_sum.o item_buff.o
item_func.o item_cmpfunc.o item_strfunc.o item_timefunc.o thr_malloc.o
item_create.o item_subselect.o item_row.o item_geofunc.o field.o strfunc.o
key.o sql_class.o sql_list.o net_serv.o protocol.o sql_state.o lock.o
my_lock.o sql_string.o sql_manager.o sql_map.o mysqld.o password.o
hash_filo.o hostname.o set_var.o sql_parse.o sql_yacc.o sql_base.o table.o
sql_select.o sql_insert.o sql_prepare.o sql_error.o sql_update.o
sql_delete.o uniques.o sql_do.o procedure.o item_uniq.o sql_test.o log.o
log_event.o init.o derror.o sql_acl.o unireg.o des_key_file.o discover.o
time.o opt_range.o opt_sum.o records.o filesort.o handler.o ha_heap.o
ha_myisam.o ha_myisammrg.o ha_berkeley.o ha_innodb.o ha_isam.o
ha_isammrg.o ha_ndbcluster.o sql_db.o sql_table.o sql_rename.o sql_crypt.o
sql_load.o mf_iocache.o field_conv.o sql_show.o sql_udf.o sql_analyse.o
sql_cache.o slave.o sql_repl.o sql_union.o sql_derived.o client.o
sql_client.o mini_client_errors.o pack.o stacktrace.o repl_failsafe.o
gstream.o spatial.o sql_help.o protocol_cursor.o tztime.o my_time.o
ha_example.o ha_archive.o -static  ../innobase/usr/libusr.a
../innobase/srv/libsrv.a ../innobase/dict/libdict.a
../innobase/que/libque.a ../innobase/srv/libsrv.a
../innobase/ibuf/libibuf.a ../innobase/row/librow.a
../innobase/pars/libpars.a ../innobase/btr/libbtr.a
../innobase/trx/libtrx.a ../innobase/read/libread.a
../innobase/usr/libusr.a ../innobase/buf/libbuf.a
../innobase/ibuf/libibuf.a ../innobase/eval/libeval.a
../innobase/log/liblog.a ../innobase/fsp/libfsp.a ../innobase/fut/libfut.a
../innobase/fil/libfil.a ../innobase/lock/liblock.a
../innobase/mtr/libmtr.a ../innobase/page/libpage.a
../innobase/rem/librem.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 ../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
/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make[4]: *** [mysqld] Error 1
make[4]: Leaving directory `/share/src/mysql/mysql-4.1.3-beta/sql'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/share/src/mysql/mysql-4.1.3-beta/sql'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/share/src/mysql/mysql-4.1.3-beta/sql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/share/src/mysql/mysql-4.1.3-beta'
make: *** [all] Error 2
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Re: Compilation error on Solaris.

2002-10-18 Thread Dr. Michael Wittmann
hi steve,

there was a thread concerning compilation of mysql on solaris three days
ago. one of the postings had a link:

http://lists.mysql.com/cgi-ez/ezmlm-cgi?1:mss:116929:200208:ngkbacmgkmgkdbbfgjdo

to an earlier posting where j warburton describes how he successfully
compiled mysql (3.23.51) on solaris 8.

HTH,

michael


Steve Fulton wrote:
 
 Hi all,
 
 I've been trying to compile .51 and .52 under Solaris 8, and I get errors
 under both versions.  Here's the error under .52:
 
[...]

-
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




Re: Compilation Error on Mac OS X

2002-06-08 Thread Phil Dobbin

On 9/6/02 at 02:32, [EMAIL PROTECTED] (Tom Harris) wrote:

 Dear All,
 
 I am new to the mailing list so I apologise in advance if I am posting 
 to
 the wrong place. Please direct me if I am wrong.
 
 With Mac OS 10.1.5:
 
 Configuring like this was okay:
[...]
 Then issuing make went fine and compilation proceeded for a long 
 while and
 then:
[...]
 sql_udf.cc:57: dlfcn.h: No such file or directory
 make[3]: *** [sql_udf.o] Error 1
 make[2]: *** [all-recursive] Error 1
 make[1]: *** [all-recursive] Error 1
 make: *** [all-recursive-am] Error 2
 
 Further reading on various places on the internet seems to indicate 
 that
 this header file (dlfcn.h) is not included with the Apple Developer 
 Kit
[...]
 Is it necessary for me to go through the process of installing the
 'dlcompat' package and if so, I wonder why that is not mentioned in 
 any of
 the material about compilation on OS X.
 
 Can anyone answer my rather convoluted question? Thanks

Not really but have you considered using Marc Liyanage's binary installation of MySQL 
(in fact, I believe he also has a source install as well)?

You can find it at:

http://www.entropy.ch.com/

Many, many Mac OS X users (including myself) have used this and found it excellent and 
painless in the installation and use of.

Hope this helps,

Regards,

Phil.

-
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