Bug #16329 Compile failure : noinst_HEADERS
Submitted: 10 Jan 2006 9:54 Modified: 16 Jan 2006 9:48
Reporter: [ name withheld ] Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Server Severity:S2 (Serious)
Version:5.0.18 OS:HP/UX (HP-UX 11.00)
Assigned to: CPU Architecture:Any

[10 Jan 2006 9:54] [ name withheld ]
Description:
Configure options : 
=============

./configure \
--prefix=/PKl01h01/soft/mysql \
--localstatedir=/PKl01h01/data/mysql \
--with-innodb

Compile error : g++: noinst_HEADERS: No such file or directory
==========

Compile error (detailed)
=================

...

        /bin/sh ../libtool --preserve-dup-deps --mode=link g++  -O3 -DDBUG_OFF    -fno-implicit-templates -fno-exceptions -fno-rtti -DHPUX11  -DSNPRINTF_RETURN_TRUNC -DHAVE_BROKEN_PREAD -DDONT_USE_FINITE -D_INCLUDE_LONGLONG -DNO_FCNTL_NONBLOCK -DDO_NOT_REMOVE_THREAD_WRAPPERS -DHAVE_BROKEN_PTHREAD_COND_TIMEDWAIT    -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_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  sql_olap.o sql_view.o gstream.o  spatial.o sql_help.o sql_cursor.o  tztime.o my_time.o my_decimal.o  sp_head.o sp_pcontext.o sp_rcontext.o  sp.o sp_cache.o parse_file.o  sql_trigger.o ha_example.o  ha_archive.o ha_tina.o ha_blackhole.o  ha_federated.o ../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 ../zlib/libz.la       noinst_HEADERS = item.h item_func.h item_sum.h item_cmpfunc.h  item_strfunc.h item_timefunc.h item_uniq.h  item_create.h item_subselect.h item_row.h  mysql_priv.h item_geofunc.h sql_bitmap.h  procedure.h sql_class.h sql_lex.h sql_list.h  sql_manager.h sql_map.h sql_string.h unireg.h  sql_error.h field.h handler.h mysqld_suffix.h  ha_myisammrg.h ha_heap.h ha_myisam.h ha_berkeley.h ha_innodb.h  ha_ndbcluster.h opt_range.h protocol.h  sql_select.h structs.h table.h sql_udf.h hash_filo.h lex.h lex_symbol.h sql_acl.h sql_crypt.h   log_event.h sql_repl.h slave.h  stacktrace.h sql_sort.h sql_cache.h set_var.h  spatial.h gstream.h client_settings.h tzfile.h  tztime.h my_decimal.h sp_head.h sp_pcontext.h sp_rcontext.h sp.h sp_cache.h  parse_file.h sql_view.h    sql_trigger.h  sql_array.h sql_cursor.h  examples/ha_example.h ha_archive.h  examples/ha_tina.h ha_blackhole.h   ha_federated.h -lpthread -lcrypt -lnsl -lm  -lpthread
