[EMAIL PROTECTED]:/home/install/bench/super-smack-1.3] ./configure --with-mysql
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking for sh... /bin/bash
checking for gcc... /opt/SUNWspro/bin/cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether /opt/SUNWspro/bin/cc accepts -g... yes
checking for /opt/SUNWspro/bin/cc option to accept ANSI C... none needed
checking whether we are using the GNU C++ compiler... yes
checking whether /usr/local/bin/g++ accepts -g... yes
checking how to run the C preprocessor... /opt/SUNWspro/bin/cc -E
checking for a BSD-compatible install... ./install-sh -c
checking whether ln -s works... yes
checking for flex... flex
checking for flex... (cached) flex
checking for yywrap in -lfl... no
checking for yywrap in -ll... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for bison... no
checking for byacc... no
checking for compress in -lz... yes
checking for crypt in -lcrypt... yes
checking for crypt... yes
checking for libmysqlclient...
checking for mysql_real_connect in -lmysqlclient... yes
checking for mysql.h...
checking for egrep... egrep
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking return type of signal handlers... void
checking for gettimeofday... yes
checking for strerror... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing default-1 commands


Building with the following options:

MySQL Support..................... yes
PostgreSQL Support................ no
Oracle Support.................... no

If this is not what you intended, please re-run configure.

Thanks for using super-smack!

###################
# Added -lsocket -lnsl to 
# LIBS = -L/usr/local/mysql/lib -lcrypt -lz  -lsocket -lnsl
# in src/Makefile
###################

###################
# Ran make and got:

make  all-recursive
Making all in src
/usr/local/bin/g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/mysql/include    
-m64 -c super-smack.cc
/usr/local/bin/g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/mysql/include    
-m64 -c client.cc
/usr/local/bin/g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/mysql/include    
-m64 -c engines.cc
/usr/local/bin/g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/mysql/include    
-m64 -c die.cc
/usr/local/bin/g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/mysql/include    
-m64 -c dictionary.cc
yacc  -d super-smack-yacc.yy && mv y.tab.c super-smack-yacc.cc
if test -f y.tab.h; then \
if cmp -s y.tab.h super-smack-yacc.h; then rm -f y.tab.h; else mv y.tab.h 
super-smack-yacc.h; fi; \
else :; fi
/usr/local/bin/g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/mysql/include    
-m64 -c super-smack-yacc.cc
flex   super-smack-lex.ll && mv lex.yy.c super-smack-lex.cc
/usr/local/bin/g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/mysql/include    
-m64 -c super-smack-lex.cc
/usr/local/bin/g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/mysql/include    
-m64 -c query.cc
query.cc: In member function `void Query_report::fd_send(int)':
query.cc:200: warning: cast from pointer to integer of different size
query.cc:200: warning: cast from pointer to integer of different size
query.cc:219: warning: cast from pointer to integer of different size
query.cc:219: warning: cast from pointer to integer of different size
/usr/local/bin/g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/mysql/include    
-m64 -c parse.cc
/usr/local/bin/g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/mysql/include    
-m64 -c libsmack.cc
/usr/local/bin/g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/mysql/include    
-m64 -c mysql-client.cc
/usr/local/bin/g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/mysql/include    
-m64 -c pg-client.cc
/usr/local/bin/g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/mysql/include    
-m64 -c ora-client.cc
/usr/local/bin/g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/mysql/include    
-m64 -c tcp_client.cc
In file included from tcp_client.cc:2:
tcp_client.h: In member function `TcpClient::operator void*()':
tcp_client.h:58: warning: cast to pointer from integer of different size
/usr/local/bin/g++  -m64 -lsocket -lnsl -lm -o super-smack  super-smack.o 
client.o engines.o die.o  dictionary.o super-smack-yacc.o super-smack-lex.o 
query.o parse.o  libsmack.o mysql-client.o pg-client.o ora-client.o 
tcp_client.o -L/usr/local/mysql/lib -lmysqlclient -L/usr/local/mysql/lib 
-lcrypt -lz  -lsocket -lnsl
Undefined                       first referenced
 symbol                             in file
