I can't compile photivo [solved]

Hi:
I have problems to compile photivo. I have the error:
../Sources/ptDcRaw.cpp: En la función miembro ‘void ptDcRaw::parse_redcine()’:
../Sources/ptDcRaw.cpp:6320:30: aviso: comparación entre expresiones enteras signed y unsigned [-Wsign-compare]
../Sources/ptDcRaw.cpp: En la función miembro ‘void ptDcRaw::tiff_head(tiff_hdr*)’:
../Sources/ptDcRaw.cpp:8215:21: error: no se puede encontrar un operador literal de cadena ‘operator DCRAW_VERSION’
make[1]: *** [../Objects/ptDcRaw.o] Error 1
make[1]: se sale del directorio `/tmp/yaourt-tmp-rafa/aur-photivo-hg/src/photivo-build/photivoProject'
make: *** [sub-photivoProject-make_default] Error 2
I installed dcraw, but not resolv the problem
Many thank's in advance
Regards
Rafa
Last edited by Warper4 (2012-05-25 17:17:15)

i use this thread for further compile errors, ok?
So there is a new issue with photivo. Seems that the errors are somehow related to qt4.
Nevermind. It's a problem with this "pointer"-thing. I really have no idea how to handle this.
Thats what i got:
compiling ../Sources/batch/ptBatchWindow.cpp
In file included from /usr/include/qt4/QtCore/QtCore:53:0,
from ../Sources/ptSettings.h:27,
from ../Sources/batch/ptBatchWindow.cpp:25:
/usr/include/qt4/QtCore/qtconcurrentfilter.h: In function 'QtConcurrent::ThreadEngineStarter<void> QtConcurrent::filterInternal(Sequence&, KeepFunctor, ReduceFunctor)':
/usr/include/qt4/QtCore/qtconcurrentfilter.h:108:47: warning: typedef 'Iterator' locally defined but not used [-Wunused-local-typedefs]
typedef typename Sequence::const_iterator Iterator;
^
In file included from ../Sources/ptDcRaw.h:125:0,
from ../Sources/ptSettings.h:31,
from ../Sources/batch/ptBatchWindow.cpp:25:
../Sources/ptDefines.h: At global scope:
../Sources/ptDefines.h:53:1: error: 'unique_ptr' in namespace 'std' does not name a type
std::unique_ptr<T> make_unique(Args&& ...args) {
^
In file included from ../Sources/ptChoice.h:32:0,
from ../Sources/ptSettings.h:33,
from ../Sources/batch/ptBatchWindow.cpp:25:
../Sources/filters/ptCfgItem.h:113:5: error: 'shared_ptr' in namespace 'std' does not name a type
std::shared_ptr<ptCurve> Curve;
^
../Sources/filters/ptCfgItem.h:176:3: error: 'shared_ptr' in namespace 'std' does not name a type
std::shared_ptr<ptCurve> Curve;
^
make[1]: *** [ptBatchWindow.o] Error 1
make[1]: Leaving directory `/home/k3nd9ue/Downloads/photivo-hg/src/photivo-build/photivoProject'
make: *** [sub-photivoProject-make_default] Error 2
==> ERROR: A failure occurred in build().
Aborting...
ok, i came so far:
Seems that g++ has to work with "g++ -std=c++0x" but i don't know where to change this. There's so much code
Last edited by lemondreas (2013-04-04 20:18:32)