../libtool[2042]: test: Specify a parameter with this command.
libtool: link: warning: this platform does not like uninstalled shared libraries
libtool: link: `mysqld' will be relinked during installation

g++ -O3 -DDBUG_OFF -fno-implicit-templates -fno-exceptions -fno-rtti -DHPUX11 -DSNPRINTF_RETURN_TRUNC -DHAVE_BROKEN_PREAD -DDONT_USE_FINITE -D_INCLUDE_LONGLONG -DNO_FCNTL_NONBLOCK -DDO_NOT_REMOVE_THREAD_WRAPPERS -DHAVE_BROKEN_PTHREAD_COND_TIMEDWAIT -o .libs/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_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 sql_olap.o sql_view.o gstream.o spatial.o sql_help.o sql_cursor.o tztime.o my_time.o my_decimal.o sp_head.o sp_pcontext.o sp_rcontext.o sp.o sp_cache.o parse_file.o sql_trigger.o ha_example.o ha_archive.o ha_tina.o ha_blackhole.o ha_federated.o noinst_HEADERS item.h item_func.h item_sum.h item_cmpfunc.h item_strfunc.h item_timefunc.h item_uniq.h item_create.h item_subselect.h item_row.h mysql_priv.h item_geofunc.h sql_bitmap.h procedure.h sql_class.h sql_lex.h sql_list.h sql_manager.h sql_map.h sql_string.h unireg.h sql_error.h field.h handler.h mysqld_suffix.h ha_myisammrg.h ha_heap.h ha_myisam.h ha_berkeley.h ha_innodb.h ha_ndbcluster.h opt_range.h protocol.h sql_select.h structs.h table.h sql_udf.h hash_filo.h lex.h lex_symbol.h sql_acl.h sql_crypt.h log_event.h sql_repl.h slave.h stacktrace.h sql_sort.h sql_cache.h set_var.h spatial.h gstream.h client_settings.h tzfile.h tztime.h my_decimal.h sp_head.h sp_pcontext.h sp_rcontext.h sp.h sp_cache.h parse_file.h sql_view.h sql_trigger.h sql_array.h sql_cursor.h examples/ha_example.h ha_archive.h examples/ha_tina.h ha_blackhole.h ha_federated.h  ../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 ../zlib/.libs/libz.sl -lpthread -lpthread -lpthread -lcrypt -lnsl -lm -lpthread -Wl,+b -Wl,/PKl01h01/soft/src/mysql/zlib/.libs:/PKl01h01/soft/mysql/lib/mysql
g++: noinst_HEADERS: No such file or directory
g++: Compilation of header file requested (THIS LINE IS REPEATED 70 TIMES)
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

How to repeat:
Compile on HP-UX 11.00
[10 Jan 2006 10:04] Valeriy Kravchuk
Thank you for a problem report. Please, send the results of the ggc -v command.
[10 Jan 2006 10:32] [ name withheld ]
The gcc -v command result is : 

Reading specs from /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/specs
Configured with: ./configure  : (reconfigured) ./configure  : (reconfigured) ./configure  : (reconfigured) ./configure  : (reconfigured) ./configure
Thread model: single
gcc version 3.0.1
[10 Jan 2006 11:08] Valeriy Kravchuk
And what is the result of make -v? Is it gmake or plain Hp-UX make?
[10 Jan 2006 11:27] [ name withheld ]
Result of "make -v" command : 

Make: Unknown flag argument v.  Stop.

Result of "type make" command :

make is a tracked alias for /usr/bin/make

Result of "ll /usr/bin/make" command : 

lr-xr-xr-t   1 root       sys             17 Jun 12  1996 /usr/bin/make -> /usr/ccs/bin/make

Result of "gmake -v" command : 

GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for hppa2.0n-hp-hpux11.00
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
        Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

Report bugs to <bug-make@gnu.org>.

---

I've used make (hpux) and not gmake for the compilation. I'll try a compilation with gmake and post here the result.
[10 Jan 2006 11:44] Valeriy Kravchuk
Yes, please, try to build with gmake, as it is used by default on all our build machines, and inform about the results.
[10 Jan 2006 13:56] [ name withheld ]
Okay, the result after a compilation with gmake is : 

/usr/ccs/bin/ld: Unsatisfied symbols:
   __builtin_prefetch (code)
collect2: ld returned 1 exit status
gmake[4]: *** [mysqld] Error 1
gmake[4]: Leaving directory `/PKl01h01/soft/src/mysql-5.0.18/sql'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/PKl01h01/soft/src/mysql-5.0.18/sql'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/PKl01h01/soft/src/mysql-5.0.18/sql'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/PKl01h01/soft/src/mysql-5.0.18'
gmake: *** [all] Error 2
[11 Jan 2006 10:36] Valeriy Kravchuk
Sorry, but I can't really repeat the problem in the environment similar to yours - we have a mix of GCC 3.3.1 and native HP-UX C compiler on our HP-UX 11 machine, so I am getting other errors thaty may be related to our configuration only:

