Problem to Compile

50 views
Skip to first unread message

Tralci

unread,
Feb 22, 2012, 11:49:39 AM2/22/12
to mod-ndb
Please help-me about this error

On centos 5.7 with mysql cluster 7.2 compiled

[root@i-5-108-VM mod_ndb-1.1-release-r652]# ./configure --mysql=/mysql/
mysqlc/bin/mysql_config --apxs=/usr/sbin/apxs
Server version: Apache/2.2.3
Server built: Oct 20 2011 17:00:12
Using Apache 2.2
/usr/bin/apu-1-config

Configuring with
mysql_config = /mysql/mysqlc/bin/mysql_config
apxs = /usr/sbin/apxs
apr-config = /usr/bin/apr-1-config
apu-config = /usr/bin/apu-1-config

Linking with -lmysys and -lmystrings

Created Makefile.

Removing out-of-date files.

Hello!

make : build mod_ndb
make install : install mod_ndb.so
make configtest : test configuration
make start : start a test server on port 3080 (see test.conf)
make stop : stop the test server
make restart : restart the test server

Thanks for trying mod_ndb!

[root@i-5-108-VM mod_ndb-1.1-release-r652]# make
g++ -c -I/usr/include/httpd -I/usr/include/apr-1 -I/mysql/mysqlc/
include -I/mysql/mysqlc/include/storage/ndb -I/mysql/mysqlc/include/
storage/ndb/ndbapi -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -fPIC -Wall -
O3 -o mod_ndb.o mod_ndb_ap20.cc
g++ -c -I/usr/include/httpd -I/usr/include/apr-1 -I/mysql/mysqlc/
include -I/mysql/mysqlc/include/storage/ndb -I/mysql/mysqlc/include/
storage/ndb/ndbapi -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -fPIC -Wall -
O3 -o Query.o Query.cc
g++ -c -I/usr/include/httpd -I/usr/include/apr-1 -I/mysql/mysqlc/
include -I/mysql/mysqlc/include/storage/ndb -I/mysql/mysqlc/include/
storage/ndb/ndbapi -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -fPIC -Wall -
O3 -o Execute.o Execute.cc
g++ -c -I/usr/include/httpd -I/usr/include/apr-1 -I/mysql/mysqlc/
include -I/mysql/mysqlc/include/storage/ndb -I/mysql/mysqlc/include/
storage/ndb/ndbapi -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -fPIC -Wall -
O3 -o MySQL_value.o MySQL_value.cc
In file included from /usr/include/httpd/ap_config.h:234,
from /usr/include/httpd/httpd.h:43,
from MySQL_value.cc:38:
/usr/include/httpd/ap_config_auto.h:198:1: warning: "PACKAGE_NAME"
redefined
In file included from /mysql/mysqlc/include/my_global.h:77,
from MySQL_value.cc:35:
/mysql/mysqlc/include/my_config.h:613:1: warning: this is the location
of the previous definition
In file included from /usr/include/httpd/ap_config.h:234,
from /usr/include/httpd/httpd.h:43,
from MySQL_value.cc:38:
/usr/include/httpd/ap_config_auto.h:201:1: warning: "PACKAGE_STRING"
redefined
In file included from /mysql/mysqlc/include/my_global.h:77,
from MySQL_value.cc:35:
/mysql/mysqlc/include/my_config.h:614:1: warning: this is the location
of the previous definition
In file included from /usr/include/httpd/ap_config.h:234,
from /usr/include/httpd/httpd.h:43,
from MySQL_value.cc:38:
/usr/include/httpd/ap_config_auto.h:204:1: warning: "PACKAGE_TARNAME"
redefined
In file included from /mysql/mysqlc/include/my_global.h:77,
from MySQL_value.cc:35:
/mysql/mysqlc/include/my_config.h:615:1: warning: this is the location
of the previous definition
In file included from /usr/include/httpd/ap_config.h:234,
from /usr/include/httpd/httpd.h:43,
from MySQL_value.cc:38:
/usr/include/httpd/ap_config_auto.h:207:1: warning: "PACKAGE_VERSION"
redefined
In file included from /mysql/mysqlc/include/my_global.h:77,
from MySQL_value.cc:35:
/mysql/mysqlc/include/my_config.h:616:1: warning: this is the location
of the previous definition
g++ -c -I/usr/include/httpd -I/usr/include/apr-1 -I/mysql/mysqlc/
include -I/mysql/mysqlc/include/storage/ndb -I/mysql/mysqlc/include/
storage/ndb/ndbapi -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -fPIC -Wall -
O3 -o MySQL_result.o MySQL_result.cc
In file included from /usr/include/httpd/ap_config.h:234,
from /usr/include/httpd/httpd.h:43,
from MySQL_result.cc:30:
/usr/include/httpd/ap_config_auto.h:198:1: warning: "PACKAGE_NAME"
redefined
In file included from /mysql/mysqlc/include/my_global.h:77,
from MySQL_result.cc:26:
/mysql/mysqlc/include/my_config.h:613:1: warning: this is the location
of the previous definition
In file included from /usr/include/httpd/ap_config.h:234,
from /usr/include/httpd/httpd.h:43,
from MySQL_result.cc:30:
/usr/include/httpd/ap_config_auto.h:201:1: warning: "PACKAGE_STRING"
redefined
In file included from /mysql/mysqlc/include/my_global.h:77,
from MySQL_result.cc:26:
/mysql/mysqlc/include/my_config.h:614:1: warning: this is the location
of the previous definition
In file included from /usr/include/httpd/ap_config.h:234,
from /usr/include/httpd/httpd.h:43,
from MySQL_result.cc:30:
/usr/include/httpd/ap_config_auto.h:204:1: warning: "PACKAGE_TARNAME"
redefined
In file included from /mysql/mysqlc/include/my_global.h:77,
from MySQL_result.cc:26:
/mysql/mysqlc/include/my_config.h:615:1: warning: this is the location
of the previous definition
In file included from /usr/include/httpd/ap_config.h:234,
from /usr/include/httpd/httpd.h:43,
from MySQL_result.cc:30:
/usr/include/httpd/ap_config_auto.h:207:1: warning: "PACKAGE_VERSION"
redefined
In file included from /mysql/mysqlc/include/my_global.h:77,
from MySQL_result.cc:26:
/mysql/mysqlc/include/my_config.h:616:1: warning: this is the location
of the previous definition
g++ -c -I/usr/include/httpd -I/usr/include/apr-1 -I/mysql/mysqlc/
include -I/mysql/mysqlc/include/storage/ndb -I/mysql/mysqlc/include/
storage/ndb/ndbapi -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -fPIC -Wall -
O3 -o config.o config.cc
g++ -c -I/usr/include/httpd -I/usr/include/apr-1 -I/mysql/mysqlc/
include -I/mysql/mysqlc/include/storage/ndb -I/mysql/mysqlc/include/
storage/ndb/ndbapi -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -fPIC -Wall -
O3 -o request_body.o request_body.cc
g++ -c -I/usr/include/httpd -I/usr/include/apr-1 -I/mysql/mysqlc/
include -I/mysql/mysqlc/include/storage/ndb -I/mysql/mysqlc/include/
storage/ndb/ndbapi -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -fPIC -Wall -
O3 -o handlers.o handlers.cc
g++ -c -I/usr/include/httpd -I/usr/include/apr-1 -I/mysql/mysqlc/
include -I/mysql/mysqlc/include/storage/ndb -I/mysql/mysqlc/include/
storage/ndb/ndbapi -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -fPIC -Wall -
O3 -o result_buffer.o result_buffer.cc
g++ -c -I/usr/include/httpd -I/usr/include/apr-1 -I/mysql/mysqlc/
include -I/mysql/mysqlc/include/storage/ndb -I/mysql/mysqlc/include/
storage/ndb/ndbapi -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -fPIC -Wall -
O3 -o output_format.o output_format.cc
g++ -c -I/usr/include/httpd -I/usr/include/apr-1 -I/mysql/mysqlc/
include -I/mysql/mysqlc/include/storage/ndb -I/mysql/mysqlc/include/
storage/ndb/ndbapi -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -fPIC -Wall -
O3 -o format_compiler.o format_compiler.cc
g++ -c -I/usr/include/httpd -I/usr/include/apr-1 -I/mysql/mysqlc/
include -I/mysql/mysqlc/include/storage/ndb -I/mysql/mysqlc/include/
storage/ndb/ndbapi -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -fPIC -Wall -
O3 -o format_dumper.o format_dumper.cc
g++ -c -I/usr/include/httpd -I/usr/include/apr-1 -I/mysql/mysqlc/
include -I/mysql/mysqlc/include/storage/ndb -I/mysql/mysqlc/include/
storage/ndb/ndbapi -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -fPIC -Wall -
O3 -o query_source.o query_source.cc
g++ -c -I/usr/include/httpd -I/usr/include/apr-1 -I/mysql/mysqlc/
include -I/mysql/mysqlc/include/storage/ndb -I/mysql/mysqlc/include/
storage/ndb/ndbapi -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -fPIC -Wall -
O3 -o JSON_encoding.o JSON_encoding.cc
( cd N-SQL ; g++ -c -I/usr/include/httpd -I/usr/include/apr-1 -I/
mysql/mysqlc/include -I/mysql/mysqlc/include/storage/ndb -I/mysql/
mysqlc/include/storage/ndb/ndbapi -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE
-fPIC -Wall -O3 -o ../NSQL_Parser.o Parser.cpp )
( cd N-SQL ; g++ -c -I/usr/include/httpd -I/usr/include/apr-1 -I/
mysql/mysqlc/include -I/mysql/mysqlc/include/storage/ndb -I/mysql/
mysqlc/include/storage/ndb/ndbapi -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE
-fPIC -Wall -O3 -o ../NSQL_Scanner.o Scanner.cpp )
( cd JSON ; g++ -c -I/usr/include/httpd -I/usr/include/apr-1 -I/mysql/
mysqlc/include -I/mysql/mysqlc/include/storage/ndb -I/mysql/mysqlc/
include/storage/ndb/ndbapi -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -fPIC -
Wall -O3 -o ../JSON_Parser.o Parser.cpp )
( cd JSON ; g++ -c -I/usr/include/httpd -I/usr/include/apr-1 -I/mysql/
mysqlc/include -I/mysql/mysqlc/include/storage/ndb -I/mysql/mysqlc/
include/storage/ndb/ndbapi -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -fPIC -
Wall -O3 -o ../JSON_Scanner.o Scanner.cpp )
LD_RUN_PATH=/mysql/mysqlc/lib g++ -shared -o mod_ndb.so mod_ndb.o
Query.o Execute.o MySQL_value.o MySQL_result.o config.o request_body.o
handlers.o result_buffer.o output_format.o format_compiler.o
format_dumper.o query_source.o JSON_encoding.o NSQL_Parser.o
NSQL_Scanner.o JSON_Parser.o JSON_Scanner.o -lndbclient -lmystrings -L/
mysql/mysqlc/lib -lmysqlclient -lpthread -lm -lrt -ldl -lmysys -lstdc+
+ -lrt
/usr/bin/ld: cannot find -lmystrings
collect2: ld returned 1 exit status
make: *** [mod_ndb.so] Error 1

Can you help-me ??
Reply all
Reply to author
Forward
0 new messages