Compiling packages with libapr in it, strange link errors

On my Solaris 10 boxen, suddenly I cannot build stuff anymore that utilizes Apache's apr.
This includes Apache 2 (2.0.53 and 2.0.54), and subversion.
The funny thing is, I did build 2.0.53 a few weeks ago, and did not bump into the problem. Rebuilding it, with identical configure options, environment vars and make invocation, leads to the following errors.
They make little sense to me. Clues, anyone?
The following output is from an attempt to build subversion. The same errors occur when building Apache 2:
---- Snip ----
phil@turing> pwd; cat PHIL/build
/phil/sw/sunos/i386/obj/subversion-1.1.4
#! /bin/sh
unset CPPFLAGS
unset LDFLAGS
unset LD_LIBRARY_PATH
LD_RUN_PATH=/phil/sw/sunos/i386/lib; export LD_RUN_PATH
/phil/sw/src/subversion-1.1.4/configure \
--prefix=/phil/sw/sunos/i386/pkg/subversion-1.1.4  \
--disable-mod-activation  \
--enable-javahl  \
--with-berkeley-db=/phil/sw/sunos/i386/pkg/db-4.2.52  \
--with-editor=vi  \
--with-zlib
make
phil@turing> sh ./PHIL/build
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_rwlock_tryrdlock@SUNW_1.2'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_exit@SUNW_0.9'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_attr_setstacksize@SUNW_0.9'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_key_create@SUNW_0.9'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `dlerror@SUNW_1.22'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `write@SUNW_0.9'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_key_delete@SUNW_0.9'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_create@SUNW_0.9'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_setspecific@SUNW_0.9'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `gethostname@SUNWprivate_1.1'
/phil/sw/sunos/i386/obj/subversion-1.1.4/subversion/libsvn_subr/.libs/libsvn_subr-1.so: undefined reference to `open@SUNW_0.9'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `writev@SUNW_1.2'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_rwlock_trywrlock@SUNW_1.2'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `waitpid@SUNW_0.9'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `fcntl@SUNW_0.9'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_rwlock_init@SUNW_1.2'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_join@SUNW_0.9'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `select@SUNW_1.2'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_sigmask@SUNW_0.9'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_mutex_consistent_np@SUNW_1.3'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_mutexattr_setrobust_np@SUNW_1.3'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_equal@SUNW_0.9'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_rwlock_destroy@SUNW_1.2'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_attr_init@SUNW_0.9'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `dlopen@SUNW_1.22'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_mutexattr_settype@SUNW_1.2'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_attr_getdetachstate@SUNW_0.9'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_detach@SUNW_0.9'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `read@SUNW_0.9'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_getspecific@SUNW_0.9'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `poll@SUNW_1.2'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_attr_setdetachstate@SUNW_0.9'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `dlsym@SUNW_1.22'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_rwlock_rdlock@SUNW_1.2'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_rwlock_wrlock@SUNW_1.2'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_self@SUNW_0.9'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `dlclose@SUNW_1.22'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_rwlock_unlock@SUNW_1.2'
/phil/sw/sunos/i386/obj/subversion-1.1.4/subversion/libsvn_subr/.libs/libsvn_subr-1.so: undefined reference to `fsync@SUNW_0.9'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_once@SUNW_0.9'
/phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `sigaction@SUNW_0.9'
collect2: ld returned 1 exit status
make: *** [subversion/clients/cmdline/svn] Error 1
---- Snip ----

