Error: 'alpm_db_register_local' was not declared in this scope

This is why I wish there was an actual API reference for ALPM instead of forcing developers to fend for themselves in a near-undocumented mess of a library.
That said, I need some help. I have the correct #includes in my code:
#include <alpm.h>
#include <alpm_list.h>
But apparently the compiler can't see what is supposed to be provided by the very first (I think?) header. My source is simple right now since I've mostly just begun my project:
#include <alpm.h>
#include <alpm_list.h>
#include "../function/pacman.h"
bool initALPM()
if(alpm_initialize()<0)
return false;
alpm_option_set_dbpath("/var/lib/pacman");
db = alpm_db_register_local();
return true;
bool releaseALPM()
if(alpm_release()<0)
return false;
return true;
std::vector<std::string> getPackageList()
std::vector<pmdb_t*> sync;
pmdb_t* local;
std::vector<std::string> packs;
return packs;
Any idea what I'm doing wrong in this? For all I can figure, I *should not* be having troubles with my compiler finding that function.
Also, any hint as to how I could get a list of "sync" databases?

If you were still able to find that function, you'd be using pacman 3.4. alpm_db_register_local was removed for 3.5.0. If you read the patch notes, you'll see that alpm_initialize() takes care of that for you. I'm also not sure how well alpm will play with c++ since it doesn't have the extern "C" decl in the header...
By default, no syncs are registered. pacman parses its own config file and registers the DBs it finds declared there with alpm. An example in C...
#include <stdio.h>
#include <alpm.h>
static const char *trees[] = {
"testing",
"core",
"extra",
"community",
NULL
int main(void) {
const char **tree;
pmdb_t *local;
alpm_list_t *i;
/* initialize -- this registers localdb for you */
alpm_initialize();
/* barebones setup */
alpm_option_set_root("/");
alpm_option_set_dbpath("/var/lib/pacman");
/* register syncs */
for (tree = trees; *tree; tree++) {
alpm_db_register_sync(*tree);
/* iterate over registered syncs */
printf("--- sync DBs -----------------\n");
for (i = alpm_option_get_syncdbs(); i; i = alpm_list_next(i)) {
pmdb_t *sync = alpm_list_getdata(i);
printf("%s\n", alpm_db_get_name(sync));
putchar('\n');
/* iterate over local database */
printf("--- local packages -----------\n");
local = alpm_option_get_localdb();
for (i = alpm_db_get_pkgcache(local); i; i = alpm_list_next(i)) {
pmpkg_t *pkg = alpm_list_getdata(i);
printf("%s\n", alpm_pkg_get_name(pkg));
putchar('\n');
/* cleanup */
alpm_release();
return 0;
Last edited by falconindy (2011-04-10 03:08:29)

Similar Messages

  • Syntax Error "Method was not declared or inherited in class"

    Dear all,
    I am seeing the following syntax error in one of the standard classes CL_ICCMP_BT_INRHISTRESULT_CN01 which says "Method "XYZ" was not declared or inherited in class". Need help to identify when this error would occur or where I should be checking for this error within the class.
    I checked other systems for the same class, the method XYZ does not exist there too but still the class has no syntax errors!
    Would appreciate your help!
    Thank you.
    Regards,
    Gayathri.

    Hi Gayathri,
    please give detailed information on how and where you get this error.
    CL_ICCMP_BT_INRHISTRESULT_CN01 does not exist in our ECC600 system.
    Regards,
    Clemens

  • Cast was not declared in scope

                            Set::View setResults = theCache->entrySet(EqualsFilter::create(vPsngSmryExtractor, psng_smry_id));
                            for (Iterator::Handle iter = setResults->iterator(); iter->hasNext(); )
                                    std::cout << "here" << std::endl;
                                    Map::Entry::View vEntry = cast<Map::Entry::View>(iter->next());
                                    //std::cout << vEntry->getKey() << " " << vEntry->getValue() << std::endl;
    coherence.cpp:86: error: 'cast' was not declared in this scope
    coherence.cpp:86: error: expected primary-expression before '>' token
    is something wrong in the code..?
    solved:: we need to use coherence::cast

    Your first step should be to try without yaourt (or any other AUR helper). Those may be convenient but they are not recommended for troubleshooting. See if you can reproduce it with makepkg.
    EDIT: Post on the AUR page. xxdiff doesn't compile here either.
    Last edited by cfr (2013-08-26 02:14:00)

  • Dbxml for php: second_arg_force_ref was declared in this scope

    Hi all,
    I'm getting this error after going into the db-4.8.26 folder and running make.
    phpize
    ./configure --with-db4=$PWD/../../install
    make
    I was following this thread here but there's no open solution there now.
    Berkeley DB XML and PHP 5.3
    Here is the output (from the configure onwards)
    *root@projects-test:/tmp/dbxml-2.5.16/db-4.8.26/php_db4# ./configure --with-db4=$PWD/../../install*
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for a sed that does not truncate output... /bin/sed
    checking for cc... cc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether cc accepts -g... yes
    checking for cc option to accept ISO C89... none needed
    checking how to run the C preprocessor... cc -E
    checking for icc... no
    checking for suncc... no
    checking whether cc understands -c and -o together... yes
    checking for system library directory... lib
    checking if compiler supports -R... no
    checking if compiler supports -Wl,-rpath,... yes
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking target system type... x86_64-unknown-linux-gnu
    checking for PHP prefix... /usr
    checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib
    checking for PHP extension directory... /usr/lib/php5/20090626
    checking for PHP installed headers prefix... /usr/include/php5
    checking if debug is enabled... no
    checking if zts is enabled... no
    checking for re2c... no
    configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
    checking for gawk... no
    checking for nawk... nawk
    checking if nawk is broken... no
    checking whether to enable db4 support... yes, shared
    checking whether to link against mod_db4... yes, shared
    checking if we really need to link against mod_db4... no
    checking for g++... g++
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking how to run the C++ preprocessor... g++ -E
    configure: WARNING: *** A note about pthreads ***
    The db4 c++ library by default tries to link against libpthread on some
    systems (notably Linux). If your PHP install is not linked against
    libpthread, you will need to disable pthread support in db4. This can
    be done by compiling db4 with the flag --with-mutex=x86/gcc-assembly.
    PHP can itself be forced to link against libpthread either by manually editing
    its build files (which some distributions do), or by building it with
    --with-experimental-zts.
    checking how to print strings... printf
    checking for a sed that does not truncate output... (cached) /bin/sed
    checking for fgrep... /bin/grep -F
    checking for ld used by cc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 1572864
    checking whether the shell understands some XSI constructs... yes
    checking whether the shell understands "+="... yes
    checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
    checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for dlltool... no
    checking how to associate runtime and link libraries... printf %s\n
    checking for ar... ar
    checking for archiver @FILE support... @
    checking for strip... strip
    checking for ranlib... ranlib
    checking for gawk... (cached) nawk
    checking command to parse /usr/bin/nm -B output from cc object... ok
    checking for sysroot... no
    checking for mt... mt
    checking if mt is a manifest tool... no
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if cc supports -fno-rtti -fno-exceptions... no
    checking for cc option to produce PIC... -fPIC -DPIC
    checking if cc PIC flag -fPIC -DPIC works... yes
    checking if cc static flag -static works... yes
    checking if cc supports -c -o file.o... yes
    checking if cc supports -c -o file.o... (cached) yes
    checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... no
    checking how to run the C++ preprocessor... g++ -E
    checking for ld used by g++... /usr/bin/ld -m elf_x86_64
    checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
    checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking for g++ option to produce PIC... -fPIC -DPIC
    checking if g++ PIC flag -fPIC -DPIC works... yes
    checking if g++ static flag -static works... yes
    checking if g++ supports -c -o file.o... yes
    checking if g++ supports -c -o file.o... (cached) yes
    checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking dynamic linker characteristics... (cached) GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    configure: creating ./config.status
    config.status: creating config.h
    config.status: config.h is unchanged
    config.status: executing libtool commands
    root@projects-test:/tmp/dbxml-2.5.16/db-4.8.26/php_db4# make
    /bin/bash /tmp/dbxml-2.5.16/db-4.8.26/php_db4/libtool --mode=compile g++  -I. -I/tmp/dbxml-2.5.16/db-4.8.26/php_db4 -DPHP_ATOM_INC -I/tmp/dbxml-2.5.16/db-4.8.26/php_db4/include -I/tmp/dbxml-2.5.16/db-4.8.26/php_db4/main -I/tmp/dbxml-2.5.16/db-4.8.26/php_db4 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/tmp/dbxml-2.5.16/db-4.8.26/php_db4/../../install/include  -DHAVE_CONFIG_H  -g -O2   -c /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp -o db4.lo
    libtool: compile: g++ -I. -I/tmp/dbxml-2.5.16/db-4.8.26/php_db4 -DPHP_ATOM_INC -I/tmp/dbxml-2.5.16/db-4.8.26/php_db4/include -I/tmp/dbxml-2.5.16/db-4.8.26/php_db4/main -I/tmp/dbxml-2.5.16/db-4.8.26/php_db4 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/tmp/dbxml-2.5.16/db-4.8.26/php_db4/../../install/include -DHAVE_CONFIG_H -g -O2 -c /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp -fPIC -DPIC -o .libs/db4.o
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:193:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:342:9: error: 'second_arg_force_ref' was not declared in this scope
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:342:9: error: 'second_arg_force_ref' was not declared in this scope
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'int zm_startup_db4(int, int)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:406:98: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:407:95: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:408:87: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:409:96: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:414:5: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'DB_ENV* php_db4_getDbEnvFromObj(zval*)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:671:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'php_DB_ENV* php_db4_getPhpDbEnvFromObj(zval*)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:684:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'php_DB* getPhpDbFromObj(zval*)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:719:94: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'DB* php_db4_getDbFromObj(zval*)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:730:94: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'DB_TXN* php_db4_getDbTxnFromObj(zval*)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:788:108: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'php_DB_TXN* getPhpDbTxnFromObj(zval*)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:801:108: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'DBC* php_db4_getDbcFromObj(zval*)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:880:103: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'php_DBC* getPhpDbcFromObj(zval*)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:893:103: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'void wrapdb_txn_commit(int, zval*, zval**, zval*, int)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:969:69: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'void wrapdb_txn_set_timeout(int, zval*, zval**, zval*, int)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1026:80: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'void wrapdb_txn_set_name(int, zval*, zval**, zval*, int)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1047:78: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'void wrapnew_db4(int, zval*, zval**, zval*, int)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1103:51: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'void wrapdb_open(int, zval*, zval**, zval*, int)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1143:50: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'void wrapdb_del(int, zval*, zval**, zval*, int)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1198:49: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'void wrapdb_get(int, zval*, zval**, zval*, int)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1227:57: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'void wrapdb_pget(int, zval*, zval**, zval*, int)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1261:57: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'void wrapdb_set_encrypt(int, zval*, zval**, zval*, int)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1328:15: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'void wrapdb_stat(int, zval*, zval**, zval*, int)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1361:91: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'void wrapdb_join(int, zval*, zval**, zval*, int)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1474:46: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'void wrapdb_put(int, zval*, zval**, zval*, int)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1514:78: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'void wrapdb_truncate(int, zval*, zval**, zval*, int)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1562:57: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'void wrapdb_cursor(int, zval*, zval**, zval*, int)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1590:91: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'void wrapdbc_close(int, zval*, zval**, zval*, int)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1623:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'void wrapdbc_count(int, zval*, zval**, zval*, int)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1642:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'void wrapdbc_del(int, zval*, zval**, zval*, int)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1659:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'void wrapdbc_dup(int, zval*, zval**, zval*, int)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1679:69: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'void wrapdbc_get(int, zval*, zval**, zval*, int)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1704:89: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'void wrapdbc_pget(int, zval*, zval**, zval*, int)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1740:99: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'void wrapdbc_put(int, zval*, zval**, zval*, int)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1780:38: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'void wrapnew_DbEnv(int, zval*, zval**, zval*, int)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1821:69: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'void wrapdb_env_close(int, zval*, zval**, zval*, int)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1849:69: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'void wrapdb_env_dbremove(int, zval*, zval**, zval*, int)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1872:66: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'void wrapdb_env_dbrename(int, zval*, zval**, zval*, int)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1901:39: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'void wrapdb_env_open(int, zval*, zval**, zval*, int)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1932:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'void wrapdb_env_remove(int, zval*, zval**, zval*, int)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1957:87: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'void wrapdb_env_set_data_dir(int, zval*, zval**, zval*, int)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1975:75: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'void wrapdb_env_set_encrypt(int, zval*, zval**, zval*, int)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:1995:15: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'void wrapdb_env_txn_begin(int, zval*, zval**, zval*, int)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:2033:16: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp: In function 'void wrapdb_env_txn_checkpoint(int, zval*, zval**, zval*, int)':
    /tmp/dbxml-2.5.16/db-4.8.26/php_db4/db4.cpp:2066:87: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    make: *** [db4.lo] Error 1
    root@projects-test:/tmp/dbxml-2.5.16/db-4.8.26/php_db4#
    Edited by: user8894150 on Jul 8, 2012 12:42 PM
    Removed configure output from previous command.

    Thanks for the reply, I tried what you suggested and got an error about iostream.h no such file or directory. I did some reading and saw some suggestions that I needed to pass the --enable-cxx flag when doing the main build, so I redid that. I'm not even sure if that was necessary, but I got the dba module to build. How do I build dbxml.so though? I'm not sure what arguments to pass to configure. Do I use with-dbxml, prefix? When I run make I keep getting a no such file or directory error, unable to find ext/db4/php_db4.h I think.
    I extracted db-xml-2.5.16.tar.gz ahd PHP 5.3.15 (tar.gz) into $HOME/tmp. I installed PHP 5.3.15 into $HOME/php5314 (made a mistake with the numbers there).
    These are the steps I followed:
    cd ~/tmp/
    tar -xvf dbxml-2.5.16.tar.gz
    cd dbxml-2.5.16/db-4.8.26/build_unix/
    ../dist/configure prefix=$HOME/tmp/dbxml-2.5.16/db-4.8.26 enable-cxx
    make
    make install
    # build PHP
    cd ~/tmp
    tar -xvf php-5.3.15.tar.gz
    cd php-5.3.15
    ./configure prefix=$HOME/*php5314* disable-all # should have called that 5315... oops
    make install
    cp php.ini-development $HOME/php5314/lib/php.ini
    # Building dba
    cd ext/dba
    export PATH=$PATH:$HOME/php5314/bin
    phpize
    ./configure --with-db4=$HOME/bdb-4.8.26
    sudo make install
    # Now for dbxml
    cd $HOME/tmp/dbxml-2.5.16/dbxml/src/php
    phpize
    *./configure ?????*
    make
    /bin/bash /home/jay/tmp/dbxml-2.5.16/dbxml/src/php/libtool --mode=compile g++  -I. -I/home/jay/tmp/dbxml-2.5.16/dbxml/src/php -DPHP_ATOM_INC -I/home/jay/tmp/dbxml-2.5.16/dbxml/src/php/include -I/home/jay/tmp/dbxml-2.5.16/dbxml/src/php/main -I/home/jay/tmp/dbxml-2.5.16/dbxml/src/php -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/include -I/home/jay/tmp/dbxml-2.5.16/db-4.8.26/php_db4  -DHAVE_CONFIG_H  -g -O2   -c /home/jay/tmp/dbxml-2.5.16/dbxml/src/php/php_dbxml.cpp -o php_dbxml.lo
    libtool: compile: g++ -I. -I/home/jay/tmp/dbxml-2.5.16/dbxml/src/php -DPHP_ATOM_INC -I/home/jay/tmp/dbxml-2.5.16/dbxml/src/php/include -I/home/jay/tmp/dbxml-2.5.16/dbxml/src/php/main -I/home/jay/tmp/dbxml-2.5.16/dbxml/src/php -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/include -I/home/jay/tmp/dbxml-2.5.16/db-4.8.26/php_db4 -DHAVE_CONFIG_H -g -O2 -c /home/jay/tmp/dbxml-2.5.16/dbxml/src/php/php_dbxml.cpp -fPIC -DPIC -o .libs/php_dbxml.o
    In file included from /home/jay/tmp/dbxml-2.5.16/dbxml/src/php/php_dbxml.cpp:10:0:
    */home/jay/tmp/dbxml-2.5.16/dbxml/src/php/php_dbxml_int.hpp:24:29: fatal error: ext/db4/php_db4.h: No such file or directory*
    compilation terminated.
    make: *** [php_dbxml.lo] Error 1

  • 'BlobRegion' was not declared

    Hello,
    I have a problem while compiling a program, It gives me an error on the line #include <occi.h>:
    /usr/include/oracle/11.1.0.1/client/occiData.h:314: error: ‘BlobRegion’ was not declared in this scope
    /usr/include/oracle/11.1.0.1/client/occiData.h:314: error: template argument 1 is invalid
    /usr/include/oracle/11.1.0.1/client/occiData.h:314: error: template argument 2 is invalid
    /usr/include/oracle/11.1.0.1/client/occiData.h:421: error: ‘ClobRegion’ was not declared in this scope
    /usr/include/oracle/11.1.0.1/client/occiData.h:421: error: template argument 1 is invalid
    /usr/include/oracle/11.1.0.1/client/occiData.h:421: error: template argument 2 is invalid
    Just for curious, I commented those two lines on occi.h and the program compiles and works.
    I have no problem compiling a little example application but if I put the include on a header then I get this error, what could it be?

    What is enviornment ?? (OS & compiler/oracle version etc) ?

  • I have downloaded a movie from ITunes.  It shows up in my video app.  When I go to play it I get an error message: "The requested URL was not found on this server". When I checked back on iTunes, where you click to rent or buy a movie it says "Downloaded"

    I have downloaded a movie from ITunes.  It shows up in my video app.  When I go to play it I get an error message: "The requested URL was not found on this server". When I checked back on iTunes, where you click to rent or buy a movie it says "Downloaded".  Any advice on what I can do in order to watch this movie that I rented a couple of weeks ago?

    Select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History on your computer.

  • Problem with Home Sharing.  Getting the error "The Requested URL was not Found on this Server"

    I recently purchased an iPhone 5.  As I do with all of my AppleTVs, iPads, iPods and an iPhone 4 in my home, I connected the 5 to my home network and accessed the shared video library using home sharing.  My iTunes library is roughly 85% iTunes purchases, a handful of videos taken with iOS devices, and some video ripped with Handbrake.  All of these videos work fine on all devices in my home except my new iPhone 5.  When I access the shared video library on my iPhone 5, all of the textual data for all of the videos appears, however, I can only get the iPhone to play 1 video of the dozens in my iTunes library. When I try to play any other, I get the error, "The Requested URL was not Found on this Server."
    Interestingly, only one video in my entire shared library displays the artwork associated with it in my iTunes library on my iPhone 5, and that's the one I can stream without a problem. Even more interestingly, that video I am able to stream was ripped using Handbrake (there are a number in my library ripped using Handbrake, but just this one will stream to my iPhone 5 for some reason).
    I'm using the latest version of iTunes (10.7) on my home (iMac) computer (running OSX 10.8.2- Mountain Lion)and of course iOS 6 on the iPhone 5. I've tried resetting my iPhone several times as well as restarting my iMac which holds my iTunes library.
    Does anyone have any ideas as to what's going on?

    Can you see if you can view index page from a browser on iPhone.
    Have you seen live streams working from a different computer...
    if not then check if a proper crossdomain.xml file in its place(webroot folder).

  • How do I view and open all my files again that are on my external hard drive?? Error message saying 'The disk you inserted was not readable by this computer' Three options are Initialize, Ignore or Eject.

    I have recently purchased Toshiba 1TB hard drive and I set it up and I was able to transfer all my files onto it such as my music, photos, documents. I had correctly ejected and used it again and all these files were safely stored and accessible afterwards. However after I rebooted my computer as it had been going slow and I had too much clogging it up once I reconnected the external hard drive I have error message saying 'The disk you inserted was not readable by this computer' Three options are Initialize, Ignore or Eject. How do I access all my files? I set it up to work on both mac and windows. I have tried both another mac and windows computer and same issue occurs?? I am worried that all my personal files are gone but am confused as the drive has had absolutely no damage to it as it was in a very short time frame and its never left the same spot. Any help would be greatly appreciated. Thanks

    Thanks for your quick response. I had a look at your discussion... I tried it on a Windows machine and I thought that was compatible with ExFAT?
    Therefore I need to attempt to use my external hard drive with a machine that boasts OS X 10.6.5 or above and then it should work?
    Thanks

  • Error Message "ElementsAutoAnalyzer.exe unable to locate. This application failed to start because ExtendedScript.dll was not found". This error message is seen when first starting Windows Vista, prior to starting Photoshop Elements 12.

    Error Message "ElementsAutoAnalyzer.exe unable to locate. This application failed to start because ExtendedScript.dll was not found".
    This error message is seen every time when first starting Windows Vista, PRIOR to starting Photoshop Elements 12.1 
    It does not seem to interfere with the normal operation of Photoshop Elements, but it is a constant annoyance.

    try removing all itunes and all other apple program
    follow this link for more info. http://support.apple.com/kb/HT1923
    reboot ur window after uninstalling
    after that download the latest itunes setup and install.

  • After uprading to iOS 5.1 I can no longer play videos in my camera roll. I just get the following error "The  requested URL was not found on this server"

    After uprading to iOS 5.1 I can no longer play videos in my camera roll. I just get the following error "The  requested URL was not found on this server".
    Anyone have any ideas?

    You have two choices to try & fix this: 1. Backup your phone, then restore as a new device, then restore from the backup you first created, or 2. Follow the advise from this poster:
    I had the same problem with the black blocks after upgrading to iOS4 on my iPhone. The reason for the black blocks is that the thumbnail images for those particular images have not been created when the Photo Library has been updated to iOS4. I followed the advice on a couple of blogs and fixed the problem.
    1. I downloaded iPhone Explorer free software (http://www.macroplant.com/iphoneexplorer/) so I could view the photo data folders on my phone. I could see that the thumbnail images were missing.
    2. I followed a slight variation on the instructions on this blog. (http://blog.mbentley.net/2010/06/iphone-ios-4-upgrade-restore-lost-pictures-in-c amera-roll/)
    3. First I copied the Photo Data folder by dragging it from the iPhone Explorer window to my Mac desktop.
    4. Through iPhone Explorer I deleted the info.plist file in the Media/PhotoData/MISC folder.
    5. I also deleted the Photos.sqlite and PhotosAux.sqlite files in Media/PhotoData.
    6. I then rebooted the phone and launched the Photo Library.
    7. The Library rebuilt it's self again and recreated the thumbnails.
    8. The problem was fixed!!! Thank you M Bentley!
    I hope this helps - this has been bugging me for 2 weeks.
    Regards
    Alijm23

  • While accessing my iTunes an error message comes up saying; The requested URL was not found on this server

    While trying to access my library in iTunes, I receive an error message; The requested URL was not found on this server. This only happens with my older songs, but not with the ones I have most recently added? Any thoughts?

    Select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History on your computer.

  • My external LaCie drive gets an error message "the disc you inserted was not readable by this computer." The only options offered are "ignore" or "eject" Disk Utility sees the disc but does not give a repair option. What can I do?

    When I plug in my external LaCie drive I get an error message "the disc you inserted was not readable by this computer."
    The only options offered are "ignore" or "eject"
    Disk Utility sees the disc but does not give a repair option.
    What can I do?

    The good thing about mac-centric resellers such as OWC, is they have people on staff that can answer questions without you buying things first. They also have how-to information, and instructions are included in many of their products. I saw a link to watch a DIY video in one of their pages; an example of a RAID (with its own power supply) is shown on their drives page. Also a few in there, with no power supplies, for less money.
    If I were looking to backup and perhaps also have a partition for a system clone, I'd consider something like one of these: http://eshop.macsales.com/shop/firewire/1394/USB/EliteAL/eSATA_FW800_FW400_USB
    Some ideas on the RAID backup methods appear in google search, some of the pages are ideas and concepts; and the better ones also warn about using RAID for the only backup plan.
    Oh, OWC has live chat. Haven't tried it, nor have I bought anything from them. I have what appears to be two products from them, but have not used either. One is in a box as-new, but has only USB2.0 ports & my Macs needed FW400/800. It has been said their RAM is a good way to upgrade, too. But I can't confirm!
    A 'RAID-ready' unit for backup may be more versatile for just that, but I have not checked into these details. I use single HDDs in powered enclosures, and usually manually make backup clones to FW drives, of bootable OS X systems. Some of the OWC raid-ready use eSATA ports so that may not be viable for a computer without them.
    The unused in-box external drive I have is like the base model in the link above. However mine is USB2.0 (maybe) and won't boot my older Macs due to hardware variance; and my preference would be for FireWire options, these models do offer that. But the one I have does not. Dual 500GB HDDs, and they could be used in tandem as a RAID. That would be a choice set up in software. I'm not sure and not interested enough to read up just now.
    My backup method is not automatic, or a moving backup plan, if I don't get a move-on and make full system clones. I do make copies of photos and documents the manual way, to USB external drives; and occasionally backup to DVD or CD media. And USB flash, that helps to move files between computers without need to use file sharing via wi-fi. {Like Why fly? Walking is better exercise unless one is a bird. Squawk!}
    https://www.google.com/#q=raid+backup+mac
    Depending on the ports in your Mac, you may be able to use other cables to attach between a backup or externally enclosed hard disk drive with multiple partition and bootable clone in one of them. Not sure about the Thunderbolt, and where that is the main port, adapters are required to access other devices, as allowed.
    Anyway, I am going on and on, yet not really saying anything.
    My ideas would not be all that interesting to follow as a backup
    plan when matching available newer hardware to task, but you
    can get some into better ideas if you are not in a rush. Get a
    good setup and then look into more an betterer stuff.
    Good luck & happy computing!

  • Can't do online banking. Get error message. "The requested URL /Summary.cgi was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    I can't do online banking. When I try to open the page I get error "The requested URL /Summary.cgi was not found on this server.
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    Hi,
    These blog posts might help debug problem
    Oracle APEX: Got a 404 Not Found? | Inside Oracle APEX by Patrick Wolf
    daust_de :: Oracle XE / APEX: Troubleshooting the 404-not found error on XE
    Regards,
    Jari

  • "The requested URL /apex/f was not found on this server" error

    Hi there
    I'm getting the following error message when trying to access our apex app:
    http://theHost:8080/apex
    The requested URL /apex/f was not found on this server
    It just happened out the blue so i've no idea what happened. Can someone help me to find a solution asap?
    Many thanks, Jon

    How did you fix this, please? I'm getting the same error, and none of the solutions on this forum apply.
    Edited by: Jean-Marc, UK on Mar 16, 2010 2:34 PM

  • An error occurred while reconnecting P: to \\JSERVER\Data Microsoft Windows Network: The network path was not found. This connection has not been restored.

    Almost every day when I open my computer I get this message:
    An error occurred while reconnecting P: to \  \  JSERVER\data Microsoft Windows Network: The network path was not found. This connection has not been restored.
    We then have to go through the process of resetting everything from start to finish just so I can connect to the server. There is no reason that we can find that causes this other than maybe windows updating every night. Any suggestions as to how to
    fix this? 

    it sounds like you have a network drive you are trying to map even though you are not logged in maybe in a script or task instead of backing up to :P backup to the share, make sure you have security set properly to run the task when not logged on.
    I assume you are running a backup of some sort as this is the backup forum..

Maybe you are looking for

  • Problem while developing Front End

    Hi all I am developing GUI ( Front End ) where a user is allowed to add labels, buttons at runtime . Also he can add images to the screen at run time. He should be able to resize the size of the image at runtime. Also he should be able to resize the

  • How to send a mail with HTML body from Oracle

    Hi Team, Can somebody guide me how to send a mail with HTML body from oracle. Here is the piece of code i am trying to send a mail. procedure SEND_MAIL is cursor c_1 is select * from table_name; l_mail_id varchar2(40); -- ls_mailhost VARCHAR2(64) :=

  • How to include Placeholder in af:inputText component

    In the HTML5 there is property called *"placeholder"* it will act as watermark for the text box Below is syntax for the HTML <input type="text" name="fname" placeholder="First name"> I need the same approach to solve the af:inputText tag is there any

  • Recent problem with 2 separate phones getting same messages and contact info

    I have an iphone 4s/ my father also has a 4s.  in the past few days, suddently his contact list and my contact list have merged.  Today, I deleted my contacts off his phone, but it also deleted my contacts off my phone.  FURTHER, any texts sent to ei

  • Is Print Studio Pro Compatible with Photoshop CC 2014

    I recently acquired a Pixima Pro 100 and am attempting to install Print Studio Pro so that it can be accessed in Photoshop CC 2014. When I attempt to install, it will find and install in Lightroom and Photoshop CC.  However, it does not find and inst