Bug #42039 sql/Makefile line 528 "$(yassl_libs) $(openssl_libs) yes" gives compile error
Submitted: 12 Jan 2009 6:10 Modified: 15 Jan 2009 18:19
Reporter: Kostya Berger Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.1.30 OS:Linux (OpenSuSE-11.1)
Assigned to: CPU Architecture:Any
Tags: sql/Makefile

[12 Jan 2009 6:10] Kostya Berger
Description:
Makefile in sql/Makefile; 
line 528 reads: "$(yassl_libs) $(openssl_libs) yes"
On invoking "make" this gives off compile error:
"g++ yes: no such file or directory"

How to repeat:
I ran "./configure --prefix=/usr --with-mysqld-libs --with-embedded-server
then I just ran "make"

Suggested fix:
By studying the Makefile I figured, it should be, perhaps, "--libtools=yes", if ever. At least, when I manually went to 'sql' directory and repeated the compile command, that gave off this error, with "yes" replaced by "--libtool=yes", it compiled OK. I went back, then, to the root directory and repeated the "make" command, which then completed 100% OK, the following "make install" ran OK.

in line 528: instead of "yes" put "--libtool=yes" or whatever rightfully belongs there.
[12 Jan 2009 6:24] Kostya Berger
to be precise, the compile code giving the error above was:

g++ -O3 -fno-implicit-templates -fno-exceptions -fno-rtti -rdynamic -o mysqld sql_lex.o sql_handler.o sql_partition.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 item_xmlfunc.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 sql_connect.o scheduler.o sql_parse.o set_var.o sql_yacc.o sql_base.o table.o sql_select.o sql_insert.o sql_profile.o sql_prepare.o sql_error.o sql_locale.o sql_update.o sql_delete.o uniques.o sql_do.o procedure.o sql_test.o log.o init.o derror.o sql_acl.o unireg.o des_key_file.o log_event.o rpl_record.o log_event_old.o rpl_record_old.o discover.o time.o opt_range.o opt_sum.o records.o filesort.o handler.o ha_partition.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 rpl_filter.o rpl_tblmap.o rpl_utility.o rpl_injector.o rpl_rli.o rpl_mi.o rpl_reporting.o sql_union.o sql_derived.o sql_client.o repl_failsafe.o sql_olap.o sql_view.o gstream.o spatial.osql_help.o sql_cursor.o tztime.o my_decimal.o sp_head.o sp_pcontext.o sp_rcontext.o sp.o sp_cache.o parse_file.o sql_trigger.o event_scheduler.o event_data_objects.o event_queue.o event_db_repository.o events.o sql_plugin.o sql_binlog.o sql_builtin.o sql_tablespace.o partition_info.o sql_servers.o event_parse_data.o mini_client_errors.o pack.o client.o my_time.o my_user.o yes  ./.libs/libndb.a -lpthread -lpthread -lpthread -lpthread ../storage/csv/libcsv.a ../storage/heap/libheap.a ../storage/myisam/libmyisam.a ../storage/myisammrg/libmyisammrg.a ../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a -lz -ldl -lpthread -lcrypt -lnsl -lm -lpthread
g++: yes: No such file or directory

you see the last part of it:
"yes  ./.libs/libndb.a -lpthread -lpthread -lpthread -lpthread ../storage/csv/libcsv.a ../storage/heap/libheap.a ../storage/myisam/libmyisam.a ../storage/myisammrg/libmyisammrg.a ../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a -lz -ldl -lpthread -lcrypt -lnsl -lm -lpthread" ?
This is it.

Cheers,
Kostya
[12 Jan 2009 6:47] Kay Roepke
I've set the correct bug category for this one, as this is for mysqld and not MySQL Proxy.
[13 Jan 2009 6:44] Sveta Smirnova
Thank you for the report.

Verified as described.
[15 Jan 2009 18:19] Timothy Smith
Hi!  Thanks for the bug report.

This is not a bug.  The --with-mysqld-libs option should be given an argument, something like --with-mysqld-libs="-L/path/to/lib -lfoo -lbar".

Regards,

Timothy