Hi!

I am currently trying to compile 3.23.34a coming with BDB support.
I have zlib installed in the /usr/local (not normally searched for
libraries), so that until now I have
 [CFLAGS etc ] LDFLAGS=-L/usr/local/lib ./configure

When enabling --with-berkeley-db, compilation fails, because I have another
version of Berkeley DB (2.xx) installed in /usr/local/lib.
Reason: The Makefile in sql/ specifies the locations given in LDFLAGS before
-L../bdb/build-unix.
The full solution would probably be to move around options, so that 
-L../bdb/build-unix is searched before other paths in any case.
(One cannot put LIBS=-L/usr/local/lib, because -lz et al are (correctly)
added before the specified contents of LIBS.)
Is there any other solution recommended?
My platform is HP-UX 10.20 with native compilers.

Here the excerpt with the offending command (the optimization warnings can
be ignored, they come because gcc compiler flags are hardcoded without need):
aCC -O3 -DDBUG_OFF -Aa +O3 +Olibcalls +Onolimit +DAportable -DHAVE_BROKEN_SNPRINTF 
-D_INCLUDE_LONGLONG -L/usr/local/lib -o mysqld sql_lex.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 violite.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 sql_parse.o sql_yacc.o sql_base.o table.o sql_select.o sql_insert.o 
sql_update.o sql_delete.o procedure.o item_uniq.o sql_test.o lmmrg.a ../heap/libheap.a 
../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a 
-lc_r -lz -lcrypt -lm -ldce
aCC: warning 901: unknown option: `-3': use +help for online documentation.
aCC: warning 928: option +O3 overrides previous setting of +O2
/usr/ccs/bin/ld: Unsatisfied symbols:
   db_create (code)
   db_env_create (code)

BTW, the compilation of innobase fails with
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../../include -I../include  -DHPUX -Dinline= -
I/opt/dce/include -I/usr/local/include  -O -DDBUG_OFF -Ae +O3 +Olibcalls +Onolim
it +DAportable  -DHAVE_BROKEN_SNPRINTF -c os0thread.c
cc: warning 454: Option +O3 overrides previous setting of +O2.
cc: "os0thread.c", line 29: error 1527: Incompatible types in cast: Must cast fr
om scalar to scalar or to void type.
cc: "os0thread.c", line 69: error 1554: Indirection must be through a pointer.
cc: "os0thread.c", line 69: warning 563: Argument #2 is not the correct type.
cc: "os0thread.c", line 69: error 1718: Types are not assignment-compatible.
cc: "os0thread.c", line 69: warning 563: Argument #3 is not the correct type.
cc: "os0thread.c", line 69: warning 604: Pointers are not assignment-compatible.
cc: "os0thread.c", line 69: warning 563: Argument #4 is not the correct type.
gmake[4]: *** [os0thread.o] Error 1
I have not yet analyzed the precise reason of the failure. Since it affects
thread functions and the platform is HP-UX 10.20, I am not sure whether
there is a solution at all.

Best regards,
        Lutz
-- 
Lutz Jaenicke                             [EMAIL PROTECTED]
BTU Cottbus               http://www.aet.TU-Cottbus.DE/personen/jaenicke/
Lehrstuhl Allgemeine Elektrotechnik                  Tel. +49 355 69-4129
Universitaetsplatz 3-4, D-03044 Cottbus              Fax. +49 355 69-4153

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