Opensuse 11.1
Hi,
Has anyone tried the novell cliuent on opensuse 11.1?
I have tried the released version for sled10 sp2 and the beta version for opensuse 11 with the same result.
I know it is not supported but has anyone got it to work ?
error: Failed dependencies:
libbfd-2.16.91.0.5.so is needed by novell-xtier-base-3.1.6-0.8.i586
libldap-2.3.so.0 is needed by novell-ui-base-3.0.b506-1.3.i586
libldap-2.3.so.0 is needed by novell-qtgui-3.0.b508-0.6.i586
[ncl_install] Upgrading (optional rpm) novell-konqueror-plugin...
error: Failed dependencies:
novell-ui-base is needed by novell-konqueror-plugin-3.0.b506-1.3.i586
novell-qtgui is needed by novell-konqueror-plugin-3.0.b506-1.3.i586
libABS.so is needed by novell-konqueror-plugin-3.0.b506-1.3.i586
libNCP.so is needed by novell-konqueror-plugin-3.0.b506-1.3.i586
libNDS.so is needed by novell-konqueror-plugin-3.0.b506-1.3.i586
libNFS.so is needed by novell-konqueror-plugin-3.0.b506-1.3.i586
libcallnx.so.1 is needed by novell-konqueror-plugin-3.0.b506-1.3.i586
libclnlnx.so.1 is needed by novell-konqueror-plugin-3.0.b506-1.3.i586
libclxlnx.so.1 is needed by novell-konqueror-plugin-3.0.b506-1.3.i586
libcpl.so is needed by novell-konqueror-plugin-3.0.b506-1.3.i586
libnclgeneral.so is needed by novell-konqueror-plugin-3.0.b506-1.3.i586
libncplnx.so.1 is needed by novell-konqueror-plugin-3.0.b506-1.3.i586
libncpscanner.so is needed by novell-konqueror-plugin-3.0.b506-1.3.i586
libnetlnx.so.1 is needed by novell-konqueror-plugin-3.0.b506-1.3.i586
libslpscanner.so is needed by novell-konqueror-plugin-3.0.b506-1.3.i586
[ncl_install] ERROR: Upgrade of the novell-konqueror-plugin rpm failed.
ncl_install] Upgrading (optional rpm) novell-nautilus-plugin...
error: Failed dependencies:
novell-qtgui is needed by novell-nautilus-plugin-3.0.b508-0.3.i586
gtk is needed by novell-nautilus-plugin-3.0.b508-0.3.i586
libABS.so is needed by novell-nautilus-plugin-3.0.b508-0.3.i586
libNCP.so is needed by novell-nautilus-plugin-3.0.b508-0.3.i586
libNFS.so is needed by novell-nautilus-plugin-3.0.b508-0.3.i586
libcpl.so is needed by novell-nautilus-plugin-3.0.b508-0.3.i586
libgailutil.so.17 is needed by novell-nautilus-plugin-3.0.b508-0.3.i586
libglitz.so.1 is needed by novell-nautilus-plugin-3.0.b508-0.3.i586
libnclgeneral.so is needed by novell-nautilus-plugin-3.0.b508-0.3.i586
libncpscanner.so is needed by novell-nautilus-plugin-3.0.b508-0.3.i586
libslpscanner.so is needed by novell-nautilus-plugin-3.0.b508-0.3.i586
[ncl_install] ERROR: Upgrade of the novell-nautilus-plugin rpm failed.
[QUOTE=joakim_ganse;1710733]Hi,
Has anyone tried the novell cliuent on opensuse 11.1?
I have tried the released version for sled10 sp2 and the beta version for opensuse 11 with the same result.
I know it is not supported but has anyone got it to work ?
Well this certainly was quite a bit of diggling around but I've finally got it working!
I can't find the post just now but ackitsme posted a how-to for the client for OpenSUSE 10.2 to work in 11.0, and I followed his tracks initially and then found a few new things needed.
You must have gcc, gtk and kdelibs3 (for us Gnome users) installed, so when logged in as root:
yast -i gcc
yast -i gtk
yast -i kdelibs3
Google for and download binutils-2.18.50.20080409-11.1.i586.rpm
Install binutils with rpm -i force binutils-2.18.50.20080409-11.1.i586.rpm
cd /usr/lib
ln -s libbfd-2.18.50.20080409-11.1.so libbfd-2.17.50.0.5.so
Download the Novell Client 2.0 BETA for OpenSUSE 11
cd /media/cdrom (or the location of the client download)
cd suse/i586
rpm -U nodeps novell-xtier-base-3.1.5-6.23.i586.rpm
Run the ncl_install script from the client media
Edit /etc/init.d/novfsd script to comment out lines 87 and 88 to look like:
#Rebuild the novfs if needed
#cd /opt/novell/ncl/src/novfs
#./mk_novfs
Reboot the system then check for the novell daemons/services:
ps -A | grep nov
and you should have these:
3485 ? 00:00:00 novell-xregd
3509 ? 00:00:00 novfs_ST
3521 ? 00:00:01 novfsd
Now the Novell Client should work.
~Don
Similar Messages
-
2.3.11 and 2.4.13 fail tests on OpenSuse 10.3 x86_64
I am trying to get php and perl API of BDBXML 2.3.11 and 2.4.13 running on OpenSuse 10.3 x86_64
when using --enable-perl the perl tests fail so i tried to run the test suite and compare it against 32bit builds.
2.3.11
after changing dbxml/dist/configure.ac like this:
367c367
< LIBTSO_MODSUFFIX=@MODSUFFIX@
LIBTSO_MODSUFFIX=$MODSUFFIX'make test' in dbxml/build_unix produces a ALL.OUT
using:
grep "^FAIL" -A 1 -B 1 dbxml-2.3.11/dbxml/build_unix/ALL.OUTstill produces lots of output. Since the 32bit version is working I compared the output produced on a 32bit ubuntu 07.10 with 64bit OpenSuse 10.3 which showed that following errors only occured on the 64bit system:
Xml003.3.1c: Put/get on both DB's
FAIL:10:16:44 (00:00:00) dbxml_dump/dbxml_load(3.3.1.dbxml:unexpected hexadecimal value ' '
load 3.3.1.dbxml-dumpload: Error: Invalid argument): expected 0, got 1
FAIL:10:16:44 (00:00:00) Dump/load of 3.3.1.dbxml failed.
8.8: Query timeout
FAIL: should not have gotten here
FAIL:10:17:04 (00:00:00) 8.8.8 returned error value 1
FAIL:10:17:04 (00:00:00) 8.8.8: expected "1", got "0"
8.8: Container not found
12.4.1: update with duplicate index entries
FAIL:10:21:41 (00:00:00) dbxml_dump/dbxml_load(12.4.1.dbxml:unexpected hexadecimal value ' '
load 12.4.1.dbxml-dumpload: Error: Invalid argument): expected 0, got 1
FAIL:10:21:41 (00:00:00) Dump/load of 12.4.1.dbxml failed.there are more errors but they are not unique to the 64bit system. The shown messages repeat for different test settings(wholedoc/node - storage ...)
the errors occurring in 3.3.1c and 12.4.1 can also be reproduced using dbxml,dbxml_dump and dbxml_load:
./dbxml -h /tmp
dbxml>createcon test.dbxml
dbxml>putdoc phone1 '<phone/>'
dbxml>quit
./dbxml_dump -h /tmp/ -f /tmp/dbxml_2.3.11_test.dbxml.dump test.dbxml
./dbxml_load -h /tmp/ -f /tmp/dbxml_2.3.11_test.dbxml.dump test2.dbxml
2.4.13
The documentation states that the test should be run from within the tclsh, but I think make test should be supported too. (make test only works after adapting pathes to new location in dbxml/test/tcl/)
similar procedure as above shows that the bug responsible for failing 3.3.1c and 12.4.1 is fixed
and 8.8.8 still fails.
Having a look at 8.8.8 my assumption is that the test fails simply because the machine is too fast (2.13Ghz Core2Duo) and executes the test query before the set timeout is triggered.
Now back to perl:
2.3.11 tests fail with:
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, '../blib/lib', '../blib/arch')" t/XmlManager.t
t/XmlManager....ok 43/89BDB XML: unexpected hexadecimal value ' '
failed
Error: Invalid argument in t/XmlManager.t, line 350
# Looks like you planned 89 tests but only ran 51.
t/XmlManager....dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 52-89
Failed 38/89 tests, 57.30% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
t/XmlManager.t 255 65280 89 76 85.39% 52-89
Failed 1/1 test scripts, 0.00% okay. 38/89 subtests failed, 57.30% okay.after wrapping the call to loadContainer in test 51 in eval {} catch{}
the output looks like this (no further failures)
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, '../blib/lib', '../blib/arch')" t/XmlManager.t
t/XmlManager....ok 1/89BDB XML: unexpected hexadecimal value ' '
failed with std exception:Error: Invalid argument in t/XmlManager.t, line 350
# Failed test 'dump and load failed'
# in t/XmlManager.t at line 363.
t/XmlManager....ok 53/89# Looks like you failed 1 test of 89.
t/XmlManager....dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 52
Failed 1/89 tests, 98.88% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
t/XmlManager.t 1 256 89 1 1.12% 52
Failed 1/1 test scripts, 0.00% okay. 1/89 subtests failed, 98.88% okay.luckily this is the only test that fails:
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, '../blib/lib', '../blib/arch')" t/*.t
Failed Test Stat Wstat Total Fail Failed List of Failed
t/XmlManager.t 1 256 89 1 1.12% 522.4.13 tests fail with:
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, '../blib/lib', '../blib/arch')" t/*.t
Failed Test Stat Wstat Total Fail Failed List of Failed
t/XmlManager.t 1 256 89 1 1.12% 43
t/XmlQueryContext.t 255 65280 33 62 187.88% 3-33
t/XmlValue.t 1 256 248 1 0.40% 245
looking at XmlManager test shows that it is not the same as above but something else
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, '../blib/lib', '../blib/arch')" t/XmlManager.t
t/XmlManager....ok 32/89
# Failed test 'getIndexNodes'
# in t/XmlManager.t at line 275.
t/XmlManager....ok 52/89# Looks like you failed 1 test of 89.
t/XmlManager....dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 43
Failed 1/89 tests, 98.88% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
t/XmlManager.t 1 256 89 1 1.12% 43
Failed 1/1 test scripts, 0.00% okay. 1/89 subtests failed, 98.88% okay.The other two tests seem to fail because the tests are not correct, but i haven't had the time to look at them yet. Here is the output:
t/XmlQueryContext..........ok 1/33Bareword "XmlQueryContext::DeadValues" not allowed while "strict subs" in use at t/XmlQueryContext.t line 194, <DATA> line 225.
Bareword "XmlQueryContext::DeadValues" not allowed while "strict subs" in use at t/XmlQueryContext.t line 195, <DATA> line 225.
Execution of t/XmlQueryContext.t aborted due to compilation errors.
# Looks like you planned 33 tests but only ran 2.
# Looks like your test died just after 2.
t/XmlQueryContext..........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 3-33
Failed 31/33 tests, 6.06% okay
t/XmlValue.................ok 1/248
# Failed test 'getLocalName'
# in t/XmlValue.t at line 410.
# got: ''
# expected: '#document'
t/XmlValue.................NOK 245# Looks like you failed 1 test of 248.
t/XmlValue.................dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 245
Failed 1/248 tests, 99.60% okaySo my questions are:
1. can and will the fix for dump/load be back ported to 2.3.11
2. is my assumption about 8.8.8 correct
3. is there a patch underway for perl on 2.4.13?
4. were there other issues in 2.3.11 that have been fixed in 2.4.13 but not back ported. especially regarding perl and php APIs on 64bit platforms.
I noticed that at least the patch provided in: PHP / BDB XML works fine on Red Hat Fedora 5, not on SuSE 10.2/Athlon 64 by djimenez was not incorporated into 2.3.11 (2.4.13 seems to be fixed)
5. since there seems to be no publicly available php test suite yet, will there be one in the near future?
all comments welcome,
thanks
Gordonfor anyone interested this is a patch for 2.3.11 that backports 64bit php fixes from 2.4.13. It also contains some other changes:
-additional php possibly wrong usage of long instead of int on 64 bit in db-4.5.20
-perl see: Re: perl script segfaults on putDocument
-dbxml tcl test: configure.ac LIBTSO_MODSUFFIX and setting the default tcl test to "run_all" instead of "run_xml"
Please note: The code looks a bit strange because the [ i ] access into an array is interpreted by the forum software and converted to <i>. So you cannot directly copy the patch from browser but need to copy the raw html and modify it (e.g. pass it through sed).
you'll need the <pre> </pre> part from this post and exchange <i> for [ i ] (without spaces) and <br> for '\n'. Maybe it will work. :-)
diff -Naur -x '*xerces-c-src*' -x '*build_unix*' -x '*configure' -x '*Builder.pm' -x '*More.pm' -x'*const-c.inc' -x '*setup.py' dbxml-2.3.11.orig/db-4.5.20/php_db4/db4.cpp dbxml-2.3.11-64/db-4.5.20/php_db4/db4.cpp
--- dbxml-2.3.11.orig/db-4.5.20/php_db4/db4.cpp 2006-09-16 03:20:58.000000000 +0200
+++ dbxml-2.3.11-64/db-4.5.20/php_db4/db4.cpp 2008-05-30 18:35:43.000000000 +0200
@@ -1203,7 +1203,7 @@
DB_TXN *dbtxn = NULL;
zval *dbtxn_obj = NULL;
char file = NULL, database = NULL;
- long filelen = 0, databaselen = 0;
+ int filelen = 0, databaselen = 0;
DBTYPE type = DB_BTREE;
u_int32_t flags = DB_CREATE;
int mode = 0;
@@ -2015,7 +2015,7 @@
DbEnv *dbe;
zval *self;
char *home;
- long homelen;
+ int homelen;
u_int32_t flags = 0;
self = getThis();
getDbEnvFromThis(dbenv);
@@ -2035,7 +2035,7 @@
DB_ENV *dbenv;
zval *self;
char *dir;
- long dirlen;
+ int dirlen;
self = getThis();
getDbEnvFromThis(dbenv);
if(zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &dir, &dirlen) == FAILURE)
diff -Naur -x '*xerces-c-src*' -x '*build_unix*' -x '*configure' -x '*Builder.pm' -x '*More.pm' -x'*const-c.inc' -x '*setup.py' dbxml-2.3.11.orig/dbxml/dist/configure.ac dbxml-2.3.11-64/dbxml/dist/configure.ac
--- dbxml-2.3.11.orig/dbxml/dist/configure.ac 2007-01-19 16:52:44.000000000 +0100
+++ dbxml-2.3.11-64/dbxml/dist/configure.ac 2008-06-02 18:30:41.000000000 +0200
@@ -364,7 +364,7 @@
LIBJSO_LN_INSTALL="test -f \$(libjso_base)-\$(SOVERSION).dylib && \$(ln) -f -s \$(libjso_base)-\$(SOVERSION).dylib \$(libjso_base)-\$(SOVERSION).jnilib";;
LIBTSO_MODULE="-module"
- LIBTSO_MODSUFFIX=@MODSUFFIX@
+ LIBTSO_MODSUFFIX=$MODSUFFIX
LIBJSO_LN_BUILD=""
LIBJSO_LN_INSTALL="";;
esac
diff -Naur -x '*xerces-c-src*' -x '*build_unix*' -x '*configure' -x '*Builder.pm' -x '*More.pm' -x'*const-c.inc' -x '*setup.py' dbxml-2.3.11.orig/dbxml/src/dbxml/db_rdbt.c dbxml-2.3.11-64/dbxml/src/dbxml/db_rdbt.c
--- dbxml-2.3.11.orig/dbxml/src/dbxml/db_rdbt.c 2008-04-16 17:46:53.000000000 +0200
+++ dbxml-2.3.11-64/dbxml/src/dbxml/db_rdbt.c 2008-06-04 18:01:55.000000000 +0200
@@ -206,7 +206,7 @@
break;
buf[linelen++] = '\0';
} else
- linelen = strlen(buf) + 1;
+ linelen = (int) strlen(buf) + 1;
start += linelen;
if (name != NULL) {
diff -Naur -x '*xerces-c-src*' -x '*build_unix*' -x '*configure' -x '*Builder.pm' -x '*More.pm' -x'*const-c.inc' -x '*setup.py' dbxml-2.3.11.orig/dbxml/src/dbxml/DbWrapper.cpp dbxml-2.3.11-64/dbxml/src/dbxml/DbWrapper.cpp
--- dbxml-2.3.11.orig/dbxml/src/dbxml/DbWrapper.cpp 2008-04-16 17:46:53.000000000 +0200
+++ dbxml-2.3.11-64/dbxml/src/dbxml/DbWrapper.cpp 2008-06-04 20:33:18.000000000 +0200
@@ -219,7 +219,7 @@
int version, ret, t_ret;
DBTYPE dbtype;
char *subdb;
- u_int32_t read_flags;
+ u_int32_t read_flags, tflags;
Dbt key, data;
db_recno_t recno, datarecno;
DB_ENV *dbenv = environment_ ? environment_->get_DB_ENV() : 0;
@@ -252,11 +252,14 @@
db_.err(ENOMEM, NULL);
goto err;
+
+ // work around gcc optimizer issue that seems to modify
+ // read_flags (4.1.1 on 64-bit linux)
+ tflags = read_flags;
/* Get each key/data pair and add them to the database. */
for (recno = 1;; ++recno) {
if ((ret = __db_rdbt(dbenv, key.get_DBT(), data.get_DBT(),
- read_flags, read_callback, in, lineno)) != 0) {
+ tflags, read_callback, in, lineno)) != 0) {
if (ret == EOF)
ret = 0;
break;
@@ -267,7 +270,7 @@
break;
case DB_KEYEXIST:
db_.errx("line %d: key already exists, not loaded:", *lineno);
- dbenv->prdbt(key.get_DBT(), read_flags & DB_READ_PRINTABLE,
+ dbenv->prdbt(key.get_DBT(), tflags & DB_READ_PRINTABLE,
0, &std::cerr, pr_callback, 0);
break;
default:
@@ -602,9 +605,9 @@
// but if incrementing the last byte results in a carry
// (value overflows and goes back to zero), then we have
// to increment the last-but-one byte - and so on.
- char maxPtr = (char )dbt.get_data();
+ unsigned char maxPtr = (unsigned char )dbt.get_data();
u_int32_t maxSize = dbt.get_size();
- char *pos = maxPtr + maxSize;
+ unsigned char *pos = maxPtr + maxSize;
for(--pos; pos >= maxPtr; --pos) {
++(*pos);
if(*pos != 0) break;
diff -Naur -x '*xerces-c-src*' -x '*build_unix*' -x '*configure' -x '*Builder.pm' -x '*More.pm' -x'*const-c.inc' -x '*setup.py' dbxml-2.3.11.orig/dbxml/src/perl/DbXml/DbXml.xs dbxml-2.3.11-64/dbxml/src/perl/DbXml/DbXml.xs
--- dbxml-2.3.11.orig/dbxml/src/perl/DbXml/DbXml.xs 2006-11-22 23:56:13.000000000 +0100
+++ dbxml-2.3.11-64/dbxml/src/perl/DbXml/DbXml.xs 2008-06-06 17:35:46.000000000 +0200
@@ -1313,20 +1313,20 @@
else if (sv_derived_from(contents, "XmlInputStream"))
XmlInputStream *s = GetObjPointer(contents, XmlInputStream);
+ ClearObjPointer(contents);
if (txn)
RETVAL = THIS->putDocument(*txn, name, s, *context, flags);
else
RETVAL = THIS->putDocument(name, s, *context, flags);
- ClearObjPointer(contents);
else if (sv_derived_from(contents, "XmlEventReader"))
XmlEventReader *s = GetObjPointer(contents, XmlEventReader);
+ ClearObjPointer(contents);
if (txn)
RETVAL = THIS->putDocument(*txn, name, s, context, flags);
else
RETVAL = THIS->putDocument(name, s, context, flags);
- ClearObjPointer(contents);
else
croak("putDocument parameter 2 should be an XmlInputStream, XmlEventReader or a string");
@@ -1560,7 +1560,7 @@
INIT:
MY_TRY
CLEANUP:
- ClearObjPointer(ST(1));
+ ClearObjPointer(ST(1));
MY_CATCH
string
diff -Naur -x '*xerces-c-src*' -x '*build_unix*' -x '*configure' -x '*Builder.pm' -x '*More.pm' -x'*const-c.inc' -x '*setup.py' dbxml-2.3.11.orig/dbxml/src/perl/DbXml/t/XmlManager.t dbxml-2.3.11-64/dbxml/src/perl/DbXml/t/XmlManager.t
--- dbxml-2.3.11.orig/dbxml/src/perl/DbXml/t/XmlManager.t 2006-11-22 17:02:31.000000000 +0100
+++ dbxml-2.3.11-64/dbxml/src/perl/DbXml/t/XmlManager.t 2008-06-06 17:31:39.000000000 +0200
@@ -346,14 +346,28 @@
ok -e "$tmp_dir/cont", "dumped content exists";
my $new_container_name = "$tmp_dir/new";
+ eval {
$mgr->loadContainer($new_container_name, "$tmp_dir/cont");
+
my $c1 = $mgr->openContainer($new_container_name);
my $doc = $c1->getDocument('x') ;
+
my $cont = $doc->getContent();
+
is $cont, $content, "getContent ok" ;
+ };
+ if (my $e = catch std::exception)
+ {
+ warn "failed with std exception:" . $e->what() . "\n";
+ ok 0, "dump and load failed with std::exception"
+ }
+ elsif ($@)
+ {
+ warn "failed\n";
+ warn $@ . "\n";
+ ok 0, "dump and load failed"
+ }
unlink "$tmp_dir/cont";
if (my $e = catch std::exception)
diff -Naur -x '*xerces-c-src*' -x '*build_unix*' -x '*configure' -x '*Builder.pm' -x '*More.pm' -x'*const-c.inc' -x '*setup.py' dbxml-2.3.11.orig/dbxml/src/php/php_dbxml_container.cpp dbxml-2.3.11-64/dbxml/src/php/php_dbxml_container.cpp
--- dbxml-2.3.11.orig/dbxml/src/php/php_dbxml_container.cpp 2006-10-30 18:46:02.000000000 +0100
+++ dbxml-2.3.11-64/dbxml/src/php/php_dbxml_container.cpp 2008-06-04 13:35:09.000000000 +0200
@@ -36,7 +36,7 @@
PHP_DBXML_STUFFED_THIS(XmlContainer);
std::string buffer = This.getName();
- RETURN_STRINGL((char *)buffer.data(), buffer.length(), 1);
+ DBXML_RETURN_STRINGL((char *)buffer.data(), buffer.length(), 1);
PHP_DBXML_METHOD_END()
@@ -97,7 +97,7 @@
PHP_DBXML_STUFFED_THIS(XmlContainer);
zval zctx = NULL, ztxn = NULL;
char uri, name, *index;
- long urilen, namelen, indexlen;
+ int urilen, namelen, indexlen;
if(SUCCESS == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "sss|O",
&uri, &urilen, &name, &namelen, &index, &indexlen,
&zctx, php_dbxml_XmlUpdateContext_ce)) {
@@ -125,7 +125,7 @@
PHP_DBXML_STUFFED_THIS(XmlContainer);
zval zctx = NULL, ztxn = NULL;
char uri, name, *index;
- long urilen, namelen, indexlen;
+ int urilen, namelen, indexlen;
if(SUCCESS == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "sss|O",
&uri, &urilen, &name, &namelen, &index, &indexlen,
&zctx, php_dbxml_XmlUpdateContext_ce)) {
@@ -153,7 +153,7 @@
PHP_DBXML_STUFFED_THIS(XmlContainer);
zval zctx = NULL, ztxn = NULL;
char uri, name, *index;
- long urilen, namelen, indexlen;
+ int urilen, namelen, indexlen;
if(SUCCESS == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "sss|O",
&uri, &urilen, &name, &namelen, &index, &indexlen,
&zctx, php_dbxml_XmlUpdateContext_ce)) {
@@ -180,8 +180,8 @@
PHP_DBXML_STUFFED_THIS(XmlContainer);
zval zctx = NULL, ztxn = NULL;
- char uri, name, *index;
- long urilen, namelen, indexlen;
+ char *index;
+ int indexlen;
if(SUCCESS == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "s|O",
&index, &indexlen,
&zctx, php_dbxml_XmlUpdateContext_ce)) {
@@ -208,8 +208,8 @@
PHP_DBXML_STUFFED_THIS(XmlContainer);
zval zctx = NULL, ztxn = NULL;
- char uri, name, *index;
- long urilen, namelen, indexlen;
+ char *index;
+ int indexlen;
if(SUCCESS == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "s|O",
&index, &indexlen,
&zctx, php_dbxml_XmlUpdateContext_ce)) {
@@ -236,8 +236,8 @@
PHP_DBXML_STUFFED_THIS(XmlContainer);
zval zctx = NULL, ztxn = NULL;
- char uri, name, *index;
- long urilen, namelen, indexlen;
+ char *index;
+ int indexlen;
if(SUCCESS == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "s|O",
&index, &indexlen,
&zctx, php_dbxml_XmlUpdateContext_ce)) {
@@ -270,7 +270,7 @@
PHP_DBXML_STUFFED_THIS(XmlContainer);
zval *ztxn = NULL;
char *name;
- long namelen;
+ int namelen;
long flags = 0;
if(SUCCESS == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "s|l",
&name, &namelen, &flags)) {
@@ -299,7 +299,7 @@
PHP_DBXML_STUFFED_THIS(XmlContainer);
zval *ztxn = NULL;
char *handle;
- long handleLen;
+ int handleLen;
long flags = 0;
if(SUCCESS == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "s|l",
&handle, &handleLen, &flags)) {
@@ -325,7 +325,8 @@
PHP_DBXML_STUFFED_THIS(XmlContainer);
zval ztxn = NULL, zdoc = NULL, zstream = NULL, zctx = NULL;
char name, contents;
- long namelen, contentslen, flags = 0;
+ int namelen, contentslen;
+ long flags = 0;
/* XmlDocument */
if(SUCCESS == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "O|Ol",
&zdoc, php_dbxml_XmlDocument_ce,
@@ -389,8 +390,7 @@
PHP_DBXML_STUFFED_THIS(XmlContainer);
zval ztxn = NULL, zdoc = NULL, zstream = NULL, zctx = NULL;
- char name, contents;
- long namelen, contentslen, flags = 0;
+ long flags = 0;
/* XmlDocument */
if(SUCCESS == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "O|Ol",
&zdoc, php_dbxml_XmlDocument_ce,
@@ -421,7 +421,7 @@
PHP_DBXML_STUFFED_THIS(XmlContainer);
zval ztxn = NULL, zdoc = NULL, *zctx = NULL;
char *name;
- long namelen, contentslen;
+ int namelen;
if(SUCCESS == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "O|O",
&zdoc, php_dbxml_XmlDocument_ce,
&zctx, php_dbxml_XmlUpdateContext_ce)) {
@@ -462,8 +462,6 @@
PHP_DBXML_STUFFED_THIS(XmlContainer);
zval ztxn = NULL, zdoc = NULL, *zctx = NULL;
- char *name;
- long namelen, contentslen;
if(SUCCESS == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "O|O",
&zdoc, php_dbxml_XmlDocument_ce,
&zctx, php_dbxml_XmlUpdateContext_ce)) {
@@ -489,9 +487,9 @@
PHP_DBXML_STUFFED_THIS(XmlContainer);
zval ztxn = NULL, zctx = NULL, *zvl = NULL;
char uri, name, *index;
- long urilen, namelen, indexlen;
- char puri, pname, *pindex;
- long purilen, pnamelen, pindexlen;
+ int urilen, namelen, indexlen;
+ char puri, pname;
+ int purilen, pnamelen;
long flags = 0;
if(SUCCESS == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "Osss|Ol",
&zctx, php_dbxml_XmlQueryContext_ce,
@@ -582,9 +580,9 @@
PHP_DBXML_STUFFED_THIS(XmlContainer);
zval ztxn = NULL, zctx = NULL, *zvl = NULL;
char uri, name, *index;
- long urilen, namelen, indexlen;
- char puri, pname, *pindex;
- long purilen, pnamelen, pindexlen;
+ int urilen, namelen, indexlen;
+ char puri, pname;
+ int purilen, pnamelen;
if(SUCCESS == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "sss|O",
&uri, &urilen, &name, &namelen, &index, &indexlen,
&zvl, php_dbxml_XmlValue_ce))
@@ -660,7 +658,7 @@
PHP_DBXML_STUFFED_THIS(XmlContainer);
char *name;
- long namelen;
+ int namelen;
if(FAILURE == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "s", &name, &namelen)) {
return;
@@ -672,7 +670,7 @@
PHP_DBXML_STUFFED_THIS(XmlContainer);
char *name;
- long namelen;
+ int namelen;
if(FAILURE == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "s", &name, &namelen)) {
return;
@@ -712,9 +710,9 @@
if(ztxn) {
XmlTransaction txn = php_dbxml_get_XmlTransaction_object_pointer(ztxn TSRMLS_CC);
- RETURN_LONG(This.getNumDocuments(txn));
+ DBXML_RETURN_LONG(This.getNumDocuments(txn));
} else {
- RETURN_LONG(This.getNumDocuments());
+ DBXML_RETURN_LONG(This.getNumDocuments());
PHP_DBXML_METHOD_END()
diff -Naur -x '*xerces-c-src*' -x '*build_unix*' -x '*configure' -x '*Builder.pm' -x '*More.pm' -x'*const-c.inc' -x '*setup.py' dbxml-2.3.11.orig/dbxml/src/php/php_dbxml.cpp dbxml-2.3.11-64/dbxml/src/php/php_dbxml.cpp
--- dbxml-2.3.11.orig/dbxml/src/php/php_dbxml.cpp 2006-11-22 17:45:05.000000000 +0100
+++ dbxml-2.3.11-64/dbxml/src/php/php_dbxml.cpp 2008-06-04 14:52:22.000000000 +0200
@@ -50,7 +50,7 @@
return;
- RETVAL_STRING((char*)dbxml_version(&M, &m, &p), 1);
+ RETVAL_STRING((char*)dbxml_version(&M, &m, &p), (int)1);
if (ZEND_NUM_ARGS()) {
convert_to_long(maj);
@@ -70,7 +70,7 @@
return;
- DbXml::setLogLevel((DbXml::LogLevel)level, on);
+ DbXml::setLogLevel((DbXml::LogLevel)level, (on != 0));
static PHP_FUNCTION(dbxml_set_log_category)
@@ -81,7 +81,7 @@
return;
- DbXml::setLogCategory((DbXml::LogCategory)level, on);
+ DbXml::setLogCategory((DbXml::LogCategory)level, (on != 0));
function_entry dbxml_functions[] = {
@@ -96,7 +96,7 @@
zend_class_entry ce;
#ifdef PHP_DBXML_EXCEPTIONS
- php_dbxml_init_exceptions();
+ php_dbxml_init_exceptions(TSRMLS_C);
#endif
PHP_DBXML_REGISTER_CLASS(XmlData, php_dbxml_XmlData_dtor);
PHP_DBXML_REGISTER_CLASS(XmlValue, php_dbxml_XmlValue_dtor);
@@ -108,6 +108,7 @@
PHP_DBXML_REGISTER_CLASS(XmlEventReader, php_dbxml_XmlEventReader_dtor);
PHP_DBXML_REGISTER_CLASS(XmlEventReaderToWriter, php_dbxml_XmlEventReaderToWriter_dtor);
PHP_DBXML_REGISTER_CLASS(XmlEventWriter, php_dbxml_XmlEventWriter_dtor);
+ PHP_DBXML_REGISTER_CLASS(XmlIndexLookup, php_dbxml_XmlIndexLookup_dtor);
PHP_DBXML_REGISTER_CLASS(XmlIndexSpecification, php_dbxml_XmlIndexSpecification_dtor);
PHP_DBXML_REGISTER_CLASS(XmlModify, php_dbxml_XmlModify_dtor);
PHP_DBXML_REGISTER_CLASS(XmlQueryContext, php_dbxml_XmlQueryContext_dtor);
@@ -141,9 +142,14 @@
REGISTER_LONG_CONSTANT( "DBXML_ENCRYPT", DBXML_ENCRYPT, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "DBXML_GEN_NAME", DBXML_GEN_NAME, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "DBXML_LAZY_DOCS", DBXML_LAZY_DOCS, CONST_CS | CONST_PERSISTENT);
+ //REGISTER_LONG_CONSTANT( "DBXML_DOCUMENT_PROJECTION", DBXML_DOCUMENT_PROJECTION, CONST_CS | CONST_PERSISTENT);
+ //REGISTER_LONG_CONSTANT( "DBXML_NO_AUTO_COMMIT", DBXML_NO_AUTO_COMMIT, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "DBXML_CACHE_DOCUMENTS", DBXML_CACHE_DOCUMENTS, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "DBXML_NO_INDEX_NODES", DBXML_NO_INDEX_NODES, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "DBXML_INDEX_NODES", DBXML_INDEX_NODES, CONST_CS | CONST_PERSISTENT);
+ //REGISTER_LONG_CONSTANT( "DBXML_NO_STATISTICS", DBXML_NO_STATISTICS, CONST_CS | CONST_PERSISTENT);
+ //REGISTER_LONG_CONSTANT( "DBXML_STATISTICS", DBXML_STATISTICS, CONST_CS | CONST_PERSISTENT);
+ REGISTER_LONG_CONSTANT( "DBXML_WELL_FORMED_ONLY", DBXML_WELL_FORMED_ONLY, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "LEVEL_NONE", LEVEL_NONE, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "LEVEL_DEBUG", LEVEL_DEBUG, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "LEVEL_INFO", LEVEL_INFO, CONST_CS | CONST_PERSISTENT);
@@ -237,6 +243,8 @@
REGISTER_LONG_CONSTANT("XmlException_NULL_POINTER", XmlException::NULL_POINTER, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("XmlException_INDEXER_PARSER_ERROR", XmlException::INDEXER_PARSER_ERROR, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("XmlException_DATABASE_ERROR", XmlException::DATABASE_ERROR, CONST_CS | CONST_PERSISTENT);
+ //REGISTER_LONG_CONSTANT("XmlException_QUERY_PARSER_ERROR", XmlException::QUERY_PARSER_ERROR, CONST_CS | CONST_PERSISTENT);
+ //REGISTER_LONG_CONSTANT("XmlException_QUERY_EVALUATION_ERROR", XmlException::QUERY_EVALUATION_ERROR, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("XmlException_XPATH_PARSER_ERROR", XmlException::XPATH_PARSER_ERROR, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("XmlException_DOM_PARSER_ERROR", XmlException::DOM_PARSER_ERROR, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("XmlException_XPATH_EVALUATION_ERROR", XmlException::XPATH_EVALUATION_ERROR, CONST_CS | CONST_PERSISTENT);
@@ -302,6 +310,9 @@
#if COMPILE_DL_DBXML
+#ifdef PHP_WIN32
+#include "zend_arg_defs.c"
+#endif
BEGIN_EXTERN_C()
ZEND_GET_MODULE(dbxml)
END_EXTERN_C()
diff -Naur -x '*xerces-c-src*' -x '*build_unix*' -x '*configure' -x '*Builder.pm' -x '*More.pm' -x'*const-c.inc' -x '*setup.py' dbxml-2.3.11.orig/dbxml/src/php/php_dbxml_data.cpp dbxml-2.3.11-64/dbxml/src/php/php_dbxml_data.cpp
--- dbxml-2.3.11.orig/dbxml/src/php/php_dbxml_data.cpp 2006-10-30 18:46:02.000000000 +0100
+++ dbxml-2.3.11-64/dbxml/src/php/php_dbxml_data.cpp 2008-06-04 14:58:27.000000000 +0200
@@ -39,7 +39,7 @@
WRONG_PARAM_COUNT;
- RETURN_STRINGL((char*)This.get_data(), This.get_size(), 1);
+ DBXML_RETURN_STRINGL((char*)This.get_data(), This.get_size(), 1);
} PHP_DBXML_METHOD_END()
PHP_DBXML_METHOD_BEGIN(XmlData, set_data)
diff -Naur -x '*xerces-c-src*' -x '*build_unix*' -x '*configure' -x '*Builder.pm' -x '*More.pm' -x'*const-c.inc' -x '*setup.py' dbxml-2.3.11.orig/dbxml/src/php/php_dbxml_document.cpp dbxml-2.3.11-64/dbxml/src/php/php_dbxml_document.cpp
--- dbxml-2.3.11.orig/dbxml/src/php/php_dbxml_document.cpp 2006-10-30 18:46:02.000000000 +0100
+++ dbxml-2.3.11-64/dbxml/src/php/php_dbxml_document.cpp 2008-06-04 15:00:30.000000000 +0200
@@ -32,24 +32,6 @@
RETURN_BOOL(This == other);
} PHP_DBXML_METHOD_END()
-PHP_DBXML_METHOD_BEGIN(XmlDocument, getName)
- PHP_DBXML_STUFFED_THIS(XmlDocument);
- std::string buffer = This.getName();
- RETURN_STRINGL((char *)buffer.data(), buffer.length(), 1);
-} PHP_DBXML_METHOD_END()
-PHP_DBXML_METHOD_BEGIN(XmlDocument, setName)
- PHP_DBXML_STUFFED_THIS(XmlDocument);
- char *name;
- long namelen;
- if(FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &name, &namelen)) {
- return;
- This.setName(std::string(name, namelen));
-} PHP_DBXML_METHOD_END()
PHP_DBXML_METHOD_BEGIN(XmlDocument, getContent)
PHP_DBXML_STUFFED_THIS(XmlDocument);
@@ -62,7 +44,7 @@
PHP_DBXML_STUFFED_THIS(XmlDocument);
std::string buffer;
This.getContent(buffer);
- RETURN_STRINGL((char *)buffer.data(), buffer.length(), 1);
+ DBXML_RETURN_STRINGL((char *)buffer.data(), buffer.length(), 1);
} PHP_DBXML_METHOD_END()
PHP_DBXML_METHOD_BEGIN(XmlDocument, getContentAsEventReader)
@@ -77,7 +59,7 @@
PHP_DBXML_STUFFED_THIS(XmlDocument);
zval *zv = NULL;
if (SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O", &zv, php_dbxml_XmlEventWriter_ce)) {
- XmlEventWriter &writer = php_dbxml_get_XmlEventWriter_object_pointer(zv TSRMLS_DC);
+ XmlEventWriter &writer = php_dbxml_get_XmlEventWriter_object_ref(zv TSRMLS_CC);
This.getContentAsEventWriter(writer);
} PHP_DBXML_METHOD_END()
@@ -87,7 +69,7 @@
PHP_DBXML_STUFFED_THIS(XmlDocument);
zval zstr = NULL, zdat = NULL;
char *content;
- long contentlen;
+ int contentlen;
if(SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &content, &contentlen)) {
This.setContent(std::string(content, contentlen));
@@ -100,7 +82,7 @@
This.setContentAsXmlInputStream(str);
else if(SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O", &zstr, php_dbxml_XmlEventReader_ce)) {
- XmlEventReader &reader = php_dbxml_get_XmlEventReader_object_pointer(zstr TSRMLS_DC);
+ XmlEventReader &reader = php_dbxml_get_XmlEventReader_object_ref(zstr TSRMLS_CC);
This.setContentAsEventReader(reader);
else {
@@ -123,7 +105,7 @@
PHP_DBXML_STUFFED_THIS(XmlDocument);
zval zvl = NULL, zdat = NULL;
char uri, name;
- long urilen, namelen;
+ int urilen, namelen;
if(SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss",
&uri, &urilen, &name, &namelen)) {
XmlValue vl;
@@ -140,7 +122,7 @@
PHP_DBXML_STUFFED_THIS(XmlDocument);
zval zvl = NULL, zdat = NULL;
char uri, name;
- long urilen, namelen;
+ int urilen, namelen;
if(SUCCESS == zend_parse_parameters(
ZEND_NUM_ARGS() TSRMLS_CC, "ssO",
&uri, &urilen, &name, &namelen,&zvl, php_dbxml_XmlValue_ce)) {
@@ -150,11 +132,11 @@
} PHP_DBXML_METHOD_END()
+PHP_DBXML_STRING_GETTER_AND_SETTER(XmlDocument, Name);
+
function_entry php_dbxml_XmlDocument_methods[] = {
PHP_ME(XmlDocument, XmlDocument, NULL, 0)
-PHP_ME(XmlDocument, getName, NULL, 0)
PHP_ME(XmlDocument, equals, NULL, 0)
-PHP_ME(XmlDocument, setName, NULL, 0)
PHP_ME(XmlDocument, getContent, NULL, 0)
PHP_ME(XmlDocument, getContentAsString, NULL, 0)
PHP_ME(XmlDocument, getContentAsEventReader, NULL, 0)
@@ -163,6 +145,7 @@
PHP_ME(XmlDocument, fetchAllData, NULL, 0)
PHP_ME(XmlDocument, getMetaData, NULL, 0)
PHP_ME(XmlDocument, setMetaData, NULL, 0)
+PHP_DBXML_ME_GETTER_AND_SETTER(XmlDocument, Name)
{NULL, NULL, NULL}
/* vim: set sts=2 ts=2 expandtab ai bs=2 : */
diff -Naur -x '*xerces-c-src*' -x '*build_unix*' -x '*configure' -x '*Builder.pm' -x '*More.pm' -x'*const-c.inc' -x '*setup.py' dbxml-2.3.11.orig/dbxml/src/php/php_dbxml_eventreader.cpp dbxml-2.3.11-64/dbxml/src/php/php_dbxml_eventreader.cpp
--- dbxml-2.3.11.orig/dbxml/src/php/php_dbxml_eventreader.cpp 2006-11-15 17:53:11.000000000 +0100
+++ dbxml-2.3.11-64/dbxml/src/php/php_dbxml_eventreader.cpp 2008-06-04 15:01:44.000000000 +0200
@@ -59,15 +59,15 @@
PHP_DBXML_STUFFED_REF(XmlEventReader);
int len;
const unsigned char *val = This.getValue(len);
- RETURN_STRINGL((char *)val, len, 1);
+ DBXML_RETURN_STRINGL((char *)val, len, 1);
} PHP_DBXML_METHOD_END()
PHP_DBXML_METHOD_BEGIN(XmlEventReader, getValueLen)
PHP_DBXML_STUFFED_REF(XmlEventReader);
- int len;
+ int len;
(void) This.getValue(len);
- RETURN_LONG(len);
+ DBXML_RETURN_LONG(len);
} PHP_DBXML_METHOD_END()
PHP_DBXML_METHOD_BEGIN(XmlEventReader, isAttributeSpecified)
@@ -86,7 +86,7 @@
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &index)) {
RETURN_FALSE;
- RETURN_STRING((char *)This.getAttributeLocalName(index), 1);
+ DBXML_RETURN_STRING((char *)This.getAttributeLocalName(index), 1);
} PHP_DBXML_METHOD_END()
PHP_DBXML_METHOD_BEGIN(XmlEventReader, getAttributeNamespaceURI)
@@ -96,7 +96,7 @@
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &index)) {
RETURN_FALSE;
- RETURN_STRING((char *)This.getAttributeNamespaceURI(index), 1);
+ DBXML_RETURN_STRING((char *)This.getAttributeNamespaceURI(index), 1);
} PHP_DBXML_METHOD_END()
PHP_DBXML_METHOD_BEGIN(XmlEventReader, getAttributePrefix)
@@ -106,7 +106,7 @@
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &index)) {
RETURN_FALSE;
- RETURN_STRING((char *)This.getAttributePrefix(index), 1);
+ DBXML_RETURN_STRING((char *)This.getAttributePrefix(index), 1);
} PHP_DBXML_METHOD_END()
PHP_DBXML_METHOD_BEGIN(XmlEventReader, getAttributeValue)
@@ -116,7 +116,7 @@
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &index)) {
RETURN_FALSE;
- RETURN_STRING((char *)This.getAttributeValue(index), 1);
+ DBXML_RETURN_STRING((char *)This.getAttributeValue(index), 1);
} PHP_DBXML_METHOD_END()
PHP_DBXML_METHOD_BEGIN(XmlEventReader, needsEntityEscape)
diff -Naur -x '*xerces-c-src*' -x '*build_unix*' -x '*configure' -x '*Builder.pm' -x '*More.pm' -x'*const-c.inc' -x '*setup.py' dbxml-2.3.11.orig/dbxml/src/php/php_dbxml_eventreadertowriter.cpp dbxml-2.3.11-64/dbxml/src/php/php_dbxml_eventreadertowriter.cpp
--- dbxml-2.3.11.orig/dbxml/src/php/php_dbxml_eventreadertowriter.cpp 2006-10-30 18:46:03.000000000 +0100
+++ dbxml-2.3.11-64/dbxml/src/php/php_dbxml_eventreadertowriter.cpp 2008-06-03 18:02:40.000000000 +0200
@@ -24,9 +24,9 @@
&wval, php_dbxml_XmlEventWriter_ce,
&ownsReader)) {
XmlEventReader &reader =
- php_dbxml_get_XmlEventReader_object_pointer(rval TSRMLS_DC);
+ php_dbxml_get_XmlEventReader_object_ref(rval TSRMLS_CC);
XmlEventWriter &writer =
- php_dbxml_get_XmlEventWriter_object_pointer(wval TSRMLS_DC);
+ php_dbxml_get_XmlEventWriter_object_ref(wval TSRMLS_CC);
XmlEventReaderToWriter r2w(reader, writer, ownsReader);
php_dbxml_set_XmlEventReaderToWriter_object_factory(
getThis(), r2w TSRMLS_CC);
diff -Naur -x '*xerces-c-src*' -x '*build_unix*' -x '*configure' -x '*Builder.pm' -x '*More.pm' -x'*const-c.inc' -x '*setup.py' dbxml-2.3.11.orig/dbxml/src/php/php_dbxml_eventwriter.cpp dbxml-2.3.11-64/dbxml/src/php/php_dbxml_eventwriter.cpp
--- dbxml-2.3.11.orig/dbxml/src/php/php_dbxml_eventwriter.cpp 2006-11-15 17:53:11.000000000 +0100
+++ dbxml-2.3.11-64/dbxml/src/php/php_dbxml_eventwriter.cpp 2008-06-03 18:06:06.000000000 +0200
@@ -29,7 +29,7 @@
PHP_DBXML_STUFFED_REF(XmlEventWriter);
char lname, prefix, uri, value;
- long lLen, pLen, uLen, vLen;
+ int lLen, pLen, uLen, vLen;
bool specified = true; // optional in PHP interface
if (SUCCESS ==
zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ssss|b",
@@ -46,10 +46,10 @@
PHP_DBXML_METHOD_BEGIN(XmlEventWriter, writeText)
PHP_DBXML_STUFFED_REF(XmlEventWriter);
- long type;
+ int type;
char *text;
- long unused; // length is ignored if passed to PHP's writeText
- long tLen;
+ int unused; // length is ignored if passed to PHP's writeText
+ int tLen;
if (SUCCESS ==
zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ls|l", &type,
&text, &tLen, &unused))
@@ -61,7 +61,7 @@
PHP_DBXML_STUFFED_REF(XmlEventWriter);
char target, data;
- long tLen, dLen;
+ int tLen, dLen;
if (SUCCESS ==
zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &target,
&tLen, &data, &dLen))
@@ -73,7 +73,7 @@
PHP_DBXML_STUFFED_REF(XmlEventWriter);
char lname, prefix, *uri;
- long lLen, pLen, uLen, nattrs;
+ int lLen, pLen, uLen, nattrs;
bool empty = false; // default in PHP
if (SUCCESS ==
zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sssl|b",
@@ -90,7 +90,7 @@
PHP_DBXML_STUFFED_REF(XmlEventWriter);
char lname, prefix, *uri;
- long lLen, pLen, uLen;
+ int lLen, pLen, uLen;
if (SUCCESS ==
zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sss",
&lname, &lLen, &prefix, &pLen, &uri, &uLen)) {
@@ -104,8 +104,8 @@
PHP_DBXML_STUFFED_REF(XmlEventWriter);
char *text;
- long unused; // length is ignored if passed
- long tLen;
+ int unused; // length is ignored if passed
+ int tLen;
if (SUCCESS ==
zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l",
&text, &tLen, &unused))
@@ -119,7 +119,7 @@
char *version = 0;
char *encoding = 0;
char *standalone = 0;
- long vLen, eLen, sLen;
+ int vLen, eLen, sLen;
if (SUCCESS ==
zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|sss",
&version, &vLen, &encoding, &eLen,
@@ -140,7 +140,7 @@
PHP_DBXML_STUFFED_REF(XmlEventWriter);
char *name;
- long tLen;
+ int tLen;
bool expandedInfoFollows = true; // default this
if (SUCCESS ==
zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|b",
@@ -153,7 +153,7 @@
PHP_DBXML_STUFFED_REF(XmlEventWriter);
char *name;
- long tLen;
+ int tLen;
if (SUCCESS ==
zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s",
&name, &tLen))
diff -Naur -x '*xerces-c-src*' -x '*build_unix*' -x '*configure' -x '*Builder.pm' -x '*More.pm' -x'*const-c.inc' -x '*setup.py' dbxml-2.3.11.orig/dbxml/src/php/php_dbxml_exception.cpp dbxml-2.3.11-64/dbxml/src/php/php_dbxml_exception.cpp
--- dbxml-2.3.11.orig/dbxml/src/php/php_dbxml_exception.cpp 2006-11-15 18:21:45.000000000 +0100
+++ dbxml-2.3.11-64/dbxml/src/php/php_dbxml_exception.cpp 2008-06-04 15:03:30.000000000 +0200
@@ -19,10 +19,14 @@
PHP_DBXML_DECLARE_CLASS(XmlException);
-void php_dbxml_init_exceptions()
+void php_dbxml_init_exceptions(TSRMLS_D)
zend_class_entry ce;
+#if (PHP_MAJOR_VERSION == 5) && (PHP_MINOR_VERSION < 2)
PHP_DBXML_REGISTER_CLASS_WITH_PARENT(XmlException, zend_exception_get_default(), php_dbxml_XmlException_dtor);
+#else
+ PHP_DBXML_REGISTER_CLASS_WITH_PARENT(XmlException, zend_exception_get_default(TSRMLS_C), php_dbxml_XmlException_dtor);
+#endif
zend_declare_property_long(php_dbxml_XmlException_ce, "code",
sizeof("code")-1, 0,
ZEND_ACC_PROTECTED TSRMLS_CC);
@@ -43,7 +47,7 @@
ZEND_ACC_PROTECTED TSRMLS_CC);
-void php_dbxml_throw_exception(const XmlException &xe)
+void php_dbxml_throw_exception(const XmlException &xe TSRMLS_DC)
zval *xml_ex;
MAKE_STD_ZVAL(xml_ex);
diff -Naur -x '*xerces-c-src*' -x '*build_unix*' -x '*configure' -x '*Builder.pm' -x '*More.pm' -x'*const-c.inc' -x '*setup.py' dbxml-2.3.11.orig/dbxml/src/php/php_dbxml.h dbxml-2.3.11-64/dbxml/src/php/php_dbxml.h
--- dbxml-2.3.11.orig/dbxml/src/php/php_dbxml.h 2006-11-15 17:53:11.000000000 +0100
+++ dbxml-2.3.11-64/dbxml/src/php/php_dbxml.h 2008-06-04 15:04:22.000000000 +0200
@@ -20,7 +20,6 @@
#ifndef PHP_DBXML_H
#define PHP_DBXML_H
extern zend_module_entry dbxml_module_entry;
#define phpext_dbxml_ptr &dbxml_module_entry
@@ -39,9 +38,7 @@
#endif
#ifdef PHP_DBXML_EXCEPTIONS
-extern "C" {
#include "zend_exceptions.h"
#endif
PHP_MINIT_FUNCTION(dbxml);
diff -Naur -x '*xerces-c-src*' -x '*build_unix*' -x '*configure' -x '*Builder.pm' -x '*More.pm' -x'*const-c.inc' -x '*setup.py' dbxml-2.3.11.orig/dbxml/src/php/php_dbxml_indexlookup.cpp dbxml-2.3.11-64/dbxml/src/php/php_dbxml_indexlookup.cpp
--- dbxml-2.3.11.orig/dbxml/src/php/php_dbxml_indexlookup.cpp 2006-10-30 18:46:03.000000000 +0100
+++ dbxml-2.3.11-64/dbxml/src/php/php_dbxml_indexlookup.cpp 2008-06-04 15:08:05.000000000 +0200
@@ -34,7 +34,7 @@
index = This.getIndex();
- RETURN_STRINGL((char*)index.data(), index.length(), 1);
+ DBXML_RETURN_STRINGL((char*)index.data(), index.length(), 1);
} PHP_DBXML_METHOD_END()
@@ -65,7 +65,7 @@
index = This.getNodeURI();
- RETURN_STRINGL((char*)index.data(), index.length(), 1);
+ DBXML_RETURN_STRINGL((char*)index.data(), index.length(), 1);
} PHP_DBXML_METHOD_END()
@@ -81,7 +81,7 @@
index = This.getNodeName();
- RETURN_STRINGL((char*)index.data(), index.length(), 1);
+ DBXML_RETURN_STRINGL((char*)index.data(), index.length(), 1);
} PHP_DBXML_METHOD_END()
@@ -112,7 +112,7 @@
index = This.getParentURI();
- RETURN_STRINGL((char*)index.data(), index.length(), 1);
+ DBXML_RETURN_STRINGL((char*)index.data(), index.length(), 1);
} PHP_DBXML_METHOD_END()
@@ -143,7 +143,7 @@
index = This.getParentName();
- RETURN_STRINGL((char*)index.data(), index.length(), 1);
+ DBXML_RETURN_STRINGL((char*)index.data(), index.length(), 1);
} PHP_DBXML_METHOD_END()
@@ -183,7 +183,7 @@
zval *zv;
long op;
PHP_DBXML_STUFFED_THIS(XmlIndexLookup);
- if (SUCCESS == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "Ol", &zv, php_dbxml_XmlValue_ce, &op))
+ if (FAILURE == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "Ol", &zv, php_dbxml_XmlValue_ce, &op))
WRONG_PARAM_COUNT;
@@ -228,7 +228,7 @@
zval *zv;
long op;
PHP_DBXML_STUFFED_THIS(XmlIndexLookup);
- if (SUCCESS == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "Ol", &zv, php_dbxml_XmlValue_ce, &op))
+ if (FAILURE == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "Ol", &zv, php_dbxml_XmlValue_ce, &op))
WRONG_PARAM_COUNT;
@@ -257,9 +257,8 @@
PHP_DBXML_METHOD_BEGIN(XmlIndexLookup, setContainer)
zval *zv;
- long op;
PHP_DBXML_STUFFED_THIS(XmlIndexLookup);
- if (SUCCESS == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "O", &zv, php_dbxml_XmlContainer_ce))
+ if (FAILURE == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "O", &zv, php_dbxml_XmlContainer_ce))
WRONG_PARAM_COUNT;
@@ -276,19 +275,22 @@
long flags = 0;
PHP_DBXML_STUFFED_THIS(XmlIndexLookup);
+#define SET_PTR(expr) \
+ XmlQueryContext c = php_dbxml_get_XmlQueryContext_object_pointer(zqc TSRMLS_CC); \
+ XmlResults r = expr; \
+ object_init_ex(return_value, php_dbxml_XmlResults_ce); \
+ php_dbxml_set_XmlResults_object_pointer(return_value, r TSRMLS_CC);
+
if (SUCCESS == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC,
"O|l", &zqc, php_dbxml_XmlQueryContext_ce, &flags)) {
- XmlQueryContext c = php_dbxml_get_XmlQueryContext_object_pointer(zqc TSRMLS_CC);
- XmlResults r = This.execute(c, flags);
+ SET_PTR(This.execute(c, flags));
php_dbxml_set_XmlResults_object_pointer(return_value, r TSRMLS_CC);
} else if (SUCCESS == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC,
"OO", &zt, php_dbxml_XmlTransaction_ce, &zqc, php_dbxml_XmlQueryContext_ce, &flags)) {
XmlTransaction t = php_dbxml_get_XmlTransaction_object_pointer(zt TSRMLS_CC);
- XmlQueryContext c = php_dbxml_get_XmlQueryContext_object_pointer(zqc TSRMLS_CC);
- XmlResults r = This.execute(t,c,flags);
- php_dbxml_set_XmlResults_object_pointer(return_value, r TSRMLS_CC);
+ SET_PTR(This.execute(t, c, flags));
} else {
WRONG_PARAM_COUNT;
diff -Naur -x '*xerces-c-src*' -x '*build_unix*' -x '*configure' -x '*Builder.pm' -x '*More.pm' -x'*const-c.inc' -x '*setup.py' dbxml-2.3.11.orig/dbxml/src/php/php_dbxml_indexspecification.cpp dbxml-2.3.11-64/dbxml/src/php/php_dbxml_indexspecification.cpp
--- dbxml-2.3.11.orig/dbxml/src/php/php_dbxml_indexspecification.cpp 2006-10-30 18:46:03.000000000 +0100
+++ dbxml-2.3.11-64/dbxml/src/php/php_dbxml_indexspecification.cpp 2008-06-04 15:08:49.000000000 +0200
@@ -156,7 +156,7 @@
if (This.find(std::string(uri, uri_len), std::string(name, name_len), index)) {
- RETURN_STRINGL((char*)index.data(), index.length(), 1);
+ DBXML_RETURN_STRINGL((char*)index.data(), index.length(), 1);
} else {
RETURN_FALSE;
@@ -175,7 +175,7 @@
index = This.getDefaultIndex();
- RETURN_STRINGL((char*)index.data(), index.length(), 1);
+ DBXML_RETURN_STRINGL((char*)index.data(), index.length(), 1);
} PHP_DBXML_METHOD_END()
@@ -191,9 +191,9 @@
zval *el;
MAKE_STD_ZVAL(el);
array_init(el);
- add_assoc_stringl(el, "uri", (char *) uri.data(), uri.length(), 1);
- add_assoc_stringl(el, "name", (char *) name.data(), name.length(), 1);
- add_assoc_stringl(el, "index", (char *) index.data(), index.length(), 1);
+ add_assoc_stringl(el, "uri", (char *) uri.data(), (int)uri.length(), (int)1);
+ add_assoc_stringl(el, "name", (char *) name.data(), (int)name.length(), (int)1);
+ add_assoc_stringl(el, "index", (char *) index.data(), (int)index.length(), (int)1);
add_next_index_zval(return_value, el);
return;
diff -Naur -x '*xerces-c-src*' -x '*build_unix*' -x '*configure' -x '*Builder.pm' -x '*More.pm' -x'*const-c.inc' -x '*setup.py' dbxml-2.3.11.orig/dbxml/src/php/php_dbxml_inputstream.cpp dbxml-2.3.11-64/dbxml/src/php/php_dbxml_inputstream.cpp
--- dbxml-2.3.11.orig/dbxml/src/php/php_dbxml_inputstream.cpp 2006-10-30 18:46:03.000000000 +0100
+++ dbxml-2.3.11-64/dbxml/src/php/php_dbxml_inputstream.cpp 2008-06-03 18:12:07.000000000 +0200
@@ -37,7 +37,7 @@
Read a number of bytes and return them as a string */
PHP_DBXML_METHOD_BEGIN(XmlInputStream, readBytes)
- long toread;
+ int toread;
PHP_DBXML_GETTHIS(XmlInputStream);
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &toread)) {
diff -Naur -x '*xerces-c-src*' -x '*build_unix*' -x '*configure' -x '*Builder.pm' -x '*More.pm' -x'*const-c.inc' -x '*setup.py' dbxml-2.3.11.orig/dbxml/src/php/php_dbxml_int.hpp dbxml-2.3.11-64/dbxml/src/php/php_dbxml_int.hpp
--- dbxml-2.3.11.orig/dbxml/src/php/php_dbxml_int.hpp 2006-11-15 17:53:11.000000000 +0100
+++ dbxml-2.3.11-64/dbxml/src/php/php_dbxml_int.hpp 2008-06-04 15:57:38.000000000 +0200
@@ -11,14 +11,21 @@
# include "config.h"
#endif
+// this is here to work around a PHP build issue on Windows
+#include <iostream>
+
extern "C" {
#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
+#ifdef PHP_WIN32
+#include "php_db4.h"
+#else
#include "ext/db4/php_db4.h"
+#endif
+#include "php_dbxml.h"
#include <exception>
-#include "php_dbxml.h"
#include "dbxml/DbXml.hpp"
using namespace DbXml;
@@ -34,7 +41,7 @@
#define PHP_DBXML_METHOD_END() \
} catch(XmlException &xe) { \
- php_dbxml_throw_exception(xe); \
+ php_dbxml_throw_exception(xe TSRMLS_CC); \
catch(std::exception &e) { \
php_error_docref(NULL TSRMLS_CC, E_WARNING, e.what()); \
@@ -53,6 +60,15 @@
#endif
+// encapsulate calls to RETURN_STRINGL macro in PHP
+#define DBXML_RETURN_STRINGL(d, l, s) \
+ RETURN_STRINGL((char*)(d),(int)(l), (s))
+
+#define DBXML_RETURN_STRING(d, s) \
+ RETURN_STRING((char*)(d),(int)(s))
+
+#define DBXML_RETURN_LONG(l) RETURN_LONG((long)(l))
+
static inline void php_dbxml_set_object_pointer(zval object, int type, void ptr TSRMLS_DC)
zval *z;
@@ -120,10 +136,13 @@
zend_list_addref(Z_RESVAL_PP(prop));
-/* fun with those on-the-stack-only style object (XmlContainer) that have their own magic refcounts */
+/*
+ * macros to handle the Xml* objects
+ * "object_pointer" really means object reference (e.g. XmlDocument &)
+ */
#define PHP_DBXML_STUFFED_INSTANCES(class_type) \
- class php_dbxml_stuffed_##class_type { \
+ struct php_dbxml_stuffed_##class_type { \
public: class_type stuffed; \
php_dbxml_stuffed_##class_type(class_type &s): stuffed(s) {} \
@@ -136,7 +155,7 @@
struct php_dbxml_stuffed_##class_type *s = new struct php_dbxml_stuffed_##class_type(instance); \
php_dbxml_set_object_pointer(object, le_##class_type, s TSRMLS_CC); \
- static inline class_type php_dbxml_get_##class_type##_object_pointer(zval *object TSRMLS_DC) { \
+ static inline class_type & php_dbxml_get_##class_type##_object_pointer(zval *object TSRMLS_DC) { \
struct php_dbxml_stuffed_##class_type s = (struct php_dbxml_stuffed_##class_type ) \
php_dbxml_get_object_pointer(object, le_##class_type, php_dbxml_##class_type##_ce, #class_type TSRMLS_CC); \
if (s) { return s->stuffed; } /* does internal addref */ \
@@ -147,12 +166,14 @@
delete s; \
-// this is nearly identical to STUFFED_INSTANCES, above, with the exception
-// that it stores an object reference, not an actual instance, which
-// changes the member variable to a reference, along with the
-// accessor's return value. Everything else is identical.
+/*
+ * this is nearly identical to STUFFED_INSTANCES, above, with the exception
+ * that it stores an object reference, not an actual instance, which
+ * changes the member variable to a reference, along with the
+ * accessor's return value. Everything else is identical.
+ */
#define PHP_DBXML_STUFFED_REFERENCES(class_type) \
- class php_dbxml_stuffed_##class_type { \
+ struct php_dbxml_stuffed_##class_type { \
public: class_type &stuffed; \
php_dbxml_stuffed_##class_type(class_type &s): stuffed(s) {} \
@@ -165,7 +186,7 @@
struct php_dbxml_stuffed_##class_type *s = new struct php_dbxml_stuffed_##class_type(instance); \
php_dbxml_set_object_pointer(object, le_##class_type, s TSRMLS_CC); \
- static inline class_type &php_dbxml_get_##class_type##_object_pointer(zval *object TSRMLS_DC) { \
+ static inline class_type &php_dbxml_get_##class_type##_object_ref(zval *object TSRMLS_DC) { \
struct php_dbxml_stuffed_##class_type s = (struct php_dbxml_stuffed_##class_type ) \
php_dbxml_get_object_pointer(object, le_##class_type, php_dbxml_##class_type##_ce, #class_type TSRMLS_CC); \
if (s) { return s->stuffed; } /* does internal addref */ \
@@ -177,10 +198,10 @@
#define PHP_DBXML_STUFFED_THIS(class_type) \
- class_type This = php_dbxml_get_##class_type##_object_pointer(getThis() TSRMLS_CC);
+ class_type &This = php_dbxml_get_##class_type##_object_pointer(getThis() TSRMLS_CC);
#define PHP_DBXML_STUFFED_REF(class_type) \
- class_type &This = php_dbxml_get_##class_type##_object_pointer(getThis() TSRMLS_CC);
+ class_type &This = php_dbxml_get_##class_type##_object_ref(getThis() TSRMLS_CC);
#define PHP_DBXML_DECLARE_CLASS(class_type) \
int le_##class_type; \
@@ -197,7 +218,7 @@
int i;
for(i = 0; fe.handler; i++) {
fe[i].fname = strdup(fe[i].fname);
- zend_str_tolower(fe[i].fname, strlen(fe[i].fname));
+ zend_str_tolower(fe[i].fname, (unsigned int)strlen(fe[i].fname));
@@ -241,6 +262,27 @@
This->set##propname((proptype)val); \
+#define PHP_DBXML_STRING_GETTER_AND_SETTER(class_type, propname) \
+PHP_METHOD(class_type, get##propname) \
+{ \
+ PHP_DBXML_GETTHIS(class_type); \
+ if (ZEND_NUM_ARGS()) { \
+ WRONG_PARAM_COUNT; \
+ } \
+ std::string str = This->get##propname(); \
+ DBXML_RETURN_STRINGL((char*)str.data(), str.length(), 1); \
+} \
+PHP_METHOD(class_type, set##propname) \
+{ \
+ char *val; \
+ int val_len; \
+ PHP_DBXML_GETTHIS(class_type); \
+ if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &val, &val_len)) { \
+ RETURN_FALSE; \
+ } \
+ This->set##propname(std::string(val, val_len)); \
+}
+
PHP_DBXML_EXTERN_CLASS(XmlContainer);
PHP_DBXML_EXTERN_CLASS(XmlData);
PHP_DBXML_EXTERN_CLASS(XmlManager);
@@ -261,8 +303,8 @@
PHP_DBXML_EXTERN_CLASS(XmlInputStream);
PHP_DBXML_EXTERN_CLASS(XmlValue);
#ifdef PHP_DBXML_EXCEPTIONS
-extern void php_dbxml_init_exceptions();
-extern void php_dbxml_throw_exception(const XmlException &xe);
+extern void php_dbxml_init_exceptions(TSRMLS_D);
+extern void php_dbxml_throw_exception(const XmlException &xe TSRMLS_DC);
PHP_DBXML_EXTERN_CLASS(XmlException);
PHP_DBXML_STUFFED_INSTANCES(XmlException);
#endif
diff -Naur -x '*xerces-c-src*' -x '*build_unix*' -x '*configure' -x '*Builder.pm' -x '*More.pm' -x'*const-c.inc' -x '*setup.py' dbxml-2.3.11.orig/dbxml/src/php/php_dbxml_manager.cpp dbxml-2.3.11-64/dbxml/src/php/php_dbxml_manager.cpp
--- dbxml-2.3.11.orig/dbxml/src/php/php_dbxml_manager.cpp 2006-10-30 18:46:04.000000000 +0100
+++ dbxml-2.3.11-64/dbxml/src/php/php_dbxml_manager.cpp 2008-06-04 15:13:37.000000000 +0200
@@ -8,7 +8,6 @@
#include "php_dbxml_int.hpp"
-#include "ext/db4/php_db4.h"
ZEND_RSRC_DTOR_FUNC(php_dbxml_XmlManager_dtor)
@@ -35,7 +34,7 @@
if (dbenv_obj) {
- dbenv = php_db4_getDbEnvFromObj(dbenv_obj);
+ dbenv = php_db4_getDbEnvFromObj(dbenv_obj TSRMLS_CC);
This = new XmlManager(DbEnv::get_DbEnv(dbenv), (unsigned int)flags);
} else {
This = new XmlManager((unsigned int)flags);
@@ -63,7 +62,7 @@
PHP_DBXML_GETTHIS(XmlManager);
char *name;
- long namelen;
+ int namelen;
int ret = 0;
if (SUCCESS == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "s", &name, &namelen)) {
ret = This->existsContainer(std::string(name, namelen));
@@ -76,7 +75,8 @@
char *name;
// these must be the same as BDB XML defaults
- long namelen, flags = 0, mode = 0;
+ int namelen;
+ long flags = 0, mode = 0;
XmlContainer::ContainerType type = XmlContainer::NodeContainer;
zval *ztxn = NULL;
PHP_DBXML_GETTHIS(XmlManager);
@@ -108,7 +108,8 @@
PHP_DBXML_METHOD_BEGIN(XmlManager, openContainer)
char *name;
- long namelen, flags = 0, mode = 0;
+ int namelen;
+ long flags = 0, mode = 0;
XmlContainer::ContainerType type = XmlContainer::NodeContainer;
zval *ztxn = NULL;
PHP_DBXML_GETTHIS(XmlManager);
@@ -138,7 +139,7 @@
PHP_DBXML_GETTHIS(XmlManager);
zval *ztxn = NULL;
char *name;
- long namelen;
+ int namelen;
if (SUCCESS == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "s", &name, &namelen)) {
This->removeContainer(std::string(name, namelen));
} else if(SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Os", &ztxn, php_dbxml_XmlTransaction_ce, &name, &namelen)) {
@@ -156,7 +157,7 @@
zval *ztxn = NULL;
XmlTransaction *txn = NULL;
char name, newname;
- long namelen, newnamelen;
+ int namelen, newnamelen;
if (SUCCESS == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "ss", &name, &namelen, &newname, &newnamelen)) {
This->renameContainer(std::string(name, namelen), std::string(newname, newnamelen));
} else if(SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Os", &ztxn, php_dbxml_XmlTransaction_ce, &name, &namelen, &newname, &newnamelen)) {
@@ -174,7 +175,7 @@
PHP_DBXML_METHOD_BEGIN(XmlManager, createMemBufInputStream)
char buffer, bufID;
- long bufferlen, bufIDlen;
+ int bufferlen, bufIDlen;
PHP_DBXML_GETTHIS(XmlManager);
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &buffer, &bufferlen, &bufID, &bufIDlen)) {
return;
@@ -200,7 +201,7 @@
PHP_DBXML_METHOD_BEGIN(XmlManager, createQueryContext)
PHP_DBXML_GETTHIS(XmlManager);
- long rt = (long) XmlQueryContext::LiveValues, et = (long) XmlQueryContext::Eager;
+ int rt = (int) XmlQueryContext::LiveValues, et = (int) XmlQueryContext::Eager;
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|ll", &rt, &et)) {
return;
@@ -228,8 +229,7 @@
zval *ztxn = NULL;
zval *zctx = NULL;
char *query;
- long querylen;
- XmlQueryContext *context;
+ int querylen;
if (SUCCESS == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "s|O", &query, &querylen, &zctx, php_dbxml_XmlQueryContext_ce)) {
if(zctx) {
@@ -264,7 +264,8 @@
zval *ztxn = NULL;
zval *zctx = NULL;
char *query;
- long querylen, flags = 0;
+ int querylen;
+ long flags = 0;
if (SUCCESS == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "s|Ol", &query, &querylen, &zctx, php_dbxml_XmlQueryContext_ce, &flags)) {
if(zctx) {
@@ -346,14 +347,15 @@
return;
XmlContainer cont = php_dbxml_get_XmlContainer_object_pointer(zc TSRMLS_CC);
+ XmlIndexLookup lu;
if(zv == NULL) {
XmlValue value = XmlValue();
- XmlIndexLookup lookup = This->createIndexLookup(cont, std::string(uri, uri_len), std::string(name, name_len), std::string(index, index_len), value, (XmlIndexLookup::Operation) flags);
- php_dbxml_set_XmlIndexLookup_object_factory(return_value, lookup TSRMLS_CC);
+ lu = This->createIndexLookup(cont, std::string(uri, uri_len), std::string(name, name_len), std::string(index, index_len), value, (XmlIndexLookup::Operation) flags);
+ php_dbxml_set_XmlIndexLookup_object_factory(return_value, lu TSRMLS_CC);
} else {
XmlValue value = php_dbxml_get_XmlValue_object_pointer(zv TSRMLS_CC);
- XmlIndexLookup lookup = This->createIndexLookup(cont, std::string(uri, uri_len), std::string(name, name_len), std::string(index, index_len), value, (XmlIndexLookup::Operation) flags);
- php_dbxml_set_XmlIndexLookup_object_factory(return_value, lookup TSRMLS_CC);
+ lu = This->createIndexLookup(cont, std::string(uri, uri_len), std::string(name, name_len), std::string(index, index_len), value, (XmlIndexLookup::Operation) flags);
+ php_dbxml_set_XmlIndexLookup_object_factory(return_value, lu TSRMLS_CC);
PHP_DBXML_ADDREF(getThis());
@@ -383,7 +385,7 @@
zval *zuc = NULL;
char *name;
long flags = 0;
- long namelen;
+ int namelen;
if (SUCCESS == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "s|Ol", &name, &namelen, &zuc, php_dbxml_XmlUpdateContext_ce, &flags)) {
} else if(SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Os|Ol", &ztxn, php_dbxml_XmlTransaction_ce, &name, &namelen, &zuc, php_dbxml_XmlUpdateContext_ce, &flags)) {
} else {
@@ -408,7 +410,7 @@
zval *zuc = NULL;
char *name;
long flags = 0;
- long namelen;
+ int namelen;
if (SUCCESS == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "s|Ol", &name, &namelen, &zuc, php_dbxml_XmlUpdateContext_ce, &flags)) {
} else if(SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Os|Ol", &ztxn, php_dbxml_XmlTransaction_ce, &name, &namelen, &zuc, php_dbxml_XmlUpdateContext_ce, &flags)) {
} else {
@@ -433,7 +435,7 @@
zval *zuc = NULL;
char *name;
long flags = 0;
- long namelen;
+ int namelen;
if (SUCCESS == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "s|Ol", &name, &namelen, &zuc, php_dbxml_XmlUpdateContext_ce, &flags)) {
} else if(SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Os|Ol", &ztxn, php_dbxml_XmlTransaction_ce, &name, &namelen, &zuc, php_dbxml_XmlUpdateContext_ce, &flags)) {
} else {
@@ -454,7 +456,7 @@
PHP_DBXML_GETTHIS(XmlManager);
std::string buffer = This->getHome();
- RETURN_STRINGL((char *)buffer.data(), buffer.length(), 1);
+ DBXML_RETURN_STRINGL((char *)buffer.data(), buffer.length(), 1);
PHP_DBXML_METHOD_END()
diff -Naur -x '*xerces-c-src*' -x '*build_unix*' -x '*configure' -x '*Builder.pm' -x '*More.pm' -x'*const-c.inc' -x '*setup.py' dbxml-2.3.11.orig/dbxml/src/php/php_dbxml_modify.cpp dbxml-2.3.11-64/dbxml/src/php/php_dbxml_modify.cpp
--- dbxml-2.3.11.orig/dbxml/src/php/php_dbxml_modify.cpp 2006-10-30 18:46:04.000000000 +0100
+++ dbxml-2.3.11-64/dbxml/src/php/php_dbxml_modify.cpp 2008-06-04 15:14:42.000000000 +0200
@@ -29,7 +29,7 @@
zval zexp, zres;
long type;
char name, content;
- long name_len, content_len;
+ int name_len, content_len;
PHP_DBXML_STUFFED_THIS(XmlModify);
if (SUCCESS == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET,
@@ -66,7 +66,7 @@
zval zexp, zres;
long type;
char name, content;
- long name_len, content_len;
+ int name_len, content_len;
PHP_DBXML_STUFFED_THIS(XmlModify);
if (SUCCESS == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET,
@@ -103,7 +103,7 @@
zval zexp, zres;
long type, location = -1;
char name, content;
- long name_len, content_len;
+ int name_len, content_len;
PHP_DBXML_STUFFED_THIS(XmlModify);
if (SUCCESS == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET,
@@ -140,7 +140,7 @@
zval *zexp;
char *content;
- long content_len;
+ int content_len;
PHP_DBXML_STUFFED_THIS(XmlModify);
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Os", &zexp, php_dbxml_XmlQueryExpression_ce,
@@ -159,7 +159,7 @@
zval *zexp;
char *content;
- long content_len;
+ int content_len;
PHP_DBXML_STUFFED_THIS(XmlModify);
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Os", &zexp, php_dbxml_XmlQueryExpression_ce,
@@ -208,8 +208,6 @@
PHP_DBXML_METHOD_BEGIN(XmlModify, execute)
- char *encoding;
- int encoding_len;
zval zv, zqc, zuc, zt;
PHP_DBXML_STUFFED_THIS(XmlModify);
diff -Naur -x '*xerces-c-src*' -x '*build_unix*' -x '*configure' -x '*Builder.pm' -x '*More.pm' -x'*const-c.inc' -x '*setup.py' dbxml-2.3.11.orig/dbxml/src/php/php_dbxml_querycontext.cpp dbxml-2.3.11-64/dbxml/src/php/php_dbxml_querycontext.cpp
--- dbxml-2.3.11.orig/dbxml/ -
E-Business Suite 11.5.10.2 Procedure for OpenSuse 10.2
I recently installed 11.5.10.2 on an OpenSuSE 10.2 machine and found considerable differences between SLES10/SuSE10.1 and OpenSuSE 10.2. The following instructions will install a fully functional E-Business Suite:
Setup the O/S per the following guide:
Oracle 10gR2 on openSUSE 10.2
http://ftp.novell.com/partners/oracle/docs/10gR2_openSUSE102_introduction.pdf
Install Suse Linux 10.2 with at least the following groups:
Graphical Base System
KDE Desktop Environment
C/C++ Compiler and Tools
Under partitioning, ensure you have 2GB minimum for swap. I recommend starting with 4 or 6 GB of swap (2x-3x physical ram).
create dba and appl groups
create oracle and applmgr user
as root:
cd /usr/lib
ln -s libdb.so.2 libdb.so.3
download compat-gdbm-1.8.0-7.i586.rpm from Suse 10.0 repository
http://suse.mirrors.tds.net/pub/opensuse/distribution/SL-10.0-OSS/inst-source/suse/i586/compat-gdbm-1.8.0-7.i586.rpm
rpm -Uhv compat-gdbm-1.8.0-7.i586.rpm
download openmotif21-libs-2.1.30MLI4-143.i586.rpm from Suse 10.1 repository
http://suse.mirrors.tds.net/pub/opensuse/distribution/SL-10.1/inst-source/suse/i586/openmotif21-libs-2.1.30MLI4-143.i586.rpm
rpm -Uhv openmotif21-libs-2.1.30MLI4-143.i586.rpm
download openmotif22-libs-2.2.4-28.i586.rpm from Suse 10.2 repository
http://suse.mirrors.tds.net/pub/opensuse/distribution/10.2/repo/oss/suse/i586/openmotif22-libs-2.2.4-28.i586.rpm
rpm -Uhv openmotif22-libs-2.2.4-28.i586.rpm
add the following installation repositories:
http://suse.mirrors.tds.net/pub/opensuse/distribution/10.2/repo/oss/suse/
http://suse.mirrors.tds.net/pub/opensuse/distribution/10.2/repo/non-oss/suse/
Verify you have the following packages:
* binutils-2.17.50.0.5-21
* compat-2006.1.25-29
* db1-1.85-119
* db1-devel-1.85-119
* dovecot-1.0.rc14-7
* expat-2.0.0-32
* compat-expat1-1.95.8-26
* gcc-4.1.3-29
* gcc-c++-4.1.3-29
* gcc_old-2.95.3-175.2
* glibc-2.5-25
* gnome-libs-1.4.1.7-733
* gnome-libs-devel-1.4.1.7-733
* libaio-0.3.104-32
* libaio-devel-0.3.104-32
* libgcc41-4.1.2_20061115-5
* libstdc++41-4.1.2_20061115-5
* libstdc++41-devel-4.1.2_20061115-5
* compat-libstdc++-5.0.7-41
* make-3.81-23
* openmotif21-libs-2.1.30MLI4
* orarun-1.9-52
* pdksh-5.2.14-822
* sysstat-6.0.2-36.2
* xscreensaver-5.01-14
create /etc/init.d/xvfbserver
#!/bin/sh
### BEGIN INIT INFO
# Provides: xvfb
# Required-Start: $network $syslog $remote_fs
# Should-Start: $time ypbind sendmail
# Required-Stop: $network $syslog $remote_fs
# Should-Stop: $time ypbind sendmail
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Short-Description: xvfb daemon providing virtual framebuffer support
# Description: Start the xvfb service on host.domain:50
### END INIT INFO
nohup /usr/bin/X11/Xvfb :50 -screen 0 1024x800x8 -pn -fp /usr/share/fonts/misc -sp /usr/lib/xserver/SecurityPolicy &
export DISPLAY=host.domain:50.0
/usr/bin/xhost +
nohup /usr/bin/mwm &
Once xvfbserver is saved, type insserv xvfbserver in /etc/init.d as root.
This script provides dynamic gif generation for many self service/framework applications and Motif Window Manager for preventing REP-3000 errors running bitmapped concurrent requests. If you do not mind the square gray boxes or never run bitmapped reports, you can skip this step.
If you want to test Workflow notifications, edit /etc/dovecot/dovecot.conf and change:
#disable_plaintext_auth = yes
to
disable_plaintext_auth = no
SSL enabled IMAP for 11i was only enabled after ATG.H RUP 3, and not really required small training environments.
Goto Yast->System->System Services (Runlevels)
Highlight Dovecot and enable it.
Goto Yast->Network Services->Mail Transfer Agent
Leave the Connection Type on Permanent and click next
Leave Outgoing Server blank and hit next.
Check the Accept remote SMTP connections and Open port in firewall, then hit next.
Run Online Update for all updateable packages. This will bring the Sun Java plugin up to 1.5.0_10.
http://ftp.novell.com/partners/oracle/sles-10/orarun.rpm
rpm -Uhv orarun.rpm
Run “/usr/sbin/rcoracle start“ to set kernel parameters.
1) Setup the environment as you would for running Applications on RH 4 or SLES9
I.E. follow Oracle Applications Installation Update Notes, Release 11i (11.5.10.2)
http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=316806.1
2) Remove any LD_ASSUME_KERNEL references in O/S /etc/profile.d files. While in oracle and applmgr .profile, add the following:
export LD_PRELOAD=/usr/lib/libInternalSymbols.so
3) Comment out LD_ASSUME_KERNEL entries in $ORACLE_HOME/appsutil/bin/adgetlnxver.sh and $AD_TOP/bin/adgetlnxver.sh
if [ ${setflag}x = "x" -a $os = "Suse" ]; then
# LD_ASSUME_KERNEL="2.4.21"
# export LD_ASSUME_KERNEL
os="Suse"
fi
if [ ${setflag}x = "x" -a $os = "RH" ]; then
# LD_ASSUME_KERNEL="2.4.19"
# export LD_ASSUME_KERNEL
os = "RH"
fi
If doing a rapid install, the database startup will fail and rapidwiz will prompt to ignore or retry. At this point, edit $ORACLE_HOME/appsutil/bin/adgetlnxver.sh as shown above and click on retry. It will then run to the autoconfig step at the end and error out. Just hit cancel, edit $AD_TOP/bin/adgetlnxver.sh as shown above.
At this point, go to $APPL_TOP/admin, and in sid_host.xml,
replace
<sun_plugin_ver oa_var="s_sun_plugin_ver">1.4.2_04</sun_plugin_ver>
with
<sun_plugin_ver oa_var="s_sun_plugin_ver">1.5.0_10</sun_plugin_ver>
Then run autoconfig.
This will allow you to open 11i forms that require Jinitiator in Windows via the Sun Java Plugin in either Firefox or SeaMonkey (the Mozilla replacement) on your Suse 10.2 machine once allowing popups and checking always trust Oracle content on the initial java warning.
Look at your port pool selections while running autoconfig and comment out any ports for /etc/services and reboot. Port 8201 was preventing apache web pls listener from starting.
4) In order to relink cplex library executables (MSC, MSO, MSR, MST, WIP, etc), edit $AD_TOP/bin/adrelinknew.sh and add the following LD option (-Wl,--noinhibit-exec) in the LINUX section:
LINUX)
LDFLAGS='-s -L$(ORACLE_HOME)/lib -L$(ORACLE_HOME)/lib/stubs -ldl'
DEBUG_LDFLAGS='-g -L$(ORACLE_HOME)/lib -L$(ORACLE_HOME)/lib/stubs -ldl'
exe_line='ELF .*executable'
SHRLIB_LD='gcc'
LD='gcc'
SHRLIB_LDFLAGS='-L$(ORACLE_HOME)/lib -L$(ORACLE_HOME)/lib/stubs -shared'
if test -f "/etc/redhat-release"; then
CPP_LIBS='/usr/lib/libstdc++-2-libc6.1-1-2.9.0.so'
elif test -f "/etc/SuSE-release"; then
CPP_LIBS='/usr/lib/libstdc++.so.2.9'
else
CPP_LIBS=''
fi
CPP='g++'
CPP_LDFLAGS='-s -L$(ORACLE_HOME)/lib -L$(ORACLE_HOME)/lib/stubs
set CPP_LDFLAGS='-s -L$(ORACLE_HOME)/lib -L$(ORACLE_HOME)/lib/stubs
to CPP_LDFLAGS='-s -L$(ORACLE_HOME)/lib -L$(ORACLE_HOME)/lib/stubs -Wl,--noinhibit-exec'
After this chance, you can apply any MRP, ASCP patch and all executables will relink correctly. You can also use adadmin to relink all executables and it completes without error.
5) For Discoverer 4.1.48.08, Follow Metalink Note 280598.1 Discoverer 4i On Linux: Required Patch and Configuration for Discoverer Server Stability to use JDK 1.3.1 and oadj. I updated the autoconfig template files with this change after applying 3895177. Discoverer viewer and plus standard BIS reports all open correctly on SLES-10/Suse 10.1
6) If you want to apply Developer 6i Patchset 17 or 18 to your 11i system, edit $ORACLE_HOME/forms60/lib/cus_forms60w.mk and ins_forms60w.mk and remove the -Bstatic
BUILD_FORMS_SO_FILE=$(SOSD_FORMS_LDSHARED_SO) \
context.o create.o destroy.o formsapi.o iauasst.o iauexcep.o \
ifjapi.o objlib.o persistc.o \
$(LIBJAPI) \
$(JAPI_PLSQL) \
$(FDESGEN_BUILT_INS) \
sslidtab.o \
$(LLIBD2F) \
$(LLIBIE) $(LLIBIL) $(LLIBIE) $(LLIBIG) $(LLIBIF_IFG) $(LLIBIG) \
$(LLIBIM_IMG) $(LLIBIW_IWG) $(LLIBID_IDD) $(LLIBID_IDL) $(LLIBID_IDG) \
$(LLIBID_ID2) $(LLIBID_IDG) $(LLIBID_ID1) $(LLIBIG_IGO) $(LLIBIT_ITG) \
$(LLIBIHM) $(LLIBIB) $(LLIBIM_IMG) $(LLIBIP_IPG) $(LLIBIC_ICG) $(LLIBIP_IPC) \
$(LLIBIM_IMC) $(LLIBIF_IFC) $(LLIBIJ_IJC) $(LLIBIW_IWC) $(LLIBIPLSD) \
$(LLIBIO_IOD) $(LLIBIO_IOC) $(LLIBIC) $(LLIBSOSD) $(LLIBII_IIC) $(LLIBIT) \
$(LLIBIC) $(LLIBIP_IPC) \
$(DEPLIBSM) \
-Bdynamic $(LLIBTHREAD) -lnsl -ldl -lm -lc
due to:
ar x $ORACLE_HOME/lib/libifjapi60.a context.o create.o destroy.o formsapi.o \
iauasst.o iauexcep.o ifjapi.o objlib.o persistc.o
/usr/bin/ld -o $ORACLE_HOME/lib/libifjapi60.so -z muldefs -G -L$ORACLE_HOME/lib/ context.o create.o destroy.o formsapi.o iauasst.o iauexcep.o ifjapi.o objlib.o persistc.o $ORACLE_HOME/lib/libifjapi60.a $ORACLE_HOME/forms60/lib/ipcpcr.o $ORACLE_HOME/forms60/lib/ipdecr.o $ORACLE_HOME/forms60/lib/ipkbu.o sslidtab.o -ld2f -lie -lil -lie -lig -lifg -lig -limg -liwg -lidd -lidl -lidg -lid2 -lidg -lid1 -ligo -litg -lihm -lib1 -limg -lipg -licg -lipc -limc -lifc -liwc -liplsd -liod -lioc -lic -lsosd -liic -lit -lic -lipc -lnn60 -lobx60 -lzrc60 -lge60 -lvgs60 -lde60 -lucol60 -lca60 -lnvu60 -lnvc60 -lnvs60 -luicc60 -lmma60 -lmmiw60 -lmmov60 -lmma60 -lmmos60 -lmmoi60 -lmmia60 -lmmft60 -lmmcm60 -luihx60 -luc60 -luipr60 -luimotif60 -lot60 -lrem60 -lree60 -lrec60 -luiimg60 -luimotif60 -luipr60 -luiimg60 -luc60 -lrem60 -luimotif60 -luia60 -ltknqap60 -luipr60 -luimotif60 -lutt60 -lix60 -lixd60 -lrod60 -lror60 -lros60 -lrod60 -lror60 -lros60 -lrod60 -luat60 -lutc60 -lutl60 -lutsl60 -lplsf -lplsb -lextp -lpsd -lplsf -lplsb -lextp -lslax -lsql $ORACLE_HOME/lib/nautab.o $ORACLE_HOME/lib/naeet.o $ORACLE_HOME/lib/naect.o $ORACLE_HOME/lib/naedhs.o -lnetv2 -lnttcp -lnetwork_d -lnz -lnzr -lnsslb8 -lbcert -lncr -lnetv2 -lnttcp -lnetwork_d -lnz -lnzr -lnsslb8 -lbcert -lclient -lvsn -lcommon -lgeneric -lmm -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 -lnetv2 -lnttcp -lnetwork_d -lnz -lnzr -lnsslb8 -lbcert -lncr -lnetv2 -lnttcp -lnetwork_d -lnz -lnzr -lnsslb8 -lbcert -lclient -lvsn -lcommon -lgeneric -lepc -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 -lclient -lvsn -lcommon -lgeneric -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 -ldl -lm -lpthread -ldl -lpthread -lm -L/usr/lib -lm -L/usr/X11R6/lib -lXm -L/usr/X11R6/lib/ -L/usr/X11R6/lib/ -lXt -lX11 -lm -lix60 -lixd60 -lX11 -lnlsrtl3 -lXp -lXext -Bdynamic -lnsl -ldl -lm -lc -Bstatic
/usr/bin/ld: -static and -shared may not be used together
make: *** [$ORACLE_HOME/lib/libifjapi60.so] Error 1
At this point, you can follow the 10gR2 interop note to upgrade the 11.5.10.2 9.2.0.6 database to 10.2.0.2 via dbua:
Follow the latest 10gR2/11i Interoperability Notes (362203.1)
Oracle Applications Release 11i with Oracle 10g Release 2 (10.2.0)
http://metalink.oracle.com/metalink/plsql/showdoc?db=NOT&id=362203.1
I have relinked every Oracle Home and applications executables without errors.Great. The only other setup I would add is if your machine's wired ethernet is ever disconnected, the default setup for OpenSuse 10.2 is to have the interface up when the cable is plugged. In that case, you cannot ping your host if you use static IP address for wired connection and DHCP for wireless. Open YaST, Network Devices. Highlight the wired interface, and select Edit. Then on the General Tab, change the Device Activation from On Cable Connection to At Boot Time.
-
Installation issue on opensuse 11
Hey All,<br /><br />Im a Windows guy still struggling with Linux set-upsso take it easy on me! :) and Im having a hard time getting blaze installed and running.<br /><br />This is what Ive done so far. I've successfully set-up the latest copy of openSuse11 64 bit version with: <br /> Tomcat 6.0.16 (Tested and running)<br /> ANT 1.7<br /> JAVA SDK & JDK 6<br /> Junit (ant-junit, junit, junit-javadoc, junit-manual, libcppunit-1_12-0)<br /> Downloaded both blazeds.war and blazeds_src_3-0-0-544.zip<br /> From Tomcat Manager I uploaded the blazeds.war file successfully.<br /> I unzipped the zip file into root/blazeds and from a command prompt ran ant. These are the errors Im getting:<br /> * [taskdef] Could no load definitions from resource net/sf/antcontrib/antcontrib.properties. It could not be found. (Repeats about a dozen times)<br /> * BUILD FAILED<br /> * /root/blazeds/build.xml:445: The following error occurred while executing this line:<br /> * /root/blazeds/resources/fds-ajax-bridge/build.xml:52 Problem: failed to create task or type if Cause: The name is undefined.<br /> * Action: Check the spelling<br /> * Action: Check that any custom tasks/types have been declared<br /> * Action: Check that any <presetdef>/<mac rodef> declarations have taken place.<br /><br />Variables:<br />env | grep _HOME<br /><br />ANT_HOME = /usr/share/ant<br />JRE_HOME =/usr/lib64/jvm/java/jre<br />JAVA_HOME =/usr/lib64/jvm/java/jre<br />SDK_HOME =/usr/lib64/jvm/java/jre<br />JDK_HOME =/usr/lib64/jvm/java/jre<br /><br />Any ideas?<br />Brad
Hi Alex,
Sorry I've been away and just got back. Presently I'm working from jrun4 and would like to use blazeds instead. Once my projects get going I would need the ability to use my customers already made linux/tomcat boxes and just plug in blaze.
I look forward to your answer.
Brad
On Fri, Aug 1, 2008 at 12:57 PM, Alex Glosband
<
[email protected]> wrote:
A new message was posted by Alex Glosband in
Configuration and Getting Started Discussion --
Installation issue on opensuse 11
Are you just trying to install and run BlazeDS? Why do you need to build from source?
-Alex
View/reply at
Installation issue on opensuse 11
Replies by email are OK.
Use the
unsubscribe form to cancel your email subscription. -
I would like to install the Oracle 11 client on OpenSuse 12-64, but when I try, the installer shows me a list of about 20 kernel parameters and packages that are incorrect. The packages required by the Oracle client are all older versions than the ones I have available.
I tried to install the latest client version (11.2.0.2.0), hoping it would use newer packages, but it just aborts with the error .../.oui: cannot execute binary file.
My Oracle 11g R1 database is running on OpenSuse 11.1-64 quite nicely by the way - I had no issues with packages there...
My questions are:
1. Can any one point me to the prerequisite list for the Oracle Client on Linux? Maybe I can find another Linux distro or OpenSuse version that works...
2. Can anyone suggest a way out of this mess that doesn't require installing a bunch of ancient packages?
Thanks in advance for any light you can throw on this issue...You find the prerequisites in the installation guide, additional remarks may be in the patchset readme files:
http://docs.oracle.com/cd/E11882_01/install.112/e24325/toc.htm
If you have already newer packages, you may ignore the prerequisite checks. But OpenSuse 12-64 is not supported, no guarantee that it works at the end.
Werner -
openSuse 11.0 will be shipped with E.U.L.A. Take a look...
The Software may contain an automatic disabling mechanism that prevents its use after a certain period of time, so You should back up Your system and take other measures to prevent any loss of files or data.
lol lol lol lol lol lol lol!!!
The full E.U.L.A.
openSUSE 11.0
Novell Pre-Release Software License Agreement
PLEASE READ THIS AGREEMENT CAREFULLY. BY INSTALLING OR OTHERWISE USING
THE SOFTWARE (INCLUDING ITS COMPONENTS), YOU AGREE TO THE TERMS OF
THIS AGREEMENT. IF YOU DO NOT AGREE WITH THESE TERMS, DO NOT DOWNLOAD,
INSTALL OR USE THE SOFTWARE AND, IF APPLICABLE, RETURN THE ENTIRE
UNUSED PACKAGE TO THE RESELLER WITH YOUR RECEIPT FOR A REFUND. THE
SOFTWARE MAY NOT BE SOLD, TRANSFERRED, OR FURTHER DISTRIBUTED WITHOUT
PRIOR WRITTEN AUTHORIZATION FROM NOVELL.
RIGHTS AND LICENSES
This Novell Software License Agreement ("Agreement") is a legal
agreement between You (an entity or a person) and Novell, Inc.
("Novell") with respect to the software product identified in the
title of this Agreement, media (if any) and accompanying documentation
(collectively the "Software").
The Software is a collective work of Novell. You may make and use
unlimited copies of the Software for Your distribution and use within
Your Organization. You may make and distribute unlimited copies of
the Software outside Your organization provided that: 1) You receive
no consideration; and, 2) you do not bundle or combine the Software
with another offering (e.g., software, hardware, or service). The
term "Organization" means a legal entity, excluding subsidiaries and
affiliates with a separate existence for tax purposes or for legal
personality purposes. An example of an Organization in the private
sector would be a corporation, partnership, or trust, excluding any
subsidiaries or affiliates of the organization with a separate tax
identification number or company registration number. In the public
sector, an example of Organization would be a specific government
body or local government authority.
The Software is a modular operating system. Most of the components
are open source packages, developed independently, and accompanied by
separate license terms. Your license rights with respect to
individual components accompanied by separate license terms are
defined by those terms; nothing in this Agreement (including, for
example, the "Other License Terms and Restrictions," below) shall
restrict, limit, or otherwise affect any rights or obligations You may
have, or conditions to which You may be subject, under such license
terms.
While the license terms for a component may authorize You to
distribute the component, You may not use any Novell marks (e.g., SUSE
and SUSE LINUX) in distributing the component, whether or not the
component contains Novell marks.
OTHER LICENSE TERMS AND RESTRICTIONS
The Software is protected by the copyright laws and treaties of the
United States ("U.S.") and other countries and is subject to the
terms of this Agreement. The Software is licensed to You, not sold.
The Software may be bundled with other software programs ("Bundled
Programs"). Your license rights with respect to Bundled Programs
accompanied by separate license terms are defined by those terms;
nothing in this Agreement shall restrict, limit, or otherwise affect
any rights or obligations You may have, or conditions to which You may
be subject, under such license terms.
Novell reserves all rights not expressly granted to You. You may not:
(1) reverse engineer, decompile, or disassemble the Software except
and only to the extent it is expressly permitted by applicable law or
the license terms accompanying a component of the Software; or (2)
transfer the Software or Your license rights under this Agreement, in
whole or in part.
Since the Software is of pre-release quality, You should not use the
Software in a commercial or production system. The Software has not
been fully tested and may contain errors and omissions. The Software
should be used only in a testing environment. Novell does not
guarantee that a commercial version of the Software will become
generally available to the public, that target dates will be met, or
that associated products will be released. The entire risk arising
out of Your use of the Software remains with You. The Software may
contain an automatic disabling mechanism that prevents its use after a
certain period of time, so You should back up Your system and take
other measures to prevent any loss of files or data. Use of the
Software is entirely at Your own risk.
You understand and agree that Novell may use any feedback or
information You provide and You hereby grant Novell a perpetual and
irrevocable license to use all such feedback and information for any
purpose without compensation to You, provided that Novell shall not
publicly reference Your name in connection therewith. You represent
and warrant that such feedback and information will not include any
proprietary or confidential information of You or any third party and
that You have full authority to grant the foregoing license.
OWNERSHIP RIGHTS
No title to or ownership of the Software is transferred to You. Novell
and/or its licensors owns and retains all title and ownership of all
intellectual property rights in the Software, including any
adaptations or copies. You acquire only a license to use the Software.
THE SOFTWARE AND OTHER CONFIDENTIAL INFORMATION IS PROVIDED TO YOU
"AS IS" WITHOUT WARRANTY OF ANY KIND. THE ENTIRE RISK AS TO THE
RESULTS AND PERFORMANCE OF THE CONFIDENTIAL INFORMATION IS ASSUMED BY
YOU. NOVELL DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
NONINFRINGEMENT. NOVELL DOES NOT WARRANT THAT THE SOFTWARE WILL
SATISFY YOUR REQUIREMENTS OR THAT THE OPERTATION OF THE SOFTWARE WILL
BE UNINTERRUPTED. Some jurisdictions do not allow certain disclaimers
and limitations of warranties, so portions of the above limitations
may not apply to You. This limited warranty gives You specific rights
and You may also have other rights which vary from state to state.
Non-Novell Products. The Software may include or be bundled with
hardware or other software programs licensed or sold by a licensor
other than Novell. NOVELL DOES NOT WARRANT NON-NOVELL PRODUCTS. ANY
SUCH PRODUCTS ARE PROVIDED ON AN "AS IS" BASIS. ANY WARRANTY SERVICE
FOR NON-NOVELL PRODUCTS IS PROVIDED BY THE PRODUCT LICENSOR IN
ACCORDANCE WITH THE APPLICABLE LICENSOR WARRANTY.
LIMITATION OF LIABILITY
(a) Consequential Losses. NEITHER NOVELL NOR ANY OF ITS LICENSORS,
SUBSIDIARIES, OR EMPLOYEES WILL IN ANY CASE BE LIABLE FOR ANY SPECIAL,
INCIDENTAL, CONSEQUENTIAL, INDIRECT, TORT, ECONOMIC OR PUNITIVE
DAMAGES ARISING OUT OF THE USE OF OR INABILITY TO USE THE SOFTWARE,
INCLUDING WITHOUT LIMITATION LOSS OF PROFITS, BUSINESS OR DATA, EVEN
IF ADVISED OF THE POSSIBILITY OF THOSE DAMAGES.
(b) Direct Damages. IN NO EVENT WILL NOVELL'S AGGREGATE LIABILITY FOR
DIRECT DAMAGES TO PROPERTY OR PERSON (WHETHER IN ONE INSTANCE OR A
SERIES OF INSTANCES) EXCEED 1.25 TIMES THE AMOUNT PAID BY YOU FOR THE
SOFTWARE OUT OF WHICH SUCH CLAIM AROSE [OR $50 (U.S.) IF YOU RECEIVED
THE SOFTWARE FREE OF CHARGE]. The above exclusions and limitations
will not apply to claims relating to death or personal injury. In
those jurisdictions that do not allow the exclusion or limitation of
damages, Novell's liability shall be limited or excluded to the
maximum extent allowed within those jurisdictions.
GENERAL TERMS
Term. This Beta Agreement becomes effective on the date You legally
acquire the Software and will remain in force until terminated as
follows. This Beta Agreement shall terminate upon the earlier of: (i)
90 days from the date of installation of the Software, (ii) the next
release of a pre-release version, if any, of the Software, (iii) first
commercial shipment by Novell of the Software, (iv) written notice of
termination by either party, or (v) the date on which You breach any
of the terms of this Beta Agreement. Upon termination of this Beta
Agreement, You must cease use of the Software, return to an original
state any actions performed by the Software, destroy the original and
all copies of the Software or return them to Novell, and delete the
Software entirely from Your systems.
Benchmark Testing. This benchmark testing restriction applies to You
if You are a software vendor or if You are performing testing on the
Software at the direction of or on behalf of a software vendor. You
may not, without Novell's prior written consent not to be unreasonably
withheld, publish or disclose to any third party the results of any
benchmark test of the Software. If You are a vendor of products that
are functionally similar to or compete with the Software ("Similar
Products"), or are acting on behalf of such a vendor, and You publish
or disclose benchmark information on the Software in violation of this
restriction, then notwithstanding anything to the contrary in the
Similar Product's end user license agreement, and in addition to any
other remedies Novell may have, Novell shall have the right to perform
benchmark testing on Similar Products and to disclose and publish that
benchmark information and You hereby represent that You have authority
to grant such right to Novell.
Transfer. This Agreement may not be transferred or assigned without
the prior written approval of Novell.
Law and Jurisdiction. This Agreement is governed by the laws of the
State of Utah, U.S. Any action at law relating to this Agreement may
only be brought before the courts of competent jurisdiction of the
State of Utah. If, however, Your country of principal residence is a
member state of the European Union or the European Free Trade
Association, this Agreement is governed by the laws of that country,
and any action at law may only be brought before a court of competent
jurisdiction of that country.
Entire Agreement. This Agreement and the Upgrade/Additive Agreement
(if applicable) sets forth the entire understanding and agreement
between You and Novell and may be amended only in a writing signed by
both parties. NO LICENSOR, DISTRIBUTOR, DEALER, RETAILER, RESELLER,
SALES PERSON, OR EMPLOYEE IS AUTHORIZED TO MODIFY THIS AGREEMENT OR
TO MAKE ANY REPRESENTATION OR PROMISE THAT IS DIFFERENT FROM, OR IN
ADDITION TO, THE TERMS OF THIS AGREEMENT.
Waiver. No waiver of any right under this Agreement will be effective
unless in writing, signed by a duly authorized representative of the
party to be bound. No waiver of any past or present right arising from
any breach or failure to perform will be deemed to be a waiver of any
future right arising under this Agreement.
Severability. If any provision in this Agreement is invalid or
unenforceable, that provision will be construed, limited, modified or,
if necessary, severed, to the extent necessary, to eliminate its
invalidity or unenforceability, and the other provisions of this
Agreement will remain unaffected.
Export Compliance. Any person or entity exporting or re-exporting
Novell products directly or indirectly and via any means, including
electronic transfer, is wholly responsible for doing so in accordance
with the U.S. Export Administration Regulations and the laws of host
countries. Novell assumes no responsibility or liability for your
failure to obtain any necessary export approvals. Approvals are
dependent upon an item's technical characteristics, the destination,
end-use and end-user, as well as other activities of the end user.
Specifically, no Novell product may be exported to embargoed or
otherwise restricted countries or end users. Please consult the
Bureau of Industry and Security web page and other sources before
exporting Novell products from the U.S. and familiarize yourself with
the laws of destination countries before re-exporting Novell products.
This provision shall survive the expiration or earlier termination of
this Agreement. Please refer to the export matrix for Novell products
for more information on exporting Novell Software. You can download a
copy from http://www.novell.com/info/exports/ or obtain a copy from
your local Novell office.
U.S. Government Restricted Rights. Use, duplication, or disclosure by
the U.S. Government is subject to the restrictions in FAR 52.227-14
(June 1987) Alternate III (June 1987), FAR 52.227-19 (June 1987), or
DFARS 252.227-7013 (b)(3) (Nov 1995), or applicable successor
clauses. Contractor/ Manufacturer is Novell, Inc., 1800 South Novell
Place, Provo, Utah 84606.
Other. The application of the United Nations Convention of Contracts
for the International Sale of Goods is expressly excluded.
©1993, 2000-2006 Novell, Inc. All Rights Reserved.
Novell, the "N" logo, and SUSE LINUX are registered trademarks of
Novell, Inc. and openSUSE and the SUSE "geeko" logo are trademarks of
Novell, Inc. in the United States and other countries. Linux is a
registered trademark of Linus Torvalds. Third party trademarks are
property of their respective owners.Well I'm not surprised that some people jump on anything Suse does, it annoys me no one wants to mention the good they do, do.
They sponsor a lot of development for a lot of things, shame rather than sniping at other distros we can't just work together and agree to disagree. Whilst we may disagree with bits I bet we use a fair few bits that are/have been sponsored by Novell/Suse. SCO....
I also think there development model is quite unique/minority to which this thesis does a good job of showing. http://janfredrik.wordpress.com/master-thesis/
...<snip>...
Siobhan O'Mahony's research finds that these firms have to handle a tension between openness and control in their product development, but little research has been done to detail how this balance is achieved.
...<snip>...
Last edited by FeatherMonkey (2008-06-05 12:25:59) -
Keyboard settings problem Java Studio Enterprise 8.1 on OpenSUSE 10.2
I have of Sun Java Studio Enterprise 8.1 installed on OpenSUSE 10.2 x86-64 using KDE. I use Finnish keyboard, the same keyboard is used in Swedish, too.
For some reason I haven't been able to use the FI/SE keyboard layout with the IDE. The keyboard behaves like an US keyboard.
I have tried to use private properties of my project nbproject/private/private_fi_FI_EURO.properties but this doesn't help. I have tried to edit jstudio.conf with --locale fi:FI . It didn't help.- Do the demo programs that come with jdk run fine with the keyboard layout? For instance: <jdkdir>//demo/jfc/Stylepad
- Setting the locale within ide would probably only work for the localization of strings within the ide itself.
For instance, from the following the FAQ on encoding:
http://wiki.netbeans.org/wiki/view/FaqI18nFileEnc
If you use the UNIX/Linux platform, you can start the IDE with the UTF-8 locale.
Most modern UNIX/Linux platforms support UTF-8 locales.
For example, if you use Japanese,
% export LANG=ja_JP.UTF-8
% netbeans
... There is no way in Windows to change the locale at IDE startup.In other words, the locale should perhaps be set at the OS , JVM level and cannot be configured in netbeans.
- http://java.sun.com/javase/6/docs/technotes/guides/intl/locale.doc.html#input -
Linux Install (Opensuse 12.2) damage Bios in Lenovo G480
Hello,
Actually I bought the Lenovo G480. Once Opensuse 12.2 was Installed, for some reason i cant enter to the Bios with F2... if I try with F12 show a lot of times "opensuse" and at last the Ethernet, HD and CD for boot.
I cant find the bios for this model,
Can you help me please? Sorry for my english Im Chilean
ThanksHi
Welcome To Lenovo Community
We are really sorry to hear about the issue you are facing,
You'll want to run these commands in the command prompt provided on the install disc:
bootrec.exe /fixmbr
bootrec.exe /rebuildbcd
After that check
Do give this a try and let us know
Hope This Helps
Cheers!!!
WW Social Media
Important Note: If you need help, post your question in the forum, and include your system type, model number and OS. Do not post your serial number.
Did someone help you today? Press the star on the left to thank them with a Kudo!
If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"!
Follow @LenovoForums on Twitter!
How to send a private message? --> Check out this article.
English Community Deutsche Community Comunidad en Español -
Linking error installing 10.2g x86_64 on OpenSuSE 10.3 x86_64
On a fresh OpenSuSE 10.3 x86_64 I try to install 10.2g x86_64.
The OpenSuSE 10.3 is installed according to http://en.opensuse.org/Oracle_on_openSUSE with the C/C++ Development and 32-bit Runtime Environment patterns. I've deselected the Multimedia, Office Software, Desktop Effects, Graphics and Games patterns as they have nothing to do on a server...
I've installed libaio and orarun.
The other change I made from the default is that I use /srv/oracle instead of /opt/oracle. This change to corrected in /etc/profile.d/oracle.sh and /etc/sysconfig/oracle
65% into the linking a get the error below.
Afterwards I've tried to install gcc41, libstdc++ and their 32bit packages but it doesn't change a thing.
What am I missing?
The errorlogs first from installActionsXXX.log and then from make.log
/srv/oracle/oraInventory/logs/installActions2007-12-15_08-07-59PM.log:
INFO: ----------------------------------
INFO: Calling Action unixActions10.2.0.1.0 make
registerOnly = false
installMakePath = /usr/bin/make
installMakeFileName = /srv/oracle/product/10.2/db_1/sysman/lib/ins_emdb.mk
installTarget = collector
undoMakeFileName =
installArguments = ORACLE_HOME=/srv/oracle/product/10.2/db_1,
logFile = /srv/oracle/product/10.2/db_1/install/make.log
undoTarget =
progMsg = Relinking SGA fetchlet and nmccollector binary
INFO: The output of this make operation is also available at: '/srv/oracle/product/10.2/db_1/install/make.log'
INFO:
INFO: Start output from spawned process:
INFO: ----------------------------------
INFO:
INFO: make -f /srv/oracle/product/10.2/db_1/sysman/lib/ins_emdb.mk relink_exe EXENAME=nmccollector
INFO: make[1]: Entering directory `/srv/oracle/product/10.2/db_1/sysman/lib'
gcc -o /srv/oracle/product/10.2/db_1/sysman/lib/nmccollector -L/srv/oracle/product/10.2/db_1/lib/ -L/srv/oracle/product/10.2/db_1/sysman/lib/ `cat /srv/oracle/product/10.2/db_1/li
b/sysliblist` -Wl,-rpath,/srv/oracle/product/10.2/db_1/lib -lm `cat /srv/oracle/product/10.2/db_1/lib/sysliblist` -ldl -lm -L/srv/oracle/product/10.2/db_1/lib -Wl,-export-dynamic
/srv/oracle/product/10.2/db_1/sysman/lib/snmccolm.o /srv/oracle/product/10
INFO: .2/db_1/sysman/lib/libnmccol.a /srv/oracle/product/10.2/db_1/sysman/lib/libnmcbuf.a /srv/oracle/product/10.2/db_1/sysman/lib//libnmadbg.a /srv/oracle/product/10.2/db_1/rdbms/lib
/libdsga10.a /srv/oracle/product/10.2/db_1/lib/libserver10.a /srv/oracle/product/10.2/db_1/lib/libclntsh.so `cat /srv/oracle/product/10.2/db_1/lib/sysliblist` -ldl -lm
INFO: /usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: i386 architecture of input file `/srv/oracle/product/10.2/db_1/sysman/lib/snmccolm.o' is incompatibl
e with i386:x86-64 output
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: i386 architecture of input file `/srv/oracle/product/10.2/db_1/sysman/lib/libnmccol.a(nmccole.o)' is incom
patible with i386:x86-64 output
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: i386 architecture
INFO: of input file `/srv/oracle/product/10.2/db_1/sysman/lib/libnmcbuf.a(nmcbuft.o)' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: i386 architecture of input file `/srv/oracle/product/10.2/db_1/sysman/lib/libnmcbuf.a(nmcbufw.o)' is incom
patible with i386:x86-64 output
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: i386 architecture of input file `/srv/oracle/product/10.2/db_1/sysman/lib/libnmcbuf.a(nmcbufu.o)' i
INFO: s incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: i386 architecture of input file `/srv/oracle/product/10.2/db_1/sysman/lib/libnmcbuf.a(snmcbufm.o)' is inco
mpatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: i386 architecture of input file `/srv/oracle/product/10.2/db_1/sysman/lib/libnmcbuf.a(nmcbuff.o)' is incom
patible with i386:x86-64 output
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../
INFO: ../../../x86_64-suse-linux/bin/ld: i386 architecture of input file `/srv/oracle/product/10.2/db_1/sysman/lib//libnmadbg.a(nmadbg.o)' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: i386 architecture of input file `/srv/oracle/product/10.2/db_1/sysman/lib//libnmadbg.a(snmadbg.o)' is inco
mpatible with i386:x86-64 output
collect2: ld returned 1 exit status
INFO: make[1]: Leaving directory `/srv/oracle/product/10.2/db_1/sysman/lib'
INFO: make[1]: *** [srv/oracle/product/10.2/db_1/sysman/lib/nmccollector] Error 1
INFO: make: *** [nmccollector] Error 2
INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'collector' of makefile '/srv/oracle/product/10.2/db_1/sysman/lib/ins_emdb.mk'. See '/srv/oracle/oraInventory/logs/installActions2007-12-15_08-07-59PM.log' for details.
Exception Severity: 1
/srv/oracle/product/10.2/db_1/install/make.log:
- Linking liborasdk
/srv/oracle/product/10.2/db_1/bin/genorasdksh
$Id: genorasdksh.sh 02-mar-2005.16:22:46 mchengjr Exp $
Generating FULL ORASDK library...
Creating /srv/oracle/product/10.2/db_1/lib/liborasdk.so.10.2
-rwxrwx--- 1 oracle oinstall 16477661 2007-12-15 20:16 liborasdk.so.10.2
lrwxrwxrwx 1 oracle oinstall 17 2007-12-15 20:16 liborasdk.so -> liborasdk.so.10.2
/usr/bin/make -f ins_rdbms.mk ipc_udp/rm -f /srv/oracle/product/10.2/db_1/lib/libskgxp10.so
cp /srv/oracle/product/10.2/db_1/lib//libskgxpu.so /srv/oracle/product/10.2/db_1/lib/libskgxp10.so
/usr/bin/make -f ins_emdb.mk collector ORACLE_HOME=/srv/oracle/product/10.2/db_1/make -f /srv/oracle/product/10.2/db_1/sysman/lib/ins_emdb.mk relink_exe EXENAME=nmccollector
make[1]: Entering directory `/srv/oracle/product/10.2/db_1/sysman/lib'
gcc -o /srv/oracle/product/10.2/db_1/sysman/lib/nmccollector -L/srv/oracle/product/10.2/db_1/lib/ -L/srv/oracle/product/10.2/db_1/sysman/lib/ `cat /srv/oracle/product/10.2/db_1/lib/sysliblist` -Wl,-rpath,/srv/oracle/product/10.2/db_1/lib -lm `cat /srv/oracle/product/10.2/db_1/lib/sysliblist` -ldl -lm -L/srv/oracle/product/10.2/db_1/lib -Wl,-export-dynamic /srv/oracle/product/10.2/db_1/sysman/lib/snmccolm.o /srv/oracle/product/10.2/db_1/sysman/lib/libnmccol.a /srv/oracle/product/10.2/db_1/sysman/lib/libnmcbuf.a /srv/oracle/product/10.2/db_1/sysman/lib//libnmadbg.a /srv/oracle/product/10.2/db_1/rdbms/lib/libdsga10.a /srv/oracle/product/10.2/db_1/lib/libserver10.a /srv/oracle/product/10.2/db_1/lib/libclntsh.so `cat /srv/oracle/product/10.2/db_1/lib/sysliblist` -ldl -lm
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: i386 architecture of input file `/srv/oracle/product/10.2/db_1/sysman/lib/snmccolm.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: i386 architecture of input file `/srv/oracle/product/10.2/db_1/sysman/lib/libnmccol.a(nmccole.o)' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: i386 architecture of input file `/srv/oracle/product/10.2/db_1/sysman/lib/libnmcbuf.a(nmcbuft.o)' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: i386 architecture of input file `/srv/oracle/product/10.2/db_1/sysman/lib/libnmcbuf.a(nmcbufw.o)' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: i386 architecture of input file `/srv/oracle/product/10.2/db_1/sysman/lib/libnmcbuf.a(nmcbufu.o)' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: i386 architecture of input file `/srv/oracle/product/10.2/db_1/sysman/lib/libnmcbuf.a(snmcbufm.o)' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: i386 architecture of input file `/srv/oracle/product/10.2/db_1/sysman/lib/libnmcbuf.a(nmcbuff.o)' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: i386 architecture of input file `/srv/oracle/product/10.2/db_1/sysman/lib//libnmadbg.a(nmadbg.o)' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: i386 architecture of input file `/srv/oracle/product/10.2/db_1/sysman/lib//libnmadbg.a(snmadbg.o)' is incompatible with i386:x86-64 output
collect2: ld returned 1 exit status
make[1]: Leaving directory `/srv/oracle/product/10.2/db_1/sysman/lib'
make[1]: *** [srv/oracle/product/10.2/db_1/sysman/lib/nmccollector] Error 1
make: *** [nmccollector] Error 2I found a reference to "Pre-Install checks for 10gR2 RDBMS (10.2.x) - Linux x86 Platforms
Doc ID: Note:334531.1" on another thread.
Running this gives the result below.
Does that give any answer to my install problems?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Health Check/Validation (V 01.07.00)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Validation Rule Engine" will be run in following environment:
HOSTNAME : rap
USERNAME : oracle
ORACLE_SID : stdby
ORACLE_HOME : /srv/oracle/product/10.2/db_1
If this is not correct environment
Please set correct env parameters and rerun the program
Would you like to continue [Y]es/[N]o (Hit return for [Y]es) : Y
Executing Rules
~~~~~~~~~~~~~~~
Executing Rule: OS certified? - completed successfully.
Executing Rule: User in /etc/passwd? - completed successfully.
Executing Rule: Group in /etc/group? - completed successfully.
Executing Rule: Input ORACLE_HOME - user INPUT Required.
Enter value for < Planned ORACLE_HOME location or if set >
(Hit return for [$ORACLE_HOME]) :
- completed successfully.
Executing Rule: ORACLE_HOME valid? - completed successfully.
Executing Rule: O_H perms OK? - completed successfully.
Executing Rule: Umask set to 022? - completed successfully.
Executing Rule: LDLIBRARYPATH unset? - completed successfully.
Executing Rule: Other O_Hs in PATH? - completed successfully.
Executing Rule: oraInventory perms - completed successfully.
Executing Rule: /tmp adequate? - completed successfully.
Executing Rule: Swap (in Mb) - completed successfully.
Executing Rule: RAM (in Mb) - completed successfully.
Executing Rule: Swap OK? - completed successfully.
Executing Rule: Disk Space OK? - completed successfully.
Executing Rule: Kernel params OK? - completed successfully.
Executing Rule: Got ld,nm,ar,make? - completed successfully.
Executing Rule: ulimits OK? - completed successfully.
Executing Rule: RHEL3 rpms ok? - completed successfully.
Executing Rule: RHEL4 rpms ok? - completed successfully.
Executing Rule: SuSE SLES9 rpms ok? - completed successfully.
Executing Rule: 3006854 installed? - completed successfully.
Executing Rule: ip_local_port_range - completed successfully.
Executing Rule: Tainted Kernel? - completed successfully.
Executing Rule: other OUI up? - completed successfully.
Test "10gr2_rdbms_linux_x86_hcve_031106" executed at Sat Dec 15 21:02:35 2007
Test Results
~~~~~~~~~~~~
ID NAME RESULT C VALUE
===== ==================== ====== = ========================================
10 OS certified? FAILED = sh: line 91: [: too many arguments Su..>
20 User in /etc/passwd? PASSED = userOK
30 Group in /etc/group? PASSED = GroupOK
40 Input ORACLE_HOME RECORD $ORACLE_HOME
50 ORACLE_HOME valid? PASSED = OHexists
60 O_H perms OK? PASSED = CorrectPerms
70 Umask set to 022? PASSED = UmaskOK
80 LDLIBRARYPATH unset? FAILED = IsSet
100 Other O_Hs in PATH? PASSED = NoneFound
110 oraInventory perms PASSED = oraInventoryOK
120 /tmp adequate? PASSED = TempSpaceOK
130 Swap (in Mb) RECORD 8197
140 RAM (in Mb) PASSED > 4909
150 Swap OK? PASSED = SwapToRAMOK
160 Disk Space OK? PASSED = DiskSpaceOK
170 Kernel params OK? PASSED = KernelOK
180 Got ld,nm,ar,make? PASSED = ld_nm_ar_make_found
190 ulimits OK? FAILED = StackTooSmall MaxLockMemTooSmall
204 RHEL3 rpms ok? PASSED = NotRedHat
205 RHEL4 rpms ok? PASSED = NotRedHat
206 SuSE SLES9 rpms ok? PASSED = sh: line 20: [: =: unary operator exp..>
207 3006854 installed? PASSED = NotRHEL3
209 ip_local_port_range FAILED = HighTooLow
210 Tainted Kernel? PASSED = NotVerifiable
220 other OUI up? PASSED = NoOtherOUI -
R60 shouts at me when pressing [ctrl+alt+backspace] in openSUSE
Whenever I try to restart the X server in openSUSE 11.3, as I like to do with the [ctrl+alt+backspace]-shortcut, I just get a loud *beep* from the onboard speaker and nothing happens. I tried booting into Windows and pressing the key combination, same thing.
Help?Are you getting the same beep from Windows?Or is it only OpenSuse?
Every time I restart the system my 3000H system also gives me a loud beep from the board.Your X server might not be supported by the GPU which is causing the system to give out the beep sound..
Cheers and regards,
• » νιנαソѕαяα∂нι ѕαмανє∂αм ™ « •
●๋•کáŕádhí'ک díáŕý ツ
I am a volunteer here. I don't work for Lenovo -
OpenSuse Undo/Redo doesn't work when click on web links
OpenSuse 12.2 Firefox 17 Undo/Redo doesn’t work when click on link . All web pages have some problem. Undo/Redo working for web page "Find" text box. All web pages
Clear Cookies & Cache
* https://support.mozilla.com/en-US/kb/Template:clearCookiesCache
Clear the Network Cache
* https://support.mozilla.com/en-US/kb/How%20to%20clear%20the%20cache#w_clear-the-cache
Troubleshooting extensions and themes
* https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes
Check and tell if its working. -
How to install opensuse-arm-xfce-12.3 on Lenovo A3000 tab
Sir recently I have bought Lenovo A3000 tab which is having android version 4.2.2 and 16 GB internal memory, 1.2 giga hertz quad core processor and 1GB ram.
I want to use opensuse on my tab so I have downloaded the file opensuse-arm-xfce-12.3.tar.xz I have extracted successfully it and found .IMG file and opensuse.sh file.
Kindly suggest how to install the above os in my tab with dual booting ie., opensuse and android.
I am expecting the two operating systems to be on 16 GB internal memory and so suggest how to partition the internal memory.
I have searched the net and followed the procedure which is too difficult to understand even though I have performed some of the steps like becoming root, installing busy box,complete Linux installer etc.,.
when I launch the complete Linux installer app it is showing message as unable to mount the image loop device not working.
Regards,
Rupesh.
Regards,
Rupesh.hi Fabian,
Welcome to the Forums.
Can y0u check tjniko s post in this thread as he was able to successfully install Win8.1 on the device.
Regards
Did someone help you today? Press the star on the left to thank them with a Kudo!
If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
Follow @LenovoForums on Twitter! -
OpenSUSE 11.1 (x86_64) Apache2 PHP Oracle !oci_connect
Hi all,
can't connect to an oracle instance oci_connect()
Warning: oci_connect(): OCIEnvNlsCreate() failed. There is something wrong with your system - please check that ORACLE_HOME and LD_LIBRARY_PATH are set and point to the right directories in /srv/www/htdocs/ora/index.php on line 3
System:
openSUSE 11.1 (x86_64)
PHP Version 5.2.11
OCI 1.4.0 Alpha $Revision: 1.269.2.16.2.38.2.32 $
Compile-time ORACLE_HOME: opt/oracle/product/10.2.0/db_1
Libraries Used: -Wl,-rpath,/opt/oracle/product/10.2.0/db_1/lib -L/opt/oracle/product/10.2.0/db_1/lib -lclntsh
set | grep ora
ORACLE_BASE=/opt/oracle
ORACLE_HOME=/opt/oracle/product/10.2.0/db_1
ORA_ASM_HOME=/opt/oracle/product/10gR2/asm
ORA_CRS_HOME=/opt/oracle/product/10gR2/crs
PATH=/home/user/bin:/usr/local/bin:/usr/bin:/sbin:/usr/sbin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib64/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/opt/novell/ncl/bin:/opt/oracle/product/10.2.0/db_1/bin
decorate diff-filter=
Does anyone has an ideer why the connection can't established.
Best regards
Tillsorry....
Workaround: add the apache user to the oracle group. This only occurs
in 5.2.1. Previous versions of PHP which I've tried (5.0.3 and 5.1.0)
did not have this problem. Obviously this is a security issue as the
apache user now has a lot more things it can use to wreak havoc. -
Käyttökärjestelmäni on linux ja opensuse 13.1. Firefoksin pävityksen jälkeen versiosta 27 versioon 28 tapahtui niin, että otsikkopalkki ei reagoi osoitteisiin ja hakukonelista katosi. Myöskään hakupalkin optio "hallitse hakukoneita" ei avaudu. Huomasin ajan päästä, että, kun suomenkielipaketti-lisäosan ottaa pois käytöstä, niin ongelma poistuu, ja kun suomenkielen ottaa käyttöön, niin ongelma palaa takaisin, joten jotain tekemistä sillä on kielen kanssa. Jos siis tyydyn englanninkieliseen Firefoxiin, niin oneglmaa ei ole. Haluaisin kuitenkin suomenkielisen. Jos asennnan 27 version takaisin, niin suomenkielen kanssa ongelmaa ei ole, mutta tällöin käyttöjärjestelmä vaatii turvapäivitystä ja kyseinen turvapäivitys asentaa 27:n tilalle 28-version.
Voi olla niin.
Quick Locale Switcher ei vaihtanut 28 versiota pois enganninkielestä millekään kielelle. Lisäksi poisti suomenkielen switcherin kielilistalta ja muutti jotain ~/.mozilla/firefox/ tiedostoissa, niin ettei suomenkielisyyttä (siis ilman hakukoneita ja osoitekentäntoiminnallisuutta) saanut takaisin lisäosan poiston jälkeenkään, muuten kuin deletoimalla ~/.mozilla/firefox hakemiston.
Hyvin suomenkielisenä toimivassa 27 versiossa, puolestaan, pysyi suomenkieli päällä koko ajan, eikä mainittu switcher vaihtanut sitä englanniksikaan. 27 version saa englanninkieliseksi vain disabloimalla suomenkielipaketin työkalut-lisäosat-kielet asetuksista. Kokeilin toistakin samantyyppistä lisäosaa: Locale Switcher. Sama tilanne, ei vaihda kieltä, vaikka kielipaketit ovat asennettuja.
Nyt olen tainnut kokeilla melkein kaikki konstit mitä viitsii kohtuullisella vaivalla kokeilla. Kuten poistanut firefoxin ja asentanut uudelleen. Poistanut /home/.mozilla/firefox hakemiston, poistanut muut liitännäiset, kokeillut mozillan asennuslähteen ja OpenSusen 28 - versioita, jotka 28.x.x numeroinnista päätellen ovat hieman erilaisia. Ei auttanut.
Minulla on ilmeisesti toistaiseksi vain nämä vaihtoehdot: Käyttää 27 suomi-versiota tai 28:aa englanninkielisenä ja odottaa, josko OpenSusen päivitykset myöhemmin korjaisivat ongelman.
Kiitos kuitenkin avusta. -
Thinkpad W500 and OpenSuse 11.1
I installed OpenSuse 11.1 on W500. I am very impressive.
What works out of the box:
X-windows (I use Intel driver)
Microphone
Webcam
Trackpoint and trackpad
Bluetooth
Wireless (it identified my card as 5100 rather than 5300, but still work anyway)
Ethernet
Suspend to Ram also work
What doesn't work:
Fingerprint
Modem? (I haven't digged into this)
one Issue I found is, the computer is hotter(quite obvious) under Linux compare to running on windows.
I checked cpuinfo, its frequency stays at 800mhz most of the time (just like Windows), I don't know which parts generate so much heat. Maybe the unused AMD graphic core? (I set to use integrated GPU in BIOS)
if anyone has idea about why W500 is hotter in Linux, plz let me know.
thanks in advance.
Solved!
Go to Solution.I can't think of anything other than the ATI card.
I consistently have the following behaviour:
BIOS set to switchable, console mode, ATI card always above +50C, lots of heat.
BIOS set to integrated, console or graphics mode, ATI card temperature unreadable, the wind that comes out seems to be cool (I would even say fresh).
BIOS set to discrete, console mode, ATI card above +50C.
BIOS set to discrete, graphics mode with fglrx driver, ATI card at 34C, warm wind.
Consequently, it seems to me that the only thing that can be generating such heat is the graphics card, and would tell you to recheck your BIOS setting.
I'm running Gentoo. The only thing which is not working right now and bothers me is the suspend-to-ram.
I wish it was working out of the box. LCD brightness controls took a bit, everything else didn't take much time.
Miguel
Message Edited by migle on 12-22-2008 12:30 PM
Message Edited by migle on 12-22-2008 12:31 PM
W500 4062-2XG T9400/4GB/WUXGA/ATI M86/Vista 64/Gentoo Linux 64 -
Unable to ssh Opensuse 12.3 VM after restart
After successful provisioning of an OpenSuse 12.3 instance, I was able to ssh through putty. However, after restarting the VM through the management portal, I am unable to ssh to my server through putty. "Network Connection Timed out" error. Only
peculiar thing that I have noticed is that the hostname is blank in VM->Dashboard.
I am using the "SSH Details" value to ssh and not the Virtual IP address.Hi,
Thanks for your reply.
If the host name of the VM is lost, in general, it is impossible to connect to the VM.
If the issue persists after restart and you have no importance data in the temporary driver(D:) on the VM, maybe you can delete the VM and keep the attached disks, then recreate a new VM using that disk. (Please note that after recreating the VM, the data on the
D: of the previous VM would be lost)
In addition, if the above solution is not helpful, I recommend you to contact Azure support by submiting a support ticket to better analyze this issue and you won't be charged if this issue is caused by Azure.
Best regards,
Susie
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]
Maybe you are looking for
-
ITunes was not installed correctly Error 7 (Windows error 998)
HI I had a Trojan and used Malwarebytes to get rid of it and now everything is fine but for some reason everytime I try to open Itunes I get the message ITunes was not installed correctly Error 7 (Windows error 998) I have done various searches on th
-
Hi, I have a situation, wherein when a sales order is created, it is assigned a user status of CRTD using status management configuration. My requirement is to track a particular document's user status or system status to trigger a workflow if the do
-
IMovie stabilize command not working
I imported a couple video clips from Aperture, but iMovie stabilize function is not working for them. Are some types of clips not able to be stabilized? I followed the help direction exactly - select the clip, click the Stabilization button - but not
-
just had a new battery fitted to my iphone 4 and it has stopped working again so i opened it up to see the battery and had a look but could see no damage so put it on mains charger and it tells me to activate the iphone so i pulg it in to my laptop
-
Time Machine full error - mds problem?!
Hi, my Time Machine Volume is near full. In SL times, the TM did overwrite oldest content and worked further. Now, LION, i get an error , TM failed in red: This backup is too large for the backup volume. 20.12 GB for the backup is needed, but only 12