yyerror(char const*)                super-smack-yacc.o
ld: fatal: Symbol referencing errors. No output written to super-smack
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `super-smack'
Current working directory /home/fmashraqi/install/bench/super-smack-1.3/src
*** Error code 1
The following command caused the error:
set fnord ; amf=$2; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='src'; for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (cd $subdir && make  $local_target) \
   || case "$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /home/fmashraqi/install/bench/super-smack-1.3
*** Error code 1
make: Fatal error: Command failed for target `all-recursive-am'


################################
# Modified src/super-smack-yacc.cc
from:         void yyerror(YYCONST char *);
to:           void yyerror(char *);
################################


################################
# Ran make again:
make  all-recursive
Making all in src
/usr/local/bin/g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/mysql/include    
-m64 -c super-smack-yacc.cc
/usr/local/bin/g++  -m64 -lsocket -lnsl -lm -o super-smack  super-smack.o 
client.o engines.o die.o  dictionary.o super-smack-yacc.o super-smack-lex.o 
query.o parse.o  libsmack.o mysql-client.o pg-client.o ora-client.o 
tcp_client.o -L/usr/local/mysql/lib -lmysqlclient -L/usr/local/mysql/lib 
-lcrypt -lz  -lsocket -lnsl
/usr/local/bin/g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/mysql/include    
-m64 -c gen-data.cc
/usr/local/bin/g++  -m64 -lsocket -lnsl -lm -o gen-data  gen-data.o die.o  
-L/usr/local/mysql/lib -lcrypt -lz  -lsocket -lnsl
/usr/local/bin/g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/mysql/include    
-m64 -c test-dictionary.cc
/usr/local/bin/g++  -m64 -lsocket -lnsl -lm -o test-dictionary  
test-dictionary.o dictionary.o die.o  libsmack.o  -L/usr/local/mysql/lib 
-lcrypt -lz  -lsocket -lnsl
/usr/local/bin/g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/mysql/include    
-m64 -c test-client.cc
/usr/local/bin/g++  -m64 -lsocket -lnsl -lm -o test-client  test-client.o 
client.o engines.o die.o  dictionary.o query.o libsmack.o mysql-client.o 
pg-client.o ora-client.o -L/usr/local/mysql/lib -lmysqlclient 
-L/usr/local/mysql/lib -lcrypt -lz  -lsocket -lnsl
/usr/local/bin/g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/mysql/include    
-m64 -c test_tcp_client.cc
In file included from test_tcp_client.cc:1:
tcp_client.h: In member function `TcpClient::operator void*()':
tcp_client.h:58: warning: cast to pointer from integer of different size
/usr/local/bin/g++  -m64 -lsocket -lnsl -lm -o test_tcp_client  
test_tcp_client.o tcp_client.o  -L/usr/local/mysql/lib -lcrypt -lz  -lsocket 
-lnsl

#################################
# then make install
Making install in src
/bin/bash ../mkinstalldirs /usr/local/bin
  .././install-sh -c  super-smack /usr/local/bin/super-smack
  .././install-sh -c  gen-data /usr/local/bin/gen-data
/bin/bash ./mkinstalldirs /usr/share/smacks /var/smack-data
cp -rp ./smacks/* /usr/share/smacks


#################################
# When trying to test:

$ super-smack
ld.so.1: super-smack: fatal: /usr/local/lib/libstdc++.so.5: wrong ELF class: 
ELFCLASS32
Killed


My env has:
CXXFLAGS=-m64
CFLAGS=-xarch=v9
CXX=/usr/local/bin/g++

My question is that when I have specified the -m64 flag, why am I getting 
CXXFLAGS warning?

Your assistance is greatly appreciated.

Frank

Message was edited by: 
        se99
 
 
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to