Similar Messages

  • [SOLVED] I can't compile AmaroK 2.0

    I can't compile Amarok 2.0, tried both 2.0-svn and 2.0-1 packages. On 84% compilation it says:
    [ 84%] Building CXX object src/collection/mtpcollection/CMakeFiles/amarok_collection-mtpcollection.dir/amarok_collection-mtpcollection_automoc.o
    In file included from /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/mtpcollection/moc_MtpHandler.cpp:10,
    from /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/mtpcollection/amarok_collection-mtpcollection_automoc.cpp:4:
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/mtpcollection/handler/MtpHandler.h:68: ошибка: 'LIBMTP_raw_device_t' не был декларирован
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/mtpcollection/handler/MtpHandler.h:160: ошибка: 'LIBMTP_raw_device_t' не был декларирован
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/mtpcollection/handler/MtpHandler.h:171: ошибка: ISO C++ запрещает декларации 'LIBMTP_raw_device_t' без типа
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/mtpcollection/handler/MtpHandler.h:171: ошибка: expected ';' before '*' token
    make[2]: *** [src/collection/mtpcollection/CMakeFiles/amarok_collection-mtpcollection.dir/amarok_collection-mtpcollection_automoc.o] Ошибка 1
    make[1]: *** [src/collection/mtpcollection/CMakeFiles/amarok_collection-mtpcollection.dir/all] Ошибка 2
    make: *** [all] Ошибка 2
    ==> ОШИбКА: Сборка завершилась неудачно.
    Преждевременный выход...
    "ОШИбКА" means ERROR in Russian language.
    How can I install it? Maybe binary files aready exist?
    Last edited by Rinaldus (2008-12-12 07:26:20)

    heinzelotto wrote:install libmtp-devel from aur
    Nope, still fail
    [ 84%] Building CXX object src/collection/ipodcollection/CMakeFiles/amarok_collection-ipodcollection.dir/amarok_collection-ipodcollection_automoc.o
    In file included from /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/moc_IpodHandler.cpp:10,
    from /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/amarok_collection-ipodcollection_automoc.cpp:4:
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:30:25: error: gpod/itdb.h: Нет такого файла или каталога
    In file included from /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:35,
    from /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/moc_IpodHandler.cpp:10,
    from /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/amarok_collection-ipodcollection_automoc.cpp:4:
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/IpodMeta.h:82: ошибка: ISO C++ запрещает декларации 'Itdb_Track' без типа
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/IpodMeta.h:82: ошибка: expected ';' before '*' token
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/IpodMeta.h:83: ошибка: 'Itdb_Track' не был декларирован
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/IpodMeta.h:85: ошибка: нет декларации 'Itdb_Playlist' в этой области видимости
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/IpodMeta.h:85: ошибка: некорректный аргумент шаблона 1
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/IpodMeta.h:86: ошибка: 'Itdb_Playlist' не был декларирован
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/IpodMeta.h:192: ошибка: ISO C++ запрещает декларации 'Itdb_Track' без типа
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/IpodMeta.h:192: ошибка: expected ';' before '*' token
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/IpodMeta.h:193: ошибка: нет декларации 'Itdb_Playlist' в этой области видимости
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/IpodMeta.h:193: ошибка: некорректный аргумент шаблона 1
    In file included from /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/moc_IpodHandler.cpp:10,
    from /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/amarok_collection-ipodcollection_automoc.cpp:4:
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:99: ошибка: 'Itdb_Track' не был декларирован
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:100: ошибка: 'Itdb_Track' не был декларирован
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:101: ошибка: 'Itdb_Track' не был декларирован
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:105: ошибка: 'Itdb_Track' не был декларирован
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:106: ошибка: 'Itdb_Track' не был декларирован
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:107: ошибка: 'Itdb_Track' не был декларирован
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:108: ошибка: 'Itdb_Track' не был декларирован
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:116: ошибка: 'Itdb_Track' не был декларирован
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:117: ошибка: 'Itdb_Track' не был декларирован
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:118: ошибка: 'Itdb_Track' не был декларирован
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:119: ошибка: 'Itdb_Track' не был декларирован
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:120: ошибка: 'Itdb_Track' не был декларирован
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:133: ошибка: ISO C++ запрещает декларации 'Itdb_iTunesDB' без типа
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:133: ошибка: expected ';' before '*' token
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:134: ошибка: ISO C++ запрещает декларации 'Itdb_Device' без типа
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:134: ошибка: expected ';' before '*' token
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:135: ошибка: ISO C++ запрещает декларации 'Itdb_Playlist' без типа
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:135: ошибка: expected ';' before '*' token
    make[2]: *** [src/collection/ipodcollection/CMakeFiles/amarok_collection-ipodcollection.dir/amarok_collection-ipodcollection_automoc.o] Ошибка 1
    make[1]: *** [src/collection/ipodcollection/CMakeFiles/amarok_collection-ipodcollection.dir/all] Ошибка 2
    make: *** [all] Ошибка 2
    ==> ОШИбКА: Сборка завершилась неудачно.
    Преждевременный выход...
    Error: Makepkg was unable to build amarok package.
    Maybe you can try these packages from kdemod repos. Works great on my kdemod 4.1.3 installation.
    I'll try it at home.

  • [SOLVED] Can't compile any kernels or modules

    I can't compile the kernel, or any kernel modules. I tried the [core] kernel from ABS and the linux-ck kernel from AUR. I also tried to build vhba and nvidia modules.
    I tried the standard cflags and many others.
    All kernel compiles fail (immediately) with:
    scripts/mod/empty.c:1:0: error: code model kernel does not support PIC mode
    /* empty file to figure out endianness / word size */
    ^
    edward_81 had the same problem, with a default makepkg.conf and linux-mainline, which was never resolved.
    I don't know why this file is being compiled in PIC mode. I have not explicitly enabled PIC anywhere I know of. I checked everywhere I know to look.
    Last edited by quequotion (2015-02-04 15:46:10)

    graysky wrote:Try building one of them in a clean chroot.
    Will try.
    Finally got this working:
    Please add V=1 to the make command on line 89 and rebuild with MAKEFLAGS="-j1" to get verbose output.
    make -f ./scripts/Makefile.build obj=scripts/genksyms
    [...snip...]
    gcc -Wp,-MD,scripts/mod/.empty.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/include -I./arch/x86/include -Iarch/x86/include/generated -Iinclude -I./arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -m64 -mno-80387 -mno-fp-ret-in-387 -march=native -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -DCC_HAVE_ASM_GOTO -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(empty)" -D"KBUILD_MODNAME=KBUILD_STR(empty)" -c -o scripts/mod/.tmp_empty.o scripts/mod/empty.c
    scripts/mod/empty.c:1:0: error: code model kernel does not support PIC mode
    /* empty file to figure out endianness / word size */
    ^
    scripts/Makefile.build:257: recipe for target 'scripts/mod/empty.o' failed
    Last edited by quequotion (2015-02-04 13:40:15)

  • Can's compile the gdbm program ?(SOLVED)

    Here is an example comes from Beginning Linux Programming 3rd ,and I can't compile it on my machine. I don't know why?? And the gdbm package is always in the base. Please help me.
    try compile 1:
    $gcc dbm1.c -o gdbm1 -lgdbm
    错误信息:
    /tmp/cc2vMknU.o: In function `main':
    dbm1.c: (.text+0x2d): undefined reference to `dbm_open'
    dbm1.c: (.text+0x244): undefined reference to `dbm_store'
    dbm1.c: (.text+0x2ee): undefined reference to `dbm_fetch'
    dbm1.c: (.text+0x379): undefined reference to `dbm_close'
    collect2: ld returned 1 exit status
    try compile 2:
    $ gcc dbm1.c -o gdbm1 -lndbm -L/usr/lib
    错误信息:
    /usr/bin/ld: cannot find -lndbm
    collect2: ld returned 1 exit status
    #include <unistd.h>
    #include <stdlib.h>
    #include <stdio.h>
    #include <fcntl.h>
    #include <ndbm.h>
    #include <string.h>
    #define TEST_DB_FILE "/tmp/dbm1_test"
    #define ITEMS_USED 3
    /* A struct to use to test dbm */
    struct test_data {
    char misc_chars[15];
    int any_integer;
    char more_chars[21];
    int main() {
    struct test_data items_to_store[ITEMS_USED];
    struct test_data item_retrieved;
    char key_to_use[20];
    int i, result;
    datum key_datum;
    datum data_datum;
    DBM *dbm_ptr;
    dbm_ptr = dbm_open(TEST_DB_FILE, O_RDWR | O_CREAT, 0666);
    if (!dbm_ptr) {
    fprintf(stderr, "Failed to open database\n");
    exit(EXIT_FAILURE);
    /* put some data in the structures */
    memset(items_to_store, '\0', sizeof(items_to_store));
    strcpy(items_to_store[0].misc_chars, "First!");
    items_to_store[0].any_integer = 47;
    strcpy(items_to_store[0].more_chars, "foo");
    strcpy(items_to_store[1].misc_chars, "bar");
    items_to_store[1].any_integer = 13;
    strcpy(items_to_store[1].more_chars, "unlucky?");
    strcpy(items_to_store[2].misc_chars, "Third");
    items_to_store[2].any_integer = 3;
    strcpy(items_to_store[2].more_chars, "baz");
    for (i = 0; i < ITEMS_USED; i++) {
    /* build a key to use */
    sprintf(key_to_use, "%c%c%d",
    items_to_store[i].misc_chars[0],
    items_to_store[i].more_chars[0],
    items_to_store[i].any_integer);
    /* build the key datum strcture */
    key_datum.dptr = (void *)key_to_use;
    key_datum.dsize = strlen(key_to_use);
    data_datum.dptr = (void *)&items_to_store[i];
    data_datum.dsize = sizeof(struct test_data);
    result = dbm_store(dbm_ptr, key_datum, data_datum, DBM_REPLACE);
    if (result != 0) {
    fprintf(stderr, "dbm_store failed on key %s\n", key_to_use);
    exit(2);
    } /* for */
    /* now try and retrieve some data */
    sprintf(key_to_use, "bu%d", 13); /* this is the key for the second item */
    key_datum.dptr = key_to_use;
    key_datum.dsize = strlen(key_to_use);
    data_datum = dbm_fetch(dbm_ptr, key_datum);
    if (data_datum.dptr) {
    printf("Data retrieved\n");
    memcpy(&item_retrieved, data_datum.dptr, data_datum.dsize);
    printf("Retrieved item - %s %d %s\n",
    item_retrieved.misc_chars,
    item_retrieved.any_integer,
    item_retrieved.more_chars);
    else {
    printf("No data found for key %s\n", key_to_use);
    dbm_close(dbm_ptr);
    exit(EXIT_SUCCESS);
    Last edited by 009lin (2007-08-19 02:29:54)

    GDBM includes dbm and ndbm compatability.
    I found the solution from the man page, it said:
    If you wish to use the dbm or ndbm  compatibility  routines,  you  must
           link in the gdbm_compat library as well.  For example:
                gcc -o prog proc.c -lgdbm -lgdbm_compat
    Last edited by 009lin (2007-08-19 02:29:27)

  • Migrating MS SQL 2005 to Oracle 9i  (sqlserver_utilities can't compile)

    The package sqlserver_utilities can’t compile. (SQLSERVER_UTILITIES Body Compiled (with errors) )
    I am migrating a MS SQL 2005 database to an Oracle 9i database. I have the following installed:
    •     Oracle 9i Enterprise Edition Release 9.2.0.1.0 –Production with the partitioning, Spatial, Olap, and Oracle data mining options.
    •     Internal to Oracle SQL Developer (client-only) 1.5.0.53.04
    •     JTDS JDBC Driver 11.4.4.53.01 oracle.sqldeveloper.thirdparty.drivers.sqlserver
    •     Java(TM) Platform 1.5.0_06
    The MS SQL 2005 Database consists out of multiple tables, views, stored procedures, functions and triggers. I tried quick migrate only to find that the migration failed.
    For a simple migration test I created a test database in MSQL 2005. This database has a simple table with an identity field and a store procedure that does an insert into the table. I followed all the steps to migrate a sql database and everything seemed to work. In Oracle I can now find the migrated table and stored procedure. I also see that the migration tool has created a sequence to deal with the identity field (in combination with a trigger) . when I try to execute the insert stored procedure in Oracle it fails. When I started looking at the log messages I see:
    INSERT INTO "DBO_STOREDPROCEDURETEST"."SOMEOTHERTABEL" (SOMEOTHERTABELTEXT, SOMEOTHERTABELCODE, VERYBASICTABLEID) VALUES ('sdfgsdfg', 'sdgfsdfg', '1')
    One error saving changes to table "DBO_STOREDPROCEDURETEST"."SOMEOTHERTABEL":
    Row 3: ORA-04068: existing state of packages has been discarded
    ORA-04063: has errors
    ORA-04063: package body "DBO_STOREDPROCEDURETEST.SQLSERVER_UTILITIES" has errors
    ORA-06508: PL/SQL: could not find program unit being called
    ORA-06512: at "DBO_STOREDPROCEDURETEST.SOMEOTHERTABEL_SOMEOTHERTABE_1", line 19
    ORA-04088: error during execution of trigger 'DBO_STOREDPROCEDURETEST.SOMEOTHERTABEL_SOMEOTHERTABE_1'
    ORA-06512: at line 1
    INSERT INTO "DBO_STOREDPROCEDURETEST"."SOMEOTHERTABEL" (SOMEOTHERTABELTEXT, SOMEOTHERTABELCODE, VERYBASICTABLEID) VALUES ('sadf', 'asfd', '1')
    One error saving changes to table "DBO_STOREDPROCEDURETEST"."SOMEOTHERTABEL":
    Row 3: ORA-04068: existing state of packages has been discarded
    ORA-04063: has errors
    ORA-04063: package body "DBO_STOREDPROCEDURETEST.SQLSERVER_UTILITIES" has errors
    ORA-06508: PL/SQL: could not find program unit being called
    ORA-06512: at "DBO_STOREDPROCEDURETEST.SOMEOTHERTABEL_SOMEOTHERTABE_1", line 19
    ORA-04088: error during execution of trigger 'DBO_STOREDPROCEDURETEST.SOMEOTHERTABEL_SOMEOTHERTABE_1'
    ORA-06512: at line 1
    I then noticed the sqlserver_utilities package compiled with errors. It seems that DBMS_DB_VERSION.VER_LE_9_2 and REGEXP_INSTR doesn’t exists. (see code beneath)
    -- only for 10g
    IF NOT DBMS_DB_VERSION.VER_LE_9_2 THEN
    IF REGEXP_INSTR(temp_exp,
    '^\{d[[:space:]]*''([[:digit:]]{4})-([[:digit:]]{2})-([[:digit:]]{2})''\}$') = 1 THEN -- ISO861 format
    -- e.g. {d '2004-05-23' }
    temp_exp := REGEXP_REPLACE(temp_exp,
    '^\{d[[:space:]]*''([[:digit:]]{4})-([[:digit:]]{2})-([[:digit:]]{2})''\}$',
    '\1-\2-\3');
    format_str := 'YYYY-MM-DD';
    Question 1: How do I solve this problem? (the oracle database must be Oracle 9i)
    Question 2: How can I migrate an MS SQL 2005 DB to oracle 9i ? (with views, triggers, stored procedures )
    Message was edited by:
    user640306

    Hi user640306,
    FUNCTION str_to_date(p_date_expr IN VARCHAR2)
    RETURN DATE
    has the 10g regexp code
    IF format_str IS NOT NULL THEN
    RETURN TO_DATE(temp_exp, format_str);
    ELSE
    RETURN TO_DATE(temp_exp, 'DD-MON-YYYY HH24:MI:SS');
    END IF;
    It defaults to 'DD-MON-YYY HH24:MI:SS' I suggest altering the code to suite how you want string to date to work in your locale.
    FUNCTION str_to_date(p_date_expr IN VARCHAR2)
    RETURN DATE
    IS
    temp_val NUMBER;
    temp_exp VARCHAR2(50);
    format_str VARCHAR2(50) := NULL;
    BEGIN
    IF p_date_expr IS NULL THEN
    RETURN NULL;
    END IF;
    temp_exp := TRIM(p_date_expr);
    -- only for 10g code removed this was trying
    -- to work out the date mask using regular expressions.
    IF format_str IS NOT NULL THEN
    RETURN TO_DATE(temp_exp, format_str);
    ELSE
    --If you use this code insert an appropriate data mask,
    --default is  'DD-MON-YYYY HH24:MI:SS'
    RETURN TO_DATE(temp_exp, 'DD-MON-YYYY HH24:MI:SS');
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
    RETURN NULL;
    END str_to_date;
    -Turloch

  • Has anyone encountered drastic shorter battery life both on iphone 5 and ipad since updating to iOS 6.1.2? How can this problem be solved?

    Dear all,
    I am new to this community even though I have been a Apple user for years, so please forgive me if this question is not in the right section.
    Has anyone encountered drastic shorter battery life both on iphone 5 and ipad since updating to iOS 6.1.2? I've always been happy with these two products until the update - now the battery life is considerably shorter which is extremely frustrating.
    How can this problem be solved? Is there any way to go back to the previous version?
    Thanks for your help.

    If you update using iTunes the phone is first wiped clean, then the new OS is installed, and finally the backup is restored. After this finishes if you sync your music should be restored. Music is not in the backup, because it is already on your computer and duplicating it would use up a lot of hard disk space.
    An OTA update just patches what has changed; it does not disturb content.

  • I have a annual plan, it supposed must be used in two terminals, but i haven´t been able to install any app in a second computer, it always says that the app is only available as a trial download. What can I do to solve this issue, and be able to use my p

    I have a annual plan, it supposed must be used in two terminals, but i haven´t been able to install any app in a second computer, it always says that the app is only available as a trial download. What can I do to solve this issue, and be able to use my paid plan in two computers?

    Hi Susan,
    Please refer to the help document to fix this issue:
    Creative Cloud applications unexpectedly revert to trial mode | CS6, CCM
    You may also refer to the thread as below:
    creative cloud software says my free trial has expired, but I have a paid subscription
    Regards,
    Sheena

  • I have problem with 4s and my car 2011 passant cc always drob after I connect phone to car . What Can I do to solve this problem ?

    I have the same problem with my car passat cc 2011 and my phone 4s that drob connection and  calls after time so what can I do to solve this problem ?

    It's a really bad idea to post your email address - it's an invitation to spam - and I've asked the Hosts to remove it.
    If a second-hand iOS device has been 'Activation locked' then only the previous owner - effectively the shop in this case - can unlock it, either by providing you with the account ID and password, or by removing it from his list of devices (as he should have done before selling it) - please see http://support.apple.com/kb/ts4515
    If you are unable to contact them to do this then I'm afraid you will not be able to use the device - there is no other way of unlocking it at all. Apple cannot unlock it for you.

  • I was using my iPhone 5 and the screen randomly went black. I can still hear incoming calls but the screen stays black and unresponsive and stays black. My lock button stopped working last week so I can't restart the phone. What can I do to solve this?

    I had an appointment this morning with Apple to try and solve the problem with my lock button ranomly not working anymore and a few hours before my appointment with the Apple store i was using my phone and my screen randomly went black and stopped working. And the p.roblem now i cant use it. I tried restarting the phone but I can't restart it due to my lock button not working so i need help with a solution on what i can do. I missed my appointment today because i could no longer use my phone and i'm now stuck using my laptop. I did also try connecting it to my MacBook but the screen was still unresponsive and black. I rescheduled my appointment to Monday to see what is wrong with my button and screen but in the meanwhile i would like to know if there is anything i can do or if i would just have to wait until monday and take it in to Apple. Any help would be really appreciated as i am phonelss for now until i take it in to Apple in a few days. Thanks.

    You wrote...
    ' What can I do to solve this'
    What have you tried...?
    The Basic Troubleshooting Steps are:
    Restart... Reset... Restore from Backup...  Restore as New...

  • My MacBook Air won't stay off. I turn it off and it will wait anywhere from a few seconds to a few hours and turn itself back on. You can see how that can get annoying and I can't seem to solve the problem.

    I turn it off and it will wait anywhere from a few seconds to a few hours and turn itself back on. You can see how that can get annoying and I can't seem to solve the problem.

    There's a slight chance this might help:
    Intel-based Macs: Resetting the System Management Controller (SMC)
    Otherwise it needs to be repaired.

  • Since updating to iOS7 I am unable to send or receive messages on my iPad. What can I do to solve this problem?

    Since updating my iPad mini I have been unable to send or receive messages. My iPad only wants to recognize contacts with apple products but still won't deliver a message to them. What can I do to solve this problem?

    Try restarting the device first..
    Press and hold the Sleep/Wake button for a few seconds until the red "slide to power off" slider appears, then swipe the slider to power off.
    Then press and hold the Sleep/Wake button until the Apple logo appears.
    If that doesn't help, try here > iOS: Troubleshooting Messages

  • I upgraded my iphone os to 4.01 and i have not been able to synce to my computer. The erros message I get says the Iphone connected is not recognised what can i do to solve this problem.

    i upgraded my iphone os to 4.01 and i have not been able to sync to my computer. The error message I get says the Iphone connected is not recognised what can i do to solve this problem.

    Did you try to connect in recovery mode? iOS: Unable to update or restore
    Also check here: iOS: Device not recognized in iTunes for Windows
    And make sure your security software is set up right: iTunes for Windows: Troubleshooting security software issues

  • In IOS7 none of my YouTube movies show up on my site build with iWeb and its YouTube widget. On an iPad running IOS6 the site still works fine, and all movies play well. What is going on,and what can I do to solve this problem ???

    In IOS7 none of my YouTube movies show up on my site build with iWeb and its YouTube widget. On an iPad running IOS6 the site still works fine, and all movies play well. What is going on,and what can I do to solve this problem ???

    It's only Safari/iOS7. Chrome iOS7 works fine.
    Solution?
    Go to YT and grab the code.
    Paste it in a HTML Snippet.

  • Hello I'm trying to update my applications and it is asking me to sign in and checking my billing account .it is not accepting my billing account that I use tried to change it several time it didn't work .what can I do to solve it?

    Hello I'm trying to update my applications and it is asking me to sign in and checking my billing account .it is not accepting my billing account that I use tried to change it several time it didn't work .what can I do to solve it?

    What happens when you try to confirm your details, if you are getting an error message then what does it say ? For a card to be accepted (debit cards are no longer accepted in all countries) it needs to be registered to exactly the same name and address as on your account, and have been issued by a bank in your country. If it's not being accepted then do you get the 'none' option on your account ?

  • HT3910 I face problems with the Nvidia 8800 GS on my iMac 24'' 3.06Ghz intel core duo. OS 10.06.08. What can I do to solve the problem and if you recommend upgrade to mountain Lion

    I  face problems with the Nvidia 8800 GS on my iMac 24'' 3.06Ghz intel core duo. OS 10.06.08. What can I do to solve the problem and if you recommend upgrade to mountain Lion

    If you want to sync it to the iPad from that Mac, you need to upgrade it to at least 10.5.8.
    If you want to copy the music to another Mac, you don't. Move the iTunes folder of the item in the Finder's sidebar over as you would any other folder. If you put it somewhere other than the Music folder, launch iTunes with the Option key held down and point it to that location.
    (61713)

Maybe you are looking for

  • Can't get sound on my converted video ot TV shows

    I'm right clicking on the title and converting the video to ipod. I am getting a sync but I'm still having problems getting the audio to come through. Any ideas? Do I have to use a diffent conversion program?

  • H:outputLink tag whitespace

    Hello, I've found that the <h:outputLink> tag, when rendering HTML, follows the closing </a> with lots of whitespace - some line breaks and tabs. I'm not sure if this problem is specific to the particular JSF implementation I'm using (WebSphere Porta

  • Is this really bronze?

    I just received a powerbook G3 and I'm trying to figure out what I can/should upgrade. I know very little about what I'm doing, and I'm hoping someone can help point me in the right direction. My goal is to get on the internet and do email. My questi

  • Word notebook layout view, reader for pc?

    Hi all, Stumbling upon it by accident, I really came to love the notebook layout view in word (2004). I used it yesterday to take structured (! that's a first...) notes on each step of an extensive data analysis and this document will be a great help

  • WLS is slow, Memory Monitoring : what Memory Usage

    After new Install WLS10.3.3. with OFRD on VM / Windows the WLS AdminServer is running very slow, although nothing app works the windows TaskManager shows enough memory but high CPU - activities looking for about it I found a lot but not really to use