Making all in strings
gmake[2]: Entering directory `/home/mysqldev/valeriy/mysql-5.0.18/strings'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include    -DDBUG_OFF -fomit-frame-pointer -O3 -fpic   -DHPUX11  -DSNPRINTF_RETURN_TRUNC -DHAVE_BROKEN_PREAD -DDONT_USE_FINITE -DHAVE_BROKEN_GETPASS -DNO_FCNTL_NONBLOCK -DDO_NOT_REMOVE_THREAD_WRAPPERS -DHAVE_BROKEN_PTHREAD_COND_TIMEDWAIT -MT strxmov.o -MD -MP -MF ".
deps/strxmov.Tpo" -c -o strxmov.o strxmov.c; \
then mv -f ".deps/strxmov.Tpo" ".deps/strxmov.Po"; else rm -f ".deps/strxmov.Tpo
"; exit 1; fi
In file included from /usr/include/sys/user.h:52,
                 from /usr/include/sys/stream.h:53,
                 from ../include/my_global.h:331,
                 from strxmov.c:33:
/usr/include/machine/sys/setjmp.h:45: error: redefinition of `struct label_t'
In file included from ../include/my_global.h:532,
                 from strxmov.c:33:
/usr/include/sys/socket.h:484: error: parse error before "sendfile"
/usr/include/sys/socket.h:485: error: parse error before "bsize_t"
/usr/include/sys/socket.h:486: error: parse error before "sendpath"
/usr/include/sys/socket.h:487: error: parse error before "bsize_t"
/usr/include/sys/socket.h:501: error: parse error before "__sendfile64"
...

By the way, we do not use gcc for our builds on HP-UX internally, so, can you try to use native HP C compiler? It surely works.

You may also try to compile using some hints from http://dev.mysql.com/doc/refman/5.0/en/hp-ux-11-x.html (gcc flags and --disable-shared configure option).
[11 Jan 2006 13:44] [ name withheld ]
Hello, 

I'm sorry but I can't use cc or acc on this server. I'm not root on it and I can't have currently another version of gcc or install another C compiler.

Result of acc command : ksh: acc:  not found
Result of aCC command : ksh: aCC:  not found
use of cc cause some others problems and I can't use it for compilation. 

So gcc 3.0.1 is my only one solution to compile c code.

What can I do in this condition ?

PS : The last compilation of mysql with gcc 3.0.1 was ok but the version of mysql was mysql-4.0.4-beta.
[12 Jan 2006 11:42] Valeriy Kravchuk
Sorry, but, according to our build team, we will not be able to check and fix builds with gcc on HP-UX in the foreseeable future. So, you should either use our binaries or native compiler.

I am really sorry about this, and I will inform you if this change.
[13 Jan 2006 14:15] [ name withheld ]
Hello, 

Thanks for your answer.

I've no problem to use binaries (I've tested, it works fine) but I need shared libraries for php/apache and others products and I didn't find them in the 
mysql-standard-5.0.18-hpux11.00-hppa2.0w.depot.gz package.

Do you know where I can download them ?

Thanks
[13 Jan 2006 15:43] Valeriy Kravchuk
You have to download mysql-max-5.0.18-hpux11.00-hppa2.0w.depot.gz. Looks like there is no .so or .sl files in any standard-5.0.18-hpux*...
[13 Jan 2006 15:48] Valeriy Kravchuk
Sorry, looks like there are no shared libraries in -max also.
[13 Jan 2006 16:58] Joerg Bruehe
Sorry, but we currently do not build shared libraries on HP-UX.

It is on the TO-DO list, but that contains other items as well :-)

If you do not have HP compilers there, and a full build with gcc fails for you,
all I can propose for now is to try a gcc build having configured "--without-server".
[16 Jan 2006 9:48] [ name withheld ]
I've totally new error message in this case. I've put the result with "without-server" in a new bug report : #16528