>Description:
Performing a VPATH build with innobase support included fails since the
innobase headers in $(top_srcdir)/innobase/include are not found:

gcc -DHAVE_CONFIG_H -I. -I/vol/mysql/src/mysql/dist/mysql-3.23.55/innobase/os -I.. 
-I../../include -I../include    -DDBUG_OFF -O3 -DDBUG_OFF   -DHAVE_CURSES_H 
-I/vol/mysql/obj/mysql-3.23.55-dist/include -DHAVE_RWLOCK_T  -DDEBUG_OFF -c `test -f 
/vol/mysql/src/mysql/dist/mysql-3.23.55/innobase/os/os0proc.c || echo 
'/vol/mysql/src/mysql/dist/mysql-3.23.55/innobase/os/'`/vol/mysql/src/mysql/dist/mysql-3.23.55/innobase/os/os0proc.c
/vol/mysql/src/mysql/dist/mysql-3.23.55/innobase/os/os0proc.c:10:21: os0proc.h: No 
such file or directory
/vol/mysql/src/mysql/dist/mysql-3.23.55/innobase/os/os0proc.c:19:20: ut0mem.h: No such 
file or directory

As you can see above, there is only a -I../include option (which points at
$(top_builddir)/innobase/include), while the equivalent srcdir isn't searched
at all.
        
>How-To-Repeat:
mkdir objdir
cd objdir
<path to srcdir>/configure --with-innobase
make
        
>Fix:
It seems hard to fix this with only a source tarball: while the
-I../../include -I../include options are present in innobase/os/Makefile.in,
they only get there from the include ../include/Makefile.i statement in 
os/Makefile.am.  Unfortunately, this Makefile.i is only available via bitkeeper.
It should be sufficient to add -I$(srcdir)/../include there and rebuild
the innobase Makefiles.
        

>Submitter-Id:  net
>Originator:    Rainer Orth
>Organization:  Faculty of Technology, Bielefeld University
>
>MySQL support: none
>Synopsis:      VPATH build fails with innobase
>Severity:      serious
>Priority:      medium
>Category:      mysql
>Class:         sw-bug
>Release:       mysql-3.23.55 (Source distribution)

>Environment:
        
System: SunOS padouk 5.8 Generic_108528-18 sun4u sparc SUNW,Sun-Fire-880
Architecture: sun4

Some paths:  /vol/perl-5.8/bin/perl /vol/gnu/bin/make /vol/gnu/bin/gcc 
/opt/SUNWspro/bin/cc
GCC: Reading specs from /vol/gnu/lib/gcc-lib/sparc-sun-solaris2.8/3.1/specs
Configured with: /vol/gnu/src/gcc/gcc-3.1/configure --prefix=/vol/gnu 
--with-local-prefix=/vol/gnu --disable-nls
Thread model: posix
gcc version 3.1
Compilation info: CC='gcc'  CFLAGS='-Wimplicit -Wreturn-type -Wswitch -Wtrigraphs 
-Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings 
-Wunused -mcpu=pentiumpro -O3 -fno-omit-frame-pointer'  CXX='gcc'  
CXXFLAGS='-Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts 
-Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Woverloaded-virtual 
-Wsign-promo -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor -felide-constructors 
-fno-exceptions -fno-rtti -mcpu=pentiumpro -O3 -fno-omit-frame-pointer'  LDFLAGS=''
LIBC: 
-rw-r--r--   1 root     bin       1766784 Aug  8  2002 /lib/libc.a
lrwxrwxrwx   1 root     root           11 Oct  8 15:59 /lib/libc.so -> ./libc.so.1
-rwxr-xr-x   1 root     bin       1146168 Aug  8  2002 /lib/libc.so.1
-rw-r--r--   1 root     bin       1766784 Aug  8  2002 /usr/lib/libc.a
lrwxrwxrwx   1 root     root           11 Oct  8 15:59 /usr/lib/libc.so -> ./libc.so.1
-rwxr-xr-x   1 root     bin       1146168 Aug  8  2002 /usr/lib/libc.so.1
Configure command: ./configure '--prefix=/usr/local/mysql' '--enable-assembler' 
'--with-extra-charsets=complex' '--enable-thread-safe-client' '--with-innodb' 
'--with-berkeley-db' 'CFLAGS=-Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment 
-W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Wunused 
-mcpu=pentiumpro -O3 -fno-omit-frame-pointer' 'CXXFLAGS=-Wimplicit -Wreturn-type 
-Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses 
-Wsign-compare -Wwrite-strings -Woverloaded-virtual -Wsign-promo -Wreorder 
-Wctor-dtor-privacy -Wnon-virtual-dtor -felide-constructors -fno-exceptions -fno-rtti 
-mcpu=pentiumpro -O3 -fno-omit-frame-pointer' 'CXX=gcc'


---------------------------------------------------------------------
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

Reply via email to