Same thing with curl and others....
root@sol10[20:50] > gcc -v
Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.4/specs
Configured with: ./configure --prefix=/usr/local
Thread model: posix
gcc version 3.4.4
What gives?
make[2]: Entering directory `/home/src/curl-7.14.0/lib'
make[2]: Leaving directory `/home/src/curl-7.14.0/lib'
make[1]: Leaving directory `/home/src/curl-7.14.0/lib'
Making all in src
make[1]: Entering directory `/home/src/curl-7.14.0/src'
make all-am
make[2]: Entering directory `/home/src/curl-7.14.0/src'
/bin/ksh ../libtool tag=CC mode=link gcc -g -O2 -o curl main.o hugehelp.o urlglob.o writeout.o writeenv.o getpass.o homedir.o strtoofft.o timeval.o ../lib/libcurl.la -lsocket -lnsl -lz
gcc -g -O2 -o .libs/curl main.o hugehelp.o urlglob.o writeout.o writeenv.o getpass.o homedir.o strtoofft.o timeval.o ../lib/.libs/libcurl.so -lsocket -lnsl -lz -Wl,--rpath -Wl,/usr/local/lib
../lib/.libs/libcurl.so: undefined reference to `dlopen@SUNW_1.22'
../lib/.libs/libcurl.so: undefined reference to `dlsym@SUNW_1.22'
../lib/.libs/libcurl.so: undefined reference to `dlclose@SUNW_1.22'
collect2: ld returned 1 exit status
make[2]: *** [curl] Error 1
make[2]: Leaving directory `/home/src/curl-7.14.0/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/src/curl-7.14.0/src'
make: *** [all-recursive] Error 1

Similar Messages

  • IDCS3 Mac: Strange Link error

    I am compiling a CS3 plugin and getting a link error I cannot track down. It looks like this:
    Linking /source code/.../CRF(1 error)
    can't locate file for: -lPublicPlugin
    file: - lPublicPlugin is not an object file (not allowed in a library)
    I have done several searches on variations of lPublicPlugin, including IPublicPlugin, and PublicPlugin,and the only thing that comes close is a reference to the libpublicplugin.a library that is included by DollyXs when I generate the project.
    Can anyone suggest a method for tracking down this problem?
    TIA!
    John

    I have found my problem and all InDesign developers who are using Xcode needs to know what it was.
    This project was originally created by DollyXs, which included all appropriate library search paths for a successful link. However, I needed to add the mysqlclient.a library as well, so I did so by dragging and dropping. The result was that Xcode erased the library search path that pointed to the InDesign static library "libPublicPlugIn.a," replacing it with the path that pointed to the dropped library.
    So, if you need to add additional libraries to the project, take care that you somehow preserve the library search paths that already exist in that field, if you intend to drag and drop the library onto the project.
    I do not know if this error will be prevented if the programmer uses the Add Files dialog to add the library.
    Because of the importance of this information, I am also placing this message in its own thread on the forum.
    R,
    John

  • Compile Package with DreamCoder

    Hi
    I compile the package and debugge with DreamCoder for oracle and is very easy for all PL/SQL developers.
    All task for developers is simple with this product .
    URL : http://www.mentattech.com
    Regards,
    Peter

    I have tried dropping the package and re-compiling it but to no avail. I can compile other packages/procedures/functions without any issues.
    Also, trying to run either EXEC UTL_RECOMP.recomp_parallel(4, 'SCHEMA_NAME'); or @?/rdbms/admin/UTLRP.SQL gives the following erros:
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    Process ID: 7040
    Session ID: 388 Serial number: 9039
    ERROR:
    ORA-03114: not connected to ORACLE
    DOC> The following query reports the number of objects that have compiled
    DOC> with errors (objects that compile with errors have status set to 3 in
    DOC> obj$). If the number is higher than expected, please examine the error
    DOC> messages reported with each object (using SHOW ERRORS) to see if they
    DOC> point to system misconfiguration or resource constraints that must be
    DOC> fixed before attempting to recompile these objects.
    DOC>#
    ERROR:
    ORA-03114: not connected to ORACLE
    DOC> The following query reports the number of errors caught during
    DOC> recompilation. If this number is non-zero, please query the error
    DOC> messages in the table UTL_RECOMP_ERRORS to see if any of these errors
    DOC> are due to misconfiguration or resource constraints that must be
    DOC> fixed before objects can compile successfully.
    DOC>#
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE

  • Strange Linker error using Forte 6

    Hi,
    I am getting an unusual linker error while trying to compile something using Forte 6 update 2. First some backgrond
    We have an internal application currently running on a Solaris 2.6 box. I wish to move it to a Solaris 8 box. The application uses mainly apache, perl and mysql. One of the perl modules used is the old SPGrove module written by James Clark (www.jclark.com), which in turn uses the libsp.a library from the 'sp' distribution by the same author. I can find information on compiling/running 'sp' on O/S versions upto solaris 7 but not 8. Having tried all the available versions of gcc I finally gave up and tried Forte 6.
    Having had problems with applications and dynamic libraries complied with different compilers before I have compiled perl 5.6.1 using Forte 6, I have installed all the required perl modules and I have successfully compiled version 1.3.4 of the 'sp' package.
    The old SGML::SPGrove modules is no longer available and has been replaced by two newer ones, SGML::Grove, which installs fine, and SGML::SPGroveBuilder, which has some C++ code which is linked against the libsp.a library as mentioned above. The module (once certain options have been set to get the correct environment) compiles fine but when I run the test suit I get the following error.
    Can't load 'blib/arch/auto/SGML/SPGroveBuilder/SPGroveBuilder.so' for module SGML::SPGroveBuilder: ld.so.1: /usr/local/bin/perl: fatal: relocation error: file blib/arch/auto/SGML/SPGroveBuilder/SPGroveBuilder.so: symbol __1cG__CrunLvector_copy6Fpv1IIpF11_vpF1_v_v_: referenced symbol not found at /usr/local/lib/perl5/5.6.1/sun4-solaris/DynaLoader.pm line 206.
    The symbol '__1cG__CrunLvector_copy6Fpv1IIpF11_vpF1_v_v_' is contained in libCrun.so in the Forte installation. I have no idea what it is, or why I get the error.
    Sorry to be so long winded, but I wanted to give enough information so that I didnt get 'too many' easy to answer questions about the environment.
    'uname -snrvmapiX' for the system is:
    SunOS atlas 5.8 Generic_108528-13 sun4u sparc SUNW,Ultra-60System = SunOS
    Node = atlas
    Release = 5.8
    KernelID = Generic_108528-13
    Machine = sun4u
    BusType = <unknown>
    Serial = <unknown>
    Users = <unknown>
    OEM# = 0
    Origin# = 1
    NumCPU = 1
    Many thanks.
    Sean Timmins
    Systems Administrator

    Just to clarify, the I get the error during the 'make test' part of the normal perl module build process for installing the SGML::SPGroveBuilder module (perl Makefile.PL; make; make test; make install).
    Perl and SGML::SPGroveBuilder are both complied using Forte 6 update 2. The only difference being that perl (being normal C code) was compiled using the C compiler '/usr/local/SUNWspro/bin/cc' and the module requires the C++ complile '/usr/local/SUNWspro/bin/CC'.
    I have to make minor modifications to Makefile.PL before it will compile at all. These modifications are:
    1) Forcing the C++ compiler as perl will try to use exactly the same binary as was used to compile itself.
    2) Setting a few #define's so that the same ones are used to build the module as were used to build the sp library that is linked in with the module.
    3) Adding the various directories where both libsp.a (yes statically linked, no dynamic one in the sp distribution) and the required header files (all in the sp distribution) are located.
    I have since tried recompiling perl (with Forte 6 update 2) with no dynamicaly loaded libraries and get the same error. I have also found a tiny little patch to OpenSPv1.5pre5 (which is the replacement for the original sp distribution) which allowed me to compile eveything with gcc 3.1, perl, opensp (v1.5pre5) and SGML::SPGroveBuilder, and I get a very similar error at the same stage but a different symbol name.
    I am begining to think that its gone to far and there are too many branching oppertunities where I have made a mistake (I've really tried way way way too many combinations now), or that the SPGroveBuilder module simply has a probelm with the C++ code in it. It has not been updated in some time.
    I am going to try removing everything from the box and start from scratch, patch it to the hilt and try it from the beginning.
    Of course, any flashes of brilliance that come to mind would still be greatly appreciated :-)
    Sean Timmins
    Systems Administrator

  • [SOLVED]How to install packages with the -U option? PGP error.

    I have to downgrade some packages (linux package due to ath5k problem), but pacman won't allow me because of the signatures.
    I downloaded the packages i need from here http://schlunix.org/archlinux/.
    These packages are safe to install? How can i bypass the signature check, if these packages are safe to install?
    Thanks.
    Last edited by Hyugga (2012-04-19 19:46:23)

    If you have a pgp key, you can sign the packages with your own key. You can do this by editing /etc/makepkg.conf, adding your key to the  GPGKEY="" section and enabling the sign option in the BUILDENV section. When building the package, it'll then be signed with your personal key. Afterwards import your key in pacman (pacman-key -r <yourkey>), assign the proper trust level and you're good to go.
    A workaround is to temporarily set "SigLevel = Never" in your /etc/pacman.conf (and hence disabling keysigning).
    EDIT: I just bothered to actually check your link and you'll be installing prebuilt binaries, so my first explanation doesn't apply there (you won't be building anything). So just setting SigLevel to Optional or Never (temporarily) should do.
    Last edited by Gcool (2012-04-19 19:23:05)

  • Trouble compiling package with JDK 1.4

    Hi,
    I just installed JDK 1.4 on a new machine, now I have trouble running compile scripts that used to work on my old machine. The old an new are configured with Win 2000. The following compiles without problem:
    javac -classpath "..." -d "..." "c:\.....\com\...\some package\MyClass.java"
    Changing this statemetn to:
    javac -classpath "..." -d "..." "c:\.....\com\...\some package\*.java"
    should compile all Java files in 'some package', instead what I get is the following error message:
    error: cannot read: c:\.....\com\...\some package\*.java
    The documentation says that this should still work. Anyone aware of changes in 1.4 that could cause this problem?
    Thanks for responding

    As a work-around, you can use some Unix-styled shell (that is, command processor) which expands the *.expression into the list of the matching file names, thus releaving javac from this task. (Caveat: directory names with a space inside will cause problems.)
    I can recommend the Cygnus package (including the command processor "bash") or "MinGW", the Minimalist GNU For Windows with its simpler sh:
    http://www.mingw.org/
    ftp://ftp.franken.de/pub/win32/develop/gnuwin32/mingw32/porters/Mikey/

  • How to compiling package with j2sdk

    can I just use one command line to compilng a package under J2SDK?

    I'm sure I'm not really doing you any favours here since wherever you would go otherwise (like a tutorial) would teach you much more than the simple answer to your question but, if you'll promise (no crossed fingers) to go and look at the tutorial mentioned by jesperdj then I'll tell you...
    javac dir1\*.java dir1\dir1a\*.java dir2\*.javai.e. list all the directories you want compiled, with spaces in between.
    Chris.

  • Got Error While Compiling Packages with TOAD (URGENT)

    Dear Experts,
    Please help me to resolve this erroe this is very criticla.
    ORA-20000: You have insufficient privileges for an objects in this schema
    ORA-06512: at "SYS.DBMS.UTILITY" LINE 422
    ORA-06512: Line 1

    You should be connected to the user that owns the packages, or SYS.

  • Compiling failed with "unrecognized command line option '-Wl'" error

    Helllo,
    I have here a fresh installation of Archlinux and I fall into troubles with compiling a few of applications from AUR.
    The problem is this:
    gcc: error: unrecognized command line option ‘-Wl’
    It happens for example with bubblefishymod package from AUR. I've never seen this error.
    Any suggestion, what is wrong, please?
    I have 64bit Archlinux installation, intel core i5, base-devel package group is installed.

    Seems like a straightforward error message. Read about -Wl in "man gcc" if you want to know more.
    In the meantime, removing "-Wl" from the LDFLAGS in the Makefile (I used a sed line in the PKGBUILD) should allow you to compile it successfully. Whether or not it works as expected though, is another matter entirely. Contact the author and get him to fix his Makefile.

  • Procedure compilation failed with SQL command not properly ended error

    Hi All,
    Kindly help me to fix this.
    I am compiling a procedure and getting an error. Procedure and error details are as follows:
    Procedure:
    CREATE or REPLACE PROCEDURE jiostore_new.auditReportCount (u_name IN VARCHAR2,stdate IN DATE,eddate IN DATE)
    IS
    BEGIN
    DECLARE Total Number;
    BEGIN
    SELECT COUNT(am.id) into Total FROM auditMaster_ AS am  INNER JOIN jioworld.deviceos_ dvos ON dvos.id=am.deviceOs WHERE am.updatedBy=u_name or am.updatedBy=ALL AND DATE(am.updatedDate)>=stdate OR DATE(am.updatedDate)='0000-00-00' AND DATE(am.updatedDate)<=eddate or DATE(am.updatedDate)='0000-00-00';
    dbms_output.put_line('Total Count:' || Total);
    END;
    END;
    Error:
    Error(6,1): PL/SQL: SQL Statement ignored
    Error(6,50): PL/SQL: ORA-00933: SQL command not properly ended
    Regards,
    Vishal G

    2922723 wrote:
    Hi All,
    Kindly help me to fix this.
    I am compiling a procedure and getting an error. Procedure and error details are as follows:
    Procedure:
    CREATE or REPLACE PROCEDURE jiostore_new.auditReportCount (u_name IN VARCHAR2,stdate IN DATE,eddate IN DATE)
    IS
    BEGIN
    DECLARE Total Number;
    BEGIN
    SELECT COUNT(am.id) into Total FROM auditMaster_ AS am  INNER JOIN jioworld.deviceos_ dvos ON dvos.id=am.deviceOs WHERE am.updatedBy=u_name or am.updatedBy=ALL AND DATE(am.updatedDate)>=stdate OR DATE(am.updatedDate)='0000-00-00' AND DATE(am.updatedDate)<=eddate or DATE(am.updatedDate)='0000-00-00';
    dbms_output.put_line('Total Count:' || Total);
    END;
    END;
    Error:
    Error(6,1): PL/SQL: SQL Statement ignored
    Error(6,50): PL/SQL: ORA-00933: SQL command not properly ended
    Regards,
    Vishal G
    The first thing, is that for your own sanity you should learn to format your code for readability.  And for the sanity of those from whom you seek help, you should learn to preserve that formatting when you post to a forum:
    CREATE OR REPLACE PROCEDURE jiostore_new.auditReportCount(
        u_name IN VARCHAR2,
        stdate IN DATE,
        eddate IN DATE)
    IS
    BEGIN
      DECLARE
        Total NUMBER;
      BEGIN
        SELECT COUNT(am.id)
        INTO Total
        FROM auditMaster_ AS am
        INNER JOIN jioworld.deviceos_ dvos
        ON dvos.id              =am.deviceOs
        WHERE am.updatedBy      =u_name
        OR am.updatedBy          =ALL
        AND DATE(am.updatedDate)>=stdate
        OR  DATE(am.updatedDate) ='0000-00-00'
        AND DATE(am.updatedDate)<=eddate
        OR  DATE(am.updatedDate) ='0000-00-00';
        dbms_output.put_line('Total Count:' || Total);
      END;
    END;
    What is the data type of am.updateDate?  It appears to be a varchar being passed to a function named DATE to convert it to a DATEfor comparison to your input parameters,  But you also compare it to strings. 
    Where are the variables 'u_name' and 'ALL'?  (and what kind of a name is that for a variable -- 'ALL'?)

  • Have wakeup issues with Lion! get strange graphic error after wake-up

    has anyone seen this issue before? google didn't help me
    I have to restart every single app to get a proper resultion / graphics...
    System was running well before (@ Snow Leo)

    Me so do the same but when I close the lid of my MBPro. It then enters in a loop of sleep/awake and in the console shows the same messages as you have sent.

  • Execution of Immediate SQL in compiled package in two versions of SQL*PLUS

    A peculiar problem has risen in our database.
    Execution of Immediate SQL in compiled package in two versions of SQLPLUS gives different results
    We have a compiled package with two procedures that contain immediate SQL statements, and these are:
    +PROC_DELETE_ROWS+
    +     -- This immediate sql deletes unreferenced Document Types from the DOC_REF_TYPE table+
    +     delete from doc_ref_type t where exists (select 1 from PROARC_DOC_REF_TYPE_VW d where d.doc_ref_type = t.doc_ref_type)+
       +     and not exists (select 1 from doc_ref d where d.doc_ref_type = t.doc_ref_type)+
       +     and doc_ref_type not in (select doc_ref_type from eis_doc_ref_type)+
       +     and doc_ref_type not in (select eis_doc_ref_type from eis_doc_ref_type)+
    +PROC_ADD_NEW_ROWS+
    +     -- Drop the temporary table+
    +     drop table TMP_PROARC_DOC_REF_TYPE+
    +     -- Create a temporary table+
    +     create table tmp_PROARC_DOC_REF_TYPE as+
    +     select DOC_REF_TYPE, substr(DOC_REF_TYPE_DESC,1,100) as DOC_REF_TYPE_DESC+
    +     from PROARC_DOC_REF_TYPE_VW+
    +     -- Insert document types that do not exist in the DOC_REF_TYPE table+
    +     insert into doc_ref_type t (DOC_REF_TYPE, DOC_REF_TYPE_DESC)+
            +     select distinct DOC_REF_TYPE, DOC_REF_TYPE_DESC from tmp_PROARC_DOC_REF_TYPE s+
            +     where not exists (select 1 from doc_ref_type t where t.doc_ref_type = s.doc_ref_type)+
    I am using the following test script:
    +Exec mypackage.proc_delete_rows;+
    +Commit;+
    +Select count(*) from DOC_REF_TYPES;+
    +Exec mypackage.proc_add_new_rows;+
    +Commit;+
    +Select count(*) from DOC_REF_TYPES;+We have a Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit
    I am using SQL*Plus: Release 8.1.7.0.0
    The test script is working as expected.
    Count after delete =155
    Count after insert = 511
    but when I use another computer with SQL*Plus: Release 10.x
    The Test script returns the following
    Count after delete =155
    Count after insert =155
    The same is happening when I am running the scripts as a scheduled job.
    QUESTION:
    I believe I have found a fix for the problem though. By changing tmp_PROARC_DOC_REF_TYPE in the insert statement to all upper case, the script is running in both environments apparently. But how is this possible? I am executing a compiled package in the database. The session shell should have no impact on the behaveour of the procedure I am calling. What causes this?
    Edited by: Reon on Jun 16, 2011 4:44 AM

    1) I am using the same user (PANDORA)
    2) (PANDORA) for both
    3) I am actually not handling any errors. Just skipping any error altogether. I'll check to see what exceptions are raised, and come back.
    I have also noticed that SQL/PLUS is not the culprit here. If I use SQLTools 1.5 to run the script, the same thing happens. So it has to do something with the connection or session environment that is inheritet to both clients.
    The CODEZ:_
      procedure add_doc_types IS
      sqlstr     VARCHAR2(2000);
      begin
      BEGIN
           sqlstr := 'drop table TMP_PROARC_DOC_REF_TYPE';
         EXECUTE IMMEDIATE sqlstr;
        EXCEPTION
          WHEN OTHERS THEN
            null;
        END;
      BEGIN
           sqlstr := 'create table tmp_PROARC_DOC_REF_TYPE as select DOC_REF_TYPE, substr(DOC_REF_TYPE_DESC,1,100) as DOC_REF_TYPE_DESC from PROARC_DOC_REF_TYPE_VW';
         EXECUTE IMMEDIATE sqlstr;
        EXCEPTION
          WHEN OTHERS THEN
            null;
        END;
        BEGIN
            sqlstr := 'insert into doc_ref_type t (DOC_REF_TYPE, DOC_REF_TYPE_DESC)
                    select distinct DOC_REF_TYPE, DOC_REF_TYPE_DESC from TMP_PROARC_DOC_REF_TYPE s
                    where not exists (select 1 from doc_ref_type t where t.doc_ref_type = s.doc_ref_type)';
         EXECUTE IMMEDIATE sqlstr;
            sqlstr := 'update doc_ref_type t set DOC_REF_TYPE_DESC = (
                    select DOC_REF_TYPE_DESC from tmp_PROARC_DOC_REF_TYPE s
                    where t.doc_ref_type = s.doc_ref_type)
                    where exists (select 1 from tmp_PROARC_DOC_REF_TYPE s where t.doc_ref_type = s.doc_ref_type)';
         EXECUTE IMMEDIATE sqlstr;
        EXCEPTION
          WHEN OTHERS THEN
            null;
        END;
      end add_doc_types;
      procedure delete_doc_types IS
      sqlstr     VARCHAR2(2000);
       BEGIN
            sqlstr := 'delete from doc_ref_type t where exists (select 1 from PROARC_DOC_REF_TYPE_VW d where d.doc_ref_type = t.doc_ref_type)
            and not exists (select 1 from doc_ref d where d.doc_ref_type = t.doc_ref_type)
            and doc_ref_type not in (select doc_ref_type from eis_doc_ref_type)
            and doc_ref_type not in (select eis_doc_ref_type from eis_doc_ref_type)';
          EXECUTE IMMEDIATE sqlstr;
         EXCEPTION
           WHEN OTHERS THEN
             null;
      end delete_doc_types;Edited by: Reon on Jun 16, 2011 2:01 AM

  • Link errors on HP Itanium and Oracle 9.0.1.0.1 Developers Release

    We have pulled down the Oracle Developers release for HP-UX 11.22 and were not able to compile the Oracle code
    because of a link error. We are getting the following errors in the make.log file:
    (Bundled) cc: error 1913: `16M' does not exist or cannot be read
    (Bundled) cc: error 1913: `L' does not exist or cannot be read
    (Bundled) cc: error 1913: `1M' does not exist or cannot be read
    (Bundled) cc: error 1913: `1M' does not exist or cannot be read
    *** Error exit code 1
    Stop.
    Has anyone run into this issue and how was it resolved?
    Thanks,
    Walter

    Alex,
    does a
    select xmlelement("SQLX", 'Hello ,World!') from dual; work?
    SQL> select xmlelement("SQLX", 'Hello World!') from dual;
    XMLELEMENT("SQLX",'HELLOWORLD!')
    <SQLX>Hello World!</SQLX>
    It works for me in 9.2
    SQL> select xmlelement("orderid", order_num) from orders;
    XMLELEMENT("ORDERID",ORDER_NUM)
    <orderid>1</orderid>
    <orderid>2</orderid>
    <orderid>3</orderid>
    <orderid>1</orderid>
    <orderid>2</orderid>
    <orderid>3</orderid>
    6 rows selected.
    SQL>

  • Linker error: error LNK2001: unresolved external symbol __imp_printf

    On a newly installed compiler, Visual Studio 2013, I get some linker error:
    Sample program (for test):
    #include <stdio.h>
    int main ()
    printf("Help");
    return 0;
    I get some linker errors:
    Error 2 error LNK2001: unresolved external symbol __imp_printf F:\ug_info\indices\Project1\Project1\Source.obj Project1
    Error 1 error LNK2001: unresolved external symbol __security_check_cookie F:\ug_info\indices\Project1\Project1\Source.obj Project1
    Error 3 error LNK2001: unresolved external symbol mainCRTStartup F:\ug_info\indices\Project1\Project1\LINK Project1
    I thinks there is a configuration issue..
    Any suggestions?

    Hi Camiel.Rys,
    Thanks for posting in MSDN forum.
    Error 3 error LNK2001: unresolved external symbol mainCRTStartup F:\ug_info\indices\Project1\Project1\LINK Project1
    I would guess that you may create a wrong project template. Could you try to create a new Win32 Console project following this document?
    Walkthrough: Creating a Win32 Console Program (C++)
    Best regards,
    Shu Hu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Linker error while packaging iOS app with my ANE

    While trying to write a iOS Native Extension for ZXingObjC (https://github.com/TheLevelUp/ZXingObjC), the following link error shows up when exporting in Flash Builder 4.x:
    Error occurred while packaging the application:
    Undefined symbols for architecture armv7:
      "___divmodsi4", referenced from:
          +[ZXEncoder numDataBytesAndNumECBytesForBlockID:numDataBytes:numRSBlocks:blockID:numDataBytesInBlock: numECBytesInBlock:error:] in libcom.google.zxing.ZXingNativeExtension.a(ZXEncoder.o)
          +[ZXAztecEncoder encode:len:minECCPercent:] in libcom.google.zxing.ZXingNativeExtension.a(ZXAztecEncoder.o)
          +[ZXAztecEncoder generateCheckWords:totalSymbolBits:wordSize:] in libcom.google.zxing.ZXingNativeExtension.a(ZXAztecEncoder.o)
    ld: symbol(s) not found for architecture armv7
    Compilation failed while executing : ld64
    This happens in Flash Builder 4.6 or 4.7 using AIR SDK 3.7
    This isn't my first Native Extension for iOS. No amount of fiddling around with adding frameworks or libraries in Xcode to the static library works.
    Looking for guidance on what to try next to resolve this linker error...

    I am also receiving an error related to ___divmodsi4 (using different libraries which use that symbol) which appears to be a compiler level math function. It should be packaged automatically but apparently AIR isn't doing it.  No idea what additional library should be linked, attempts to link the 3rd party libraries (and/or packagedDepenency them) failed.
    Undefined symbols for architecture armv7:
      "___divmodsi4", referenced from: (methods in a third party library)
    My Platform.xml is as such:
    <platform xmlns="http://ns.adobe.com/air/extension/3.7">
        <sdkVersion>6.0</sdkVersion>
        <linkerOptions>
        <option>-ObjC</option>   
        <option>-weak_framework Accounts</option>
        <option>-framework AddressBook</option>
        <option>-framework AddressBookUI</option>
        <option>-weak_framework AdSupport</option>
        <option>-framework CoreAudio</option>
        <option>-framework CoreLocation</option>
        <option>-framework CoreMotion</option>
        <option>-framework CoreTelephony</option>
        <option>-framework EventKit</option>
        <option>-framework EventKitUI</option>
        <option>-framework iAd</option>
        <option>-framework MapKit</option>
        <option>-framework MediaPlayer</option>
        <option>-framework MessageUI</option>
        <option>-framework OpenAL</option>
        <option>-weak_framework PassKit</option>
        <option>-framework StoreKit</option>
        <option>-weak_framework Twitter</option>
        <option>-framework UIKit</option>
        <option>-lsqlite3</option>
        <option>-lxml2</option>
        <option>-lz</option>
        </linkerOptions>
    </platform>
    If the author or anyone manages a solution, please post it in this thread!

Maybe you are looking for

  • I've owned my iPad for 5 months, I want to return it.

    I bought my iPad in late June, and every since I've owned it it has caused me nothing but trouble. Back when I first bought it I owned an old Pentium 4 equipped computer that ran Windows XP, so when I called customer support they would always tell me

  • Report  in table form

    Hi, I want to make report as follows: The report is to include all stores to be separated into two tables: 1. Corporate sponsored stores and Non-corporate stores (all other stores that are not linked to a corporate codes ). following corporate codes

  • Oracle financials upgradation

    What are the upgradation features between versions 10.7 to 11.0 ,11.0 to 11i oracle financials, oracle manufacturing modules.

  • Change JDK midway? New ECC 6.0 install

    Hi While installing ECC 6.0 am running into problems at step 52 of 112, "start java engine" The ABAP stack install is complete and I can login. Can I play with changing the JDK version midway? Thanks Hari

  • How do I customize my desktop pictures?

    I'd like to rotate through different desktop pictures - and love some of the pictures provided. But I'd like to select which ones I want, and maybe add some. How can I do that?