[MDEV-697] LP:705213 - Compiling with BUILD/compile-pentium64-debug-all fails Created: 2011-01-20  Updated: 2012-10-31  Resolved: 2012-10-31

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 5.3.9
Fix Version/s: 5.5.28a, 5.3.10, 5.2.13

Type: Bug Priority: Minor
Reporter: Hakan Küçükyılmaz (Inactive) Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: Launchpad

Attachments: XML File LPexportBug705213.xml    

 Description   

Compiling with BUILD/compile-pentium64-debug-all fails on Ubuntu 10.10 x86_64 and openSUSE 11.1 x86_64

How to repeat:

  • Use lp:maria/5.2
  • Run BUILD/compile-pentium64-debug-all
  • See
    libtool: compile: ccache g++ -DHAVE_CONFIG_H -DNDB_DEBUG_FULL -DVM_TRACE -DERROR_INSERT -DARRAY_GUARD -I. -I../../../../../../include -I. -I../../../../../../include -I../../../../../../storage/ndb/include -I../../../../../../include -I../../../../../../mysys -I../../../../../../storage/ndb/include -I../../../../../../storage/ndb/include/kernel -I../../../../../../storage/ndb/include/transporter -I../../../../../../storage/ndb/include/debugger -I../../../../../../storage/ndb/include/mgmapi -I../../../../../../storage/ndb/include/mgmcommon -I../../../../../../storage/ndb/include/ndbapi -I../../../../../../storage/ndb/include/util -I../../../../../../storage/ndb/include/portlib -I../../../../../../storage/ndb/include/logger -g -Wall -Wextra -Wunused -Wwrite-strings -Wno-unused-parameter -Wnon-virtual-dtor -felide-constructors -fno-exceptions -fno-rtti -mtune=native -m64 -DUNIV_MUST_NOT_INLINE -DEXTRA_DEBUG -DFORCE_INIT_OF_VARS -DSAFEMALLOC -DPEDANTIC_SAFEMALLOC -fno-implicit-templates -fno-exceptions -fno-rtti -MT DictTabInfo.lo -MD -MP -MF .deps/DictTabInfo.Tpo -c DictTabInfo.cpp -fPIC -DPIC -o .libs/DictTabInfo.o
    In file included from ../../../../../../storage/ndb/include/kernel/signaldata/DictTabInfo.hpp:24,
    from DictTabInfo.cpp:17:
    ../../../../../../storage/ndb/include/util/NdbSqlUtil.hpp:23: error: conflicting declaration ‘typedef struct charset_info_st CHARSET_INFO’
    ../../../../../../include/m_ctype.h:41: error: ‘CHARSET_INFO’ has a previous declaration as ‘typedef const struct charset_info_st CHARSET_INFO’
    make[6]: *** [DictTabInfo.lo] Error 1


 Comments   
Comment by Hakan Küçükyılmaz (Inactive) [ 2011-01-20 ]

