List:General Discussion« Previous MessageNext Message »
From:Steve_HOUCHEN Date:April 22 1999 12:44pm
Subject:Re: Compilation error on AIX 4.3.2
View as plain text  
Monty,

     Thanks for the reply.  In the meantime, I found that the functions
were in my_pthread.c.  That file compiled okay in the client directory, but
failed in the mysys directory.  So, I copied the object files from client
to mysys -- and therefore, do not have the functions.  I admit that was a
stupid way to try to solve the problem.  Here is the compilation error that
I'm having in my_pthread.c when it is being compiled in the mysys
directory.  If we can solve this, I'm sure mysqld will link properly:

xlc_r -ma -O3 -qstrict -DHAVE_INT_8_16_32 -DDEFAULT_BASEDIR=\"/usr/local\"
-DHAVE_CONFIG_H -I./../include -I../include -I..  -O   -DDBUG_OFF -c
my_pthread.c
1506-330 (W) Option -qstrict only valid with optimization level 3.
"my_pthread.c", line 420.5: 1506-068 (S) Operation between types "struct
hostent*" and "int" is not allowed.

Thanks for your help,
Steve Houchen, steve_houchen@stripped
ENOVIA Corp.   (704) 944-8942   FAX: (704) 944-8888
10926 David Taylor Drive, Suite 300
Charlotte, NC  28262


Michael Widenius <monty@stripped> on 04/21/99 10:36:13 PM

Please respond to monty@stripped

To:   Steve HOUCHEN/dassault-systemes
cc:   mysql@stripped
Subject:  Compilation error on AIX 4.3.2





>>>>> "Steve" == Steve HOUCHEN <Steve_HOUCHEN@stripped> writes:
Steve> Hello,
Steve>      I am trying to compile MySQL 3.22.21 on AIX 4.3.2, and am
having an
Steve> error when linking msqld, in the sql directory.  Here is the error:
Steve> /bin/sh ../libtool --mode=link xlc_r -ma -O3 -qstrict
-DHAVE_INT_8_16_32 -O
Steve> -DDBUG_OFF  -o mysqld  item.o item_sum.o item_buff.o item_func.o
Steve> item_cmpfunc.o item_strfunc.o item_timefunc.o thr_malloc.o field.o
key.o
Steve> sql_class.o sql_list.o net_serv.o net_pkg.o lock.o my_lock.o
sql_string.o
Steve> sql_map.o mysqld.o password.o hash_filo.o hostname.o sql_lex.o
convert.o
Steve> sql_parse.o sql_yacc.o sql_base.o dfunc.o sql_select.o sql_insert.o
Steve> sql_update.o sql_delete.o procedure.o item_uniq.o sql_test.o log.o
init.o
Steve> derror.o sql_acl.o unireg.o time.o opt_range.o opt_sum.o records.o
Steve> filesort.o handler.o sql_db.o crebas.o sql_table.o sql_crypt.o
sql_load.o
Steve> mf_iocache.o field_conv.o sql_show.o sql_udf.o ../isam/libnisam.a
Steve> ../merge/libmerge.a ../heap/libheap.a ../mysys/libmysys.a
../dbug/libdbug.a
Steve> ../regex/libregex.a ../strings/libmystrings.a -ldl -lnsl_r -lm
-lcrypt
Steve> -lbind -lC
Steve> xlc_r -ma -O3 -qstrict -DHAVE_INT_8_16_32 -O -DDBUG_OFF -o mysqld
item.o
Steve> item_sum.o item_buff.o item_func.o item_cmpfunc.o item_strfunc.o
Steve> item_timefunc.o thr_malloc.o field.o key.o sql_class.o sql_list.o
Steve> net_serv.o net_pkg.o lock.o my_lock.o sql_string.o sql_map.o
mysqld.o
Steve> password.o hash_filo.o hostname.o sql_lex.o convert.o sql_parse.o
Steve> sql_yacc.o sql_base.o dfunc.o sql_select.o sql_insert.o sql_update.o
Steve> sql_delete.o procedure.o item_uniq.o sql_test.o log.o init.o
derror.o
Steve> sql_acl.o unireg.o time.o opt_range.o opt_sum.o records.o filesort.o
Steve> handler.o sql_db.o crebas.o sql_table.o sql_crypt.o sql_load.o
mf_iocache.o
Steve> field_conv.o sql_show.o sql_udf.o ../isam/libnisam.a
../merge/libmerge.a
Steve> ../heap/libheap.a ../mysys/libmysys.a ../dbug/libdbug.a
../regex/libregex.a
Steve> ../strings/libmystrings.a -ldl -lnsl_r -lm -lcrypt -lbind -lC
Steve> ld: 0711-317 ERROR: Undefined symbol: .my_pthread_setprio
Steve> ld: 0711-317 ERROR: Undefined symbol: .my_pthread_attr_setprio
Steve> ld: 0711-317 ERROR: Undefined symbol: .my_pthread_getprio
Steve> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
Steve> information.
Steve> gmake.aix: *** [mysqld] Error 8
Steve>      What do I need to link to resolve these undefined symbols?
hi!
The above functions are defined in mysys/my_pthread.c
The problem is that my_pthread.h should check if
HAVE_PTHREAD_SETPRIO_NP or HAVE_PTHREAD_SETPRIO is defined and in
this case define macros for the my_pthread_setprio functions.
Can you find out why my_pthread.c doesn't define the above functions ?
Regards,
Monty






Thread
Compilation error on AIX 4.3.2Steve_HOUCHEN21 Apr
  • Compilation error on AIX 4.3.2Michael Widenius22 Apr
Re: Compilation error on AIX 4.3.2Steve_HOUCHEN22 Apr
  • Re: Compilation error on AIX 4.3.2Michael Widenius25 Apr
Re: Compilation error on AIX 4.3.2Steve_HOUCHEN22 Apr
  • Re: Compilation error on AIX 4.3.2Michael Widenius25 Apr