#151: Oracle - authreg_storage uses Mysql?
-------------------+--------------------------------------------------------
Reporter: doehrm | Owner: smoku
Type: defect | Status: new
Priority: major | Component: Build
Version: 2.1.15 | Tracforge_linkmap:
Blocking: |
-------------------+--------------------------------------------------------
2.1.15
Solaris 10
Sun Studio 11
CC=cc CXX=CC \
./configure \
--prefix=/opt/jabber \
--enable-ssl \
--enable-oracle \
--disable-mysql \
--enable-debug \
--with-oracle-home=/opt/oracle \
--with-extra-include-path=/opt/openssl/include:/opt/jabber/include \
--with-extra-library-path=/opt/openssl/lib:/opt/jabber/lib
cc -DHAVE_CONFIG_H -I. -I.. -I../sm -I../c2s -I/opt/oracle/rdbms/demo
-I/opt/oracle/rdbms/public -I/opt/oracle/rdbms/demo
-I/opt/oracle/rdbms/public -I/opt/jabber/include -I/opt/openssl/include
-g -c storage_oracle.c -KPIC -DPIC -o .libs/stor
age_oracle_la-storage_oracle.o
cc -DHAVE_CONFIG_H -I. -I.. -I../sm -I../c2s -I/opt/oracle/rdbms/demo
-I/opt/oracle/rdbms/public -I/opt/oracle/rdbms/demo
-I/opt/oracle/rdbms/public -I/opt/jabber/include -I/opt/openssl/include
-g -c authreg_mysql.c -KPIC -DPIC -o .libs/authr
eg_oracle_la-authreg_mysql.o
"authreg_mysql.c", line 24: cannot find include file: <mysql.h>
"authreg_mysql.c", line 32: syntax error before or at: MYSQL
"authreg_mysql.c", line 40: warning: no explicit type given
"authreg_mysql.c", line 40: syntax error before or at: *
"authreg_mysql.c", line 40: warning: old-style declaration or incorrect
type for: _ar_mysql_get_user_tuple
"authreg_mysql.c", line 42: undefined symbol: MYSQL
"authreg_mysql.c", line 42: undefined symbol: conn
"authreg_mysql.c", line 42: syntax error before or at: =
"authreg_mysql.c", line 45: undefined symbol: res
"authreg_mysql.c", line 47: warning: implicit function declaration:
mysql_ping
"authreg_mysql.c", line 55: warning: implicit function declaration:
mysql_real_escape_string
"authreg_mysql.c", line 62: warning: implicit function declaration:
mysql_query
"authreg_mysql.c", line 63: warning: implicit function declaration:
mysql_error
"authreg_mysql.c", line 67: warning: implicit function declaration:
mysql_store_result
"authreg_mysql.c", line 73: warning: implicit function declaration:
mysql_num_rows
"authreg_mysql.c", line 74: warning: implicit function declaration:
mysql_free_result
"authreg_mysql.c", line 78: warning: improper pointer/integer combination:
op "="
"authreg_mysql.c", line 79: cannot recover from previous errors
In storage/Makefile.am I see
if STORAGE_ORACLE
pkglib_LTLIBRARIES += authreg_oracle.la storage_oracle.la
authreg_oracle_la_SOURCES = authreg_mysql.c
authreg_oracle_la_CPPFLAGS = $(ORACLE_CPPFLAGS)
authreg_oracle_la_LDFLAGS = $(MODULE_LDFLAGS) $(ORACLE_LDFLAGS)
authreg_oracle_la_LIBADD = $(MODULE_LIBADD) $(ORACLE_LIBS)
storage_oracle_la_SOURCES = storage_oracle.c
storage_oracle_la_CPPFLAGS = $(ORACLE_CPPFLAGS)
storage_oracle_la_LDFLAGS = $(MODULE_LDFLAGS) $(ORACLE_LDFLAGS)
storage_oracle_la_LIBADD = $(MODULE_LIBADD) $(ORACLE_LIBS)
endif
Why is here authreg_mysql.c used and not authreg_oracle.c?
Any special reason for this?
Regards,
Markus
--
Ticket URL: <http://jabberd2.xiaoka.com/ticket/151>
jabberd2 <http://jabberd2.xiaoka.com/>
versatile XMPP server
_______________________________________________
Jabberd2 mailing list
[email protected]
http://lists.xiaoka.com/listinfo.cgi/jabberd2-xiaoka.com