Re: Compiling with BUILD/compile-pentium64-debug-all fails
In lp:maria/5.1 it fails with:
libtool: link: ccache gcc -Wall -Wextra -Wunused -Wwrite-strings -Wno-strict-aliasing -Werror -DFORCE_INIT_OF_VARS -Wno-unused-parameter -g -Wall -Wextra -Wunused -Wwrite-strings -Wno-unused-parameter -Wnon-virtual-dtor -felide-constructors -fno-exceptions -fno-rtti -mtune=native -m64 -DUNIV_MUST_NOT_INLINE -DEXTRA_DEBUG -DFORCE_INIT_OF_VARS -DSAFEMALLOC -DPEDANTIC_SAFEMALLOC -fno-implicit-templates -fno-exceptions -fno-rtti -rdynamic -o mysqltest_embedded mysqltest.o ../../libmysqld/.libs/libmysqld.a -ldl ../../storage/ndb/src/.libs/libndbclient.a ../../regex/.libs/libregex.a -lz ../../extra/yassl/src/.libs/libyassl.a ../../extra/yassl/taocrypt/src/.libs/libtaocrypt.a -lrt -lresolv -lcrypt -lnsl -lm -lpthread
../../storage/ndb/src/.libs/libndbclient.a(mgmapi.o): In function `ndb_mgm_get_configuration':
/home/hakan/work/monty_program/maria-5.1/storage/ndb/src/mgmapi/mgmapi.cpp:2179: undefined reference to `base64_needed_decoded_length'
/home/hakan/work/monty_program/maria-5.1/storage/ndb/src/mgmapi/mgmapi.cpp:2180: undefined reference to `base64_decode'
collect2: ld returned 1 exit status
make[4]: *** [mysqltest_embedded] Error 1

In lp:maria/5.3 it fails with:
make[6]: Entering directory `/home/hakan/work/monty_program/maria-5.3/storage/ndb/src/common/debugger/signaldata'
/bin/bash ../../../../../../libtool --tag=CXX --mode=compile ccache g++ -DHAVE_CONFIG_H -DNDB_DEBUG_FULL -DVM_TRACE -DERROR_INSERT -DARRAY_GUARD -I. -I../../../../../../include -I. -I../../../../../../include -I../../../../../../storage/ndb/include -I../../../../../../include -I../../../../../../mysys -I../../../../../../storage/ndb/include -I../../../../../../storage/ndb/include/kernel -I../../../../../../storage/ndb/include/transporter -I../../../../../../storage/ndb/include/debugger -I../../../../../../storage/ndb/include/mgmapi -I../../../../../../storage/ndb/include/mgmcommon -I../../../../../../storage/ndb/include/ndbapi -I../../../../../../storage/ndb/include/util -I../../../../../../storage/ndb/include/portlib -I../../../../../../storage/ndb/include/logger -g -Wall -Wextra -Wunused -Wwrite-strings -Wno-unused-parameter -Wnon-virtual-dtor -felide-constructors -fno-exceptions -fno-rtti -mtune=native -m64 -DUNIV_MUST_NOT_INLINE -DEXTRA_DEBUG -DFORCE_INIT_OF_VARS -DSAFEMALLOC -DPEDANTIC_SAFEMALLOC -fno-implicit-templates -fno-exceptions -fno-rtti -MT DictTabInfo.lo -MD -MP -MF .deps/DictTabInfo.Tpo -c -o DictTabInfo.lo DictTabInfo.cpp
libtool: compile: ccache g++ -DHAVE_CONFIG_H -DNDB_DEBUG_FULL -DVM_TRACE -DERROR_INSERT -DARRAY_GUARD -I. -I../../../../../../include -I. -I../../../../../../include -I../../../../../../storage/ndb/include -I../../../../../../include -I../../../../../../mysys -I../../../../../../storage/ndb/include -I../../../../../../storage/ndb/include/kernel -I../../../../../../storage/ndb/include/transporter -I../../../../../../storage/ndb/include/debugger -I../../../../../../storage/ndb/include/mgmapi -I../../../../../../storage/ndb/include/mgmcommon -I../../../../../../storage/ndb/include/ndbapi -I../../../../../../storage/ndb/include/util -I../../../../../../storage/ndb/include/portlib -I../../../../../../storage/ndb/include/logger -g -Wall -Wextra -Wunused -Wwrite-strings -Wno-unused-parameter -Wnon-virtual-dtor -felide-constructors -fno-exceptions -fno-rtti -mtune=native -m64 -DUNIV_MUST_NOT_INLINE -DEXTRA_DEBUG -DFORCE_INIT_OF_VARS -DSAFEMALLOC -DPEDANTIC_SAFEMALLOC -fno-implicit-templates -fno-exceptions -fno-rtti -MT DictTabInfo.lo -MD -MP -MF .deps/DictTabInfo.Tpo -c DictTabInfo.cpp -fPIC -DPIC -o .libs/DictTabInfo.o
In file included from ../../../../../../storage/ndb/include/kernel/signaldata/DictTabInfo.hpp:24,
from DictTabInfo.cpp:17:
../../../../../../storage/ndb/include/util/NdbSqlUtil.hpp:23: error: conflicting declaration ‘typedef struct charset_info_st CHARSET_INFO’
../../../../../../include/m_ctype.h:41: error: ‘CHARSET_INFO’ has a previous declaration as ‘typedef const struct charset_info_st CHARSET_INFO’
make[6]: *** [DictTabInfo.lo] Error 1

Comment by Rasmus Johansson (Inactive) [ 2011-01-20 ]

Launchpad bug id: 705213

Comment by Elena Stepanova [ 2012-10-31 ]

Cannot build 5.3 with BUILD/compile-pentium64-debug-all either
NdbCondition.c:131:7: error: variable 'result' set but not used [-Werror=unused-but-set-variable]

Comment by Sergei Petrunia [ 2012-10-31 ]

The errors are from compiling NDB cluster. MariaDB doesn't support cluster (there is no point - if you want to use the cluster, you need to get a special mysql-cluster tree which has lots of cluster features that the base version does not have).

Generated at Thu Feb 08 06:30:41 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.