Compiling errors with modified SALOME module PKGBUILDS from AUR

Good day,
I am in the process of installing SALOME (6.4.0), a pre- and post-processor for differential equation solvers (FEM in my case).
The source code is distributed as a single tar.gz file and inside one finds source directories for the various modules used.
In AUR is available a set of old, outdated modules of SALOME 5.1.4 (here)
So far, I have successfully compiled and installed the salome-kernel package by modifying the PKGBUILD to find the source locally on my computer. Apart from changing some version variables, all I needed to change was to add
PYTHON=/usr/bin/python2
to ./configure, since it looks for /usr/bin/python by default and this causes issues (I'm not sure why python2 and python3 exists, actually).
I then proceeded to salome-med. I managed all of its non-salome dependencies and am now stuck on salome-gui which is also a dependency. I followed the same procedure, this time specifying both python and opencascade paths. ./configure seems to finish with no problems (a summary is shown and all deps are present) and after a bit of compiling it stops with the following errors:
Plot2d.h:49:11: error: field 'text' has incomplete type
Plot2d.h:51:78: error: invalid use of incomplete type 'struct QString'
/usr/include/QtCore/qglobal.h:1525:7: error: forward declaration of 'struct QString'
Plot2d.h:88:73: error: default argument for 'const QColor& <anonymous>' has type 'Qt::GlobalColor'
Plot2d.h:91:73: error: default argument for 'const QColor& <anonymous>' has type 'Qt::GlobalColor'
Plot2d.h:94:73: error: default argument for 'const QColor& <anonymous>' has type 'Qt::GlobalColor'
Plot2d.h:97:73: error: default argument for 'const QColor& <anonymous>' has type 'Qt::GlobalColor'
Plot2d.h:101:66: error: default argument for 'const QColor& <anonymous>' has type 'Qt::GlobalColor'
Plot2d.h:104:66: error: default argument for 'const QColor& <anonymous>' has type 'Qt::GlobalColor'
Plot2d.h:107:66: error: default argument for 'const QColor& <anonymous>' has type 'Qt::GlobalColor'
Plot2d.h:110:66: error: default argument for 'const QColor& <anonymous>' has type 'Qt::GlobalColor'
Plot2d.h:112:3: error: 'QPixmap' does not name a type
Plot2d.h:115:3: error: 'QPixmap' does not name a type
Plot2d.cxx: In constructor 'Plot2d_Point:lot2d_Point(double, double, const QString&':
Plot2d.cxx:50:27: error: class 'Plot2d_Point' does not have any field named 'text'
Plot2d.cxx: At global scope:
Plot2d.cxx:388:92: error: 'QPixmap Plot2d::markerIcon(const QSize&, const QColor&, Plot2d::MarkerType)' should have been declared inside 'Plot2d'
Plot2d.cxx:406:90: error: 'QPixmap Plot2d::lineIcon(const QSize&, const QColor&, Plot2d::LineType)' should have been declared inside 'Plot2d'
Plot2d.cxx: In function 'bool Plot2d::existMarker(int, const QwtPlot*, QwtSymbol::Style, const QColor&, Qt:enStyle)':
Plot2d.cxx:461:44: error: request for member 'style' in 'crv->QwtPlotCurve::symbol()', which is of non-class type 'const QwtSymbol*'
make[2]: *** [libPlot2d_la-Plot2d.lo] Error 1
make[2]: Leaving directory `/home/stefan/builds/salome-med/salome-med/DEPMAKER_DEPS/salome-gui/src/GUI_SRC_6.4.0/src/Plot2d'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/stefan/builds/salome-med/salome-med/DEPMAKER_DEPS/salome-gui/src/GUI_SRC_6.4.0/src'
make: *** [all-recursive] Error 1
I'm not sure what most of this means, since I know basically nothing about Qt (which seems to be the problem). I've read somewhere of someone having had problems with previous versions of salome using qwt 4 commands while the affected user had qwt 5, which made me suspect that maybe some Qt syntax changed since salome 6.4 was released. The documentation says that it was tested with Qt 4.6 and qwt 5.1. I have:
Qt = 4.8
pyqt = 4.9
qwt = 6.01
I attempted to look at some of the lines in the problem files but due to my lack of knowledge couldn't figure out anything. I do not suspect anyone here knows everything about SALOME but maybe someone who knows about Qt and the likes recognises what's wrong. The files showing errors are here:
http://docs.salome-platform.org/salome_ … 2d_8h.html
http://docs.salome-platform.org/salome_ … ource.html
http://docs.salome-platform.org/salome_ … _8cxx.html
http://docs.salome-platform.org/salome_ … files.html
I'm using a 32bit processor, if it's relevant.
I'll gladly and quickly supply any extra info.
Thank you in anticipation,
A.L.
Last edited by ArseneLupin (2012-02-15 22:05:51)

If the main app uses RSLs, the modules should not.  Use -static-rsls and
extern the RSL classes.

Similar Messages

  • Compilation errors with JDeveloper 10.1.2.2.0

    Hello,
    I want to change my environment work. First I worked with Eclipse (Europa, jre 1.6), I have no error with my following code source :
    private List<String> lString;
    and now I have a compilation error with the same code
    ' Error(43,14): <identifier> expected '
    I think it's a compiler version problem but I'm not sure and I don't know how to change the compiler version.
    If someone have any idea, I will be happy to receive response.
    Thanks

    JDeveloper 10.1.2.2.0 doesn't support neither JDK 1.6 nor JDK 1.5.
    --olaf                                                                                                                                                                                       

  • Connection error with AAD PowerShell module 8362.1 from 2015-01-19

    After installing the Azure AD Module for PowerShell version 8362.1 released January 19, 2015, I get the following two errors when connecting to the service:
    connect-msolservice : The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error.
    At line:1 char:1
    + connect-msolservice -credential $msolcred
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : OperationStopped: (:) [Connect-MsolService], CommunicationException
        + FullyQualifiedErrorId : System.ServiceModel.CommunicationException,Microsoft.Online.Administration.Automation.ConnectMsolService
    connect-msolservice : Exception of type 'Microsoft.Online.Administration.Automation.MicrosoftOnlineException' was thrown.
    At line:1 char:1
    + connect-msolservice -credential $msolcred
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : OperationStopped: (:) [Connect-MsolService], MicrosoftOnlineException
        + FullyQualifiedErrorId : Microsoft.Online.Administration.Automation.MicrosoftOnlineException,Microsoft.Online.Administration. Automation.ConnectMsolService
    I tried this with with an Office 365 Education tenant and an Office 365 Small Business tenant with the same result. From the release notes it appears some MFA-related changes were made. The Education tenant uses federated authentication, but MFA is not enabled
    in either tenant I tested with.
    Uninstalling the new version and installing the previous version (8262.2 released 2014-12-11) works fine.
    Dave Beauvais

    I fixed this issue by installing the previous Azure AD PowerShell Module version to 8262.2. Follow this thread:
    http://social.technet.microsoft.com/wiki/contents/articles/28552.microsoft-azure-active-directory-powershell-module-version-release-history.aspx
    Use the (get-item [...]) command to see your version. I was at 8362.1, went to uninstall it from Add/Remove Programs (the PowerShell Azure Module), then installed the 64bit version from the link above. Afterwards, the connect-msolservice worked with my Global
    AAD O365 account.
    I used the latest Azure AD Connect preview/beta version described here:
    http://blogs.technet.com/b/ad/archive/2014/08/04/connecting-ad-and-azure-ad-only-4-clicks-with-azure-ad-connect.aspx. This version installed the latest, incompatible it seems, Azure AD PowerShell module while it installed all other dependencies on a Windows
    Server 2012 R2. The PowerShell version on this machine is 4.0, which came with the Server 2012 R2 OS version.
    But, on another machine running Windows Server 2012 and running PowerShell version 3.0, the same tool installed the previous, 8262.2 Azure AD PowerShell Module, which worked. I got lucky with this difference to notice the different versions. Strange.
    Also, the original link from where I downloaded the Azure AD Connect beta tool here
    https://connect.microsoft.com/site1164/program8612 doesn't seem to work right now - I get a strange web server standard type error page not formatted properly that says "The system has
    encountered an unexpected error [...] etc."
    Hope this helps.
    Radu
    Radu P.

  • Compiler bug in 10.1.3 EA1?  get "Internal compilation error" with EnumSet

    The code sample below generates "Error: Internal compilation error, terminated with a fatal exception" when doing make. It's a very simple example, it creates an EnumSet with one element and dumps it via the "toString()" method.
    If I change the line:
    "EnumSet set = EnumSet.of(Buttons.ONE);"
    To:
    "EnumSet set = EnumSet.allOf(c);"
    It works fine. For some reason the "of" method of "EnumSet" crashes the compiler.
    Any ideas?
    ========================================
    package mypackage;
    import java.util.EnumSet;
    public class EnumDemo
    enum Buttons { ONE, TWO, THREE }
    public EnumDemo()
    public void dump()
              Class c = Buttons.class;
              EnumSet set = EnumSet.of(Buttons.ONE);
              System.out.println(set.toString());
    public static void main(String[] args)
    EnumDemo cls = new EnumDemo();
    cls.dump();
    ==============================

    package com.esp.main;
    import java.awt.Dimension;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import javax.swing.JTree;
    import javax.swing.event.TreeModelEvent;
    import javax.swing.event.TreeModelListener;
    import javax.swing.event.TreeSelectionEvent;
    import javax.swing.event.TreeSelectionListener;
    import javax.swing.tree.DefaultTreeModel;
    import javax.swing.tree.TreePath;
    public class TreeNavigator extends JTree {
    private FormMain fm;
    public TreeNavigatorNode selectedTreeNode;
    public TreePath selectedTreePath;
    public JTree thisTree;
    public TreeNavigator(FormMain pFM) {
    fm = pFM;
    thisTree = this;
    addTreeSelectionListener(new TreeSelectionListener() {
    public void valueChanged(TreeSelectionEvent e) {
    selectedTreeNode = (TreeNavigatorNode)thisTree.getLastSelectedPathComponent();
    if (selectedTreeNode == null) {
    return;
    selectedTreePath = e.getPath();
    addMouseListener(new MouseAdapter() {
    public void mouseReleased(MouseEvent e) {
    if (e.getClickCount() == 1) {
    doPopup(e.getX(), e.getY());
    String nodeInternalFrameClassName = selectedTreeNode.getInternalFrameClassName();
    String nodeNodeTypeDesc = selectedTreeNode.getNodeTypeDesc();
    if ((selectedTreeNode != null) && (nodeNodeTypeDesc.equals("FORM") || nodeNodeTypeDesc.equals("GRAPH"))) {
    fm.showInternalFrame(nodeInternalFrameClassName, fm, null);
    } else if (e.getClickCount() == 1) {
    TreePath path = thisTree.getClosestPathForLocation(e.getX(), e.getY());
    thisTree.setSelectionPath(path);
    public void doPopup(int x, int y) {
    if ((selectedTreeNode != null) && selectedTreeNode.nodeTypeDesc.equals("MODULE")) {
    fm.cm.sendString("Do Nothing");
    } else {
    fm.cm.sendString("Launch form");
    setEditable(false);
    setMaximumSize(new java.awt.Dimension(3200, 3200));
    setPreferredSize(new java.awt.Dimension(800, 100));
    setShowsRootHandles(false);
    setLargeModel(false);
    setRootVisible(false);
    setDragEnabled(false);
    DefaultTreeModel treeNavigatorModel = new DefaultTreeModel(fm.treeNavigatorNodeArray[fm.rootNode], true);
    treeModel.addTreeModelListener(new NavigatorTreeModelListener());
    setModel(treeNavigatorModel);
    expandAll(this);
    try {
    jbInit();
    } catch (Exception e) {
    e.printStackTrace();
    public void expandAll(JTree tree) {
    int row = 0;
    while (row < tree.getRowCount()) {
    tree.expandRow(row);
    row++;
    private void jbInit() throws Exception {
    this.setSize(new Dimension(286, 383));
    TreeNavigatorCellRenderer renderer = new TreeNavigatorCellRenderer(fm);
    this.setCellRenderer(renderer);
    class NavigatorTreeModelListener implements TreeModelListener {
    public void treeNodesChanged(TreeModelEvent e) {
    TreeNavigatorNode node;
    node = (TreeNavigatorNode)(e.getTreePath().getLastPathComponent());
    * If the event lists children, then the changed
    * node is the child of the node we've already
    * gotten. Otherwise, the changed node and the
    * specified node are the same.
    try {
    int index = e.getChildIndices()[0];
    node = (TreeNavigatorNode)(node.getChildAt(index));
    } catch (NullPointerException exc) {
    public void treeNodesInserted(TreeModelEvent e) {
    public void treeNodesRemoved(TreeModelEvent e) {
    public void treeStructureChanged(TreeModelEvent e) {
    }

  • Compilation error with (amp) restriction specifier in C++ AMP

    Hi,
    [double post from :
    original post ]
    I'm using C++ AMP (I'm not that experienced with C++ and I'm new to AMP, so I have to stumble through this stuff) But I thought I had this code working, but now I'm getting the following error:
    Error    1    error C3930: 'WRC_Raytracer::RaytracerRTC::RenderSceneWithAMP::<lambda_c13eb21eb34534d03d408733745bcf16>::operator ()' : no overloaded function has restriction specifiers that are compatible with the ambient
    context 'Concurrency::_Parallel_for_impl'
    Here is my parallel loop (cut down slightly to focus on the issue):
    [code]
        parallel_for(0, 720 * 576, 1, [w, cBuffer, pixelDataView](int i) restrict(amp)
                    // compute x and y for the given index
                    float x = (float)(i % w);
                    float y = (float)(i / w);
                    // convert color from {0,1}f to {0,255}b
                    int bInt, gInt, rInt;
                    bInt = (int) (min(x/719.f, 1) * 255);
                    gInt = (int) (min(y/575.f, 1) * 255);
                    rInt = (int) (min(0, 1) * 255);
                    // represent color data as (int)argb
                    int pixelAsInt = (255 << 24) + (rInt << 16) + (gInt << 8) + bInt;
                    // update pixelData element
                    pixelDataView[i] = pixelAsInt;
    [/code]              
    Can anyone see what's wrong here ? As I said, I'm sure this was working yesterday, and I did something just before shutting down, and now it's not working.
    Edit : I tried the parallel_for_each loop that I had started with. And that actually does work ...
    parallel_for_each(pixelDataView.extent,[=](index<1> idx) restrict(amp)

    Hello Gavin, thank you for your question.
    Note that parallel_for_each (more precisely, the overloads that accept extent arguments and take a restrict(amp) functional parameter) is the unique entry-point for C++ AMP execution. Other functions in the concurrency namespace, such as parallel_for,
    are unrelated, and stem from a different technology (PPL). Since restrict(amp) is specific to C++ AMP, trying to use a restrict(amp) functional object in any context but that of C++ AMP execution, is not possible - hence the compiler error
    you were seeing. Hopefully this turns out helpful for you. Also, congratulations for picking up C++ AMP, I hope you like it! Cheers!

  • Compile error with Jdev 10g Preview

    I am trying out Jdev 10g with JHeadstart. I followed the instruction on the Oracle JHeadstart 10g and Oracle JDeveloper 10g preview document, and then used the isnstructions on the NewJhsProjectInstructions.html document.
    The first time I tried to compile the project, I got a whole list of errors which looked like;
    /usr/oracle/jhs904/jheadstart/src/jhsruntime_source.zip!/oracle/jheadstart/model/bc4j/JhsApplicationModuleImpl.java
    Error(143,31): cannot access class oracle.cle.persistence.HandlerNotFoundException; file oracle/cle/persistence/HandlerNotFoundException.class not
    This was due to Jdeveloper trying to compile jhsruntime_source.zip. I removed this from the java source path and added jhsruntime.jar.
    I am now getting thisError(22,53): cannot access class oracle.jheadstart.model.bc4j.handler.DataObjectHandlerImpl; file oracle/jheadstart/model/bc4j/handler/DataObjectHandlerImpl.class not found error;
    I have checked, and cinfirmed that the class file oracle/jheadstart/model/bc4j/handler/DataObjectHandlerImpl.class is in jhsruntime.jar.
    The Java Source path in Jdeveloper is ;
    /home/chandana/jdevhome/mywork/JHS/src;/usr/oracle/jhs904/jheadstart/lib/jhsruntime.jar.
    Can some one tell me what is wrong ?

    Hi Chandana,
    You should not put jhsruntime.jar in the Java Source Path. It should be in the Additional Classpath.
    The Java Source Path (Project Settings - Common - Input Paths) should only contain /home/chandana/jdevhome/mywork/JHS/src .
    If you created the library JhsLibs the way it was described in the JDev 10g document, your project should now compile correctly. The JhsLibs library ensures that your project can compile against jhsruntime.jar (amongst others).
    Hope this helps,
    Sandra Muller
    JHeadstart Team

  • Compiler Error with simple vi using MatLab script nodes

    While attempting to build a simple vi to test the capabilities of LabView's interface with MatLab, I received a compiler error message that said I should report the problem to National Instruments Tech Support. The error said, "reference to undefined label from: refPC=0x41C." I've attached the vi that created the error. I am using LabView 7.0 on a PC running Windows 98.
    Attachments:
    Compliererror.vi ‏11 KB

    I don't know if this will help your problem, but there is a fix for some problems with LabVIEW 7.0 and Matlab:
    http://digital.ni.com/public.nsf/websearch/4475BC3CEB062C9586256D750058F14B?OpenDocument
    Good luck,
    -Jim

  • Compilation Error on Launch.aspx after Update from SP2 to SP4

    Hi experts,
    I have installed BPC 5.1 SP 2, SP 3 and also SP 4 on a Testmachine and
    do not have problems with it. On the productive machine at the customer
    HTTPS was not working with SP3 after upgrading, with SP2 HF1 it worked
    fine. (We reinstalled the software until SP2 HF1)
    Now we needed SP4 for a serious Reporting problem and I installed SP4 on
    the system. Now an compilation Error displays after launching the start-page.
    Server Error in /OSoft Application
    Compiler Error Message: BC30456 CodePage is not a member of ASP.launch_aspx
    Source File D:\BPC\WebSrvr\Web\launch.aspx
    Thanks for any help.
    Regards,
    Ralf Issmer

    Hello,
    Unfortunately we had no changes on the web at all. Only one change was neccessary in the Web.config, we need to add culture="en-US" so that the admin components could work correctly. There are also no other applications on this server. I also had a look at the log-File  OSoftSP1Install.log. SP1 in the file name was confusing me actually, but the date and time within the file was from monday afternoon, when I installed the SP4.
    Thank you,
    Ralf Issmer

  • BUG: 10.1.3..36.73 Internal Compile Error with enhanced for loop/generics

    I get the following compiler error when using the Java 5 SE enhanced for loop with a generic collection.
    Code:
    public static void main(String[] args)
    List<Integer> l = new ArrayList<Integer>();
    l.add(new Integer(1));
    printCollection(l);
    private static void printCollection(Collection<?> c)
    for (Object e : c)
    System.out.println(e);
    Error on attempting to build:
    "Error: Internal compilation error, terminated with a fatal exception"
    And the following from ojcInternalError.log:
    java.lang.NullPointerException
         at oracle.ojc.compiler.EnhancedForStatement.resolveAndCheck(Statement.java:2204)
         at oracle.ojc.compiler.StatementList.resolveAndCheck(Statement.java:4476)
         at oracle.ojc.compiler.MethodSymbol.resolveMethod(Symbol.java:10822)
         at oracle.ojc.compiler.RawClassSymbol.resolveMethodBodies(Symbol.java:6648)
         at oracle.ojc.compiler.Parser.resolveMethodBodies(Parser.java:8316)
         at oracle.ojc.compiler.Parser.parse(Parser.java:7823)
         at oracle.ojc.compiler.Compiler.main_internal(Compiler.java:978)
         at oracle.ojc.compiler.Compiler.main(Compiler.java:745)
         at oracle.jdeveloper.compiler.Ojc.translate(Ojc.java:1486)
         at oracle.jdeveloper.compiler.UnifiedBuildSystem$CompileThread.buildGraph(UnifiedBuildSystem.java:300)
         at oracle.jdeveloper.compiler.UnifiedBuildSystem$CompileThread.buildProjectFiles(UnifiedBuildSystem.java:515)
         at oracle.jdeveloper.compiler.UnifiedBuildSystem$CompileThread.buildAll(UnifiedBuildSystem.java:715)
         at oracle.jdeveloper.compiler.UnifiedBuildSystem$CompileThread.run(UnifiedBuildSystem.java:893)

    Install the Service Update 1 patch for JDeveloper (using the help->check for updates), and let us know if this didn't solve the problem.

  • Compilation error with RWTValDlist T find() method

    This code used to compile fine with SC 4.x C++ compiler. We are migrating to "Sun WorkShop 6 update 2 C++ 5.3 2001/05/15" and it is now generating the following compilation error:
    ===============================
    cd generic/src; make -f generic.mk
    /opt/SUNWspro/bin/CC -c -PIC -compat -library=rwtools7 -O2 -I. -I. -I../include -I/home/jm/sunos5.8/ib_service_3.4.3/include -I/opt/local/megen/include -I/opt/SUNWspro/WS6U2/include/CC -I../../interface/include -I../include -I. -I/home/jm/sunos5.8/acell_4.1/include -I/opt/local/access/home/include -I/home/jm/sunos5.8/acell_4.1/include/packetcpp -I/home/jm/sunos5.8/acell_4.1/include/ecl -I/home/jm/sunos5.8/acell_4.1/include/gels -I/home/jm/sunos5.8/acell_4.1/src/security/include -I/home/jm/sunos5.8/acell_4.1/include/sequencer -I/home/jm/sunos5.8/acell_4.1/include/gen -I/home/jm/sunos5.8/acell_4.1/include/recipeMgr -I/home/jm/sunos5.8/acell_4.1/include/EFEFeature -I/home/jm/sunos5.8/ib_service_3.4.3/include -I/opt/local/megen/include -I/opt/local/rv/include -I/opt/local/etk/include -I/opt/local/etk/include/tdl -DTCPIP=1 -D__SYSVR4 -DSHOP=1 -D_SOLARIS=1 -I/opt/local/std_comp/include ACEAlarmClock.C
    "ACEAlarmClock.C", line 479: Error: Could not find a match for RWTValDlist<ACEObject*>::find(int(const ACEObject*&,void*), void**, ACEObject*).
    1 Error(s) detected.
    *** Error code 1
    make: Fatal error: Command failed for target `ACEAlarmClock.o'
    ===============================
    The header file in question is:
    #include <rw/tvdlist.h>
    class ACEAlarmClock : public ACEObject
    // The public interface.
    public:
    ACEAlarmClock();
    // Default constructor.
    private:
    static void alarmCallback(void *passAheadRef, ib_alarmid alarmId);
    static RWTValDlist<ACEObject *> AlarmClocks;
    and the source file in question is:
    void
    ACEAlarmClock::alarmCallback(void *passAheadRef, ib_alarmid alarmId)
    ACEObject *object = 0;                        // returned by find()
    if (AlarmClocks.find(findAlarmId, &alarmId, object))
    ACEAlarmClock alarmClock = (ACEAlarmClock )object;
    if (alarmClock)
    AlarmClocks.remove(alarmClock);
    alarmClock->isActive_ = FALSE;
    alarmClock->onAlarm(passAheadRef, alarmId);
    return;
    Any help is highly appreciated. Thanks.
    Cesar Saavedra
    [email protected]

    The C++ Migration Guide that comes with the compiler explains in detail everything you to need to know about migrating from C++ 4.2 to C++ 5.3.
    Use the "-compat" option on every CC command, compiling and linking. Any code that worked with C++ 4.2 will work the same way with C++ 5.3 in compat mode.
    -compat=4 sets language and binary compatibility to that of the 4.x compilers. -compat=5 sets language and binary compatibility to ANSI/ISO standard mode. If the -compat option is not specified, -compat=5 is assumed.
    - Rose

  • Compiler errors with most recent update

    I just ran the SoftwareUpdate utility and it installed QuickTime 7.1 and Apple Security Update 2006-003. Now when I compile, I get the following errors:
    ld: Undefined symbols:
    _LLCStyleInfoCheckForOpenTypeTables referenced from QuartzCore expected to be defined in ApplicationServices
    _LLCStyleInfoGetUserRunFeatures referenced from QuartzCore expected to be defined in ApplicationServices
    This error used to be "[blahblahblah] referenced from Quicktime epected to be defined in ApplicationServices" not QuartzCore. I looked at /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore and sure enough, it has a modifcation date of today.
    The previous error was caused what appears to be QuickTime 7.0.4 being developed/compiled on Tiger and then distributed to Panther users like myself via Software Update.
    I can't figure out whether the QuickTime update or the Security Update changed my QuartzCore, but I'm having trouble figuring out a solution to this problem.
    Find a copy of the old QuartzCore framework? Figure out some way to add a dummy library that will define these symbols? Make sure Apple developers compile stuff on Panther when delivering code for Panther? I had to downgrade from Quicktime 7.0.4 to 7.0.1 to compile, which broke my iTunes 6.0.4. Now that won't even help, because the Quicktime 7.0.1 downgrade package doesn't contain QuartzCore.

    I can't compile anymore after the recent update on PowerMac G5 1.8GHz.
    It still works on iBook G4 1GHz.
    Both running Mac Os X 10.4.6
    Here is an example of config.log from a failed configuration.
    $ ./configure --prefix=/opt/local --infodir=${prefix}/share/info
    ## Platform. ##
    hostname = orca.local
    uname -m = Power Macintosh
    uname -r = 8.6.0
    uname -s = Darwin
    uname -v = Darwin Kernel Version 8.6.0: Tue Mar 7 16:58:48 PST 2006; root:xnu-792.6.70.obj~1/RELEASE_PPC
    /usr/bin/uname -p = powerpc
    /bin/uname -X = unknown
    /bin/arch = unknown
    /usr/bin/arch -k = unknown
    /usr/convex/getsysinfo = unknown
    hostinfo = Mach kernel version:
    Darwin Kernel Version 8.6.0: Tue Mar 7 16:58:48 PST 2006; root:xnu-792.6.70.obj~1/RELEASE_PPC
    Kernel configured for a single processor only.
    1 processor is physically available.
    Processor type: ppc970 (PowerPC 970)
    Processor active: 0
    Primary memory available: 1.25 gigabytes
    Default processor set: 68 tasks, 263 threads, 1 processors
    Load average: 2.71, Mach factor: 0.24
    /bin/machine = unknown
    /usr/bin/oslevel = unknown
    /bin/universe = unknown
    PATH: /opt/local/bin
    PATH: /opt/local/sbin
    PATH: /bin
    PATH: /sbin
    PATH: /usr/bin
    PATH: /usr/sbin
    PATH: /usr/X11R6/bin
    ## Core tests. ##
    configure:1658: checking build system type
    configure:1676: result: powerpc-apple-darwin8.6.0
    configure:1684: checking host system type
    configure:1698: result: powerpc-apple-darwin8.6.0
    configure:1721: checking for a BSD-compatible install
    configure:1776: result: /opt/local/bin/ginstall -c
    configure:1787: checking whether build environment is sane
    configure:1830: result: yes
    configure:1887: checking for gawk
    configure:1903: found /opt/local/bin/gawk
    configure:1913: result: gawk
    configure:1923: checking whether make sets $(MAKE)
    configure:1943: result: yes
    configure:2109: checking whether to enable maintainer-specific portions of Makefiles
    configure:2118: result: no
    User:
    ABI=
    CC=
    CFLAGS=(unset)
    CPPFLAGS=(unset)
    MPN_PATH=
    GMP:
    abilist=32
    cclist=gcc cc
    configure:3776: gcc 2>&1 | grep xlc >/dev/null
    configure:3779: $? = 1
    configure:3833: checking compiler gcc -O2 -mpowerpc
    Test compile:
    configure:3847: gcc -O2 -mpowerpc conftest.c >&5
    cc1: internal compiler error: Bus error
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <URL:<a class="jive-link-external-small" href="http://">http://developer.apple.com/bugreporter> for instructions.
    configure:3850: $? = 1
    failed program was:
    int main () { return 0; }
    configure:4856: result: no
    configure:3754: cc -c conftest.c >&5
    cc1: internal compiler error: Bus error
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <URL:<a class="jive-link-external-small" href="http://">http://developer.apple.com/bugreporter> for instructions.
    configure:3757: $? = 1
    configure:3776: cc 2>&1 | grep xlc >/dev/null
    configure:3779: $? = 1
    configure:3833: checking compiler cc -O2
    Test compile:
    configure:3847: cc -O2 conftest.c >&5
    cc1: internal compiler error: Bus error
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <URL:<a class="jive-link-external-small" href="http://">http://developer.apple.com/bugreporter> for instructions.
    configure:3850: $? = 1
    failed program was:
    int main () { return 0; }
    configure:4856: result: no
    configure:5094: error: could not find a working compiler, see config.log for details
    PowerMac G5 1.8GHz (single processor)   Mac OS X (10.4.6)   1.2GB RAM

  • Compilation errors with store procedure

    Hi guys, I just started SQL so forgive me if I ask any real stupid questions. This is the problem I have right now as said in my title.
    This is my procedure.sql
    CREATE OR REPLACE PROCEDURE verify IS
    no_of_duplicates NUMBER:=0;
    BEGIN
    SELECT COUNT(*) INTO no_of_duplicates
    FROM EMPLOYEE
    WHERE E# =
    (sELECT E# FROM DRIVER
    WHERE EXISTS
    (SELECT E# FROM MECHANIC
    WHERE DRIVER.L# = MECHANIC.L#));
    IF no_of_duplicates:=0 THEN dbms_output.put_line('OK');
    ELSE
    SELECT E#,NAME FROM EMPLOYEE
    WHERE E# =
    (SELECT E# FROM DRIVER
    WHERE EXISTS
    (SELECT E# FROM MECHANIC
    WHERE DRIVER.L# = MECHANIC.L#));
    END IF;
    END verify;
    While trying to create the procedure, it gives me the compilation errors. I have been stuck with this for hours and can't seem to find anything wrong with it. Can anyone point me in the right direction? Thanks!

    Hi,
    Once again, post your code.  The error occurs when you call the procedure, but you haven't posted the code that calls the procedure and causes the error.
    When I do this in SQL*Plus:
    SET  SERVEROUTPUT  ON  FORMAT WRAPPED
    EXEC  verify;
    The procedure you posted runs perfectly (that is, is displays the e# only, exactly as it was designed to do).
    One way to display both the e# and the name is to BULK COLLECT both the e# and name into separate collections, like this:
    CREATE OR REPLACE PROCEDURE verify IS 
        TYPE  e#_table  IS TABLE OF employee.e#%TYPE;
        e#_list    e#_table;
        TYPE  name_table  IS TABLE OF employee.name%TYPE;
        name_list  name_table;
    BEGIN 
        SELECT            e#,       name
        BULK COLLECT INTO e#_list,  name_list
        FROM              employee 
        WHERE   e# IN (
                          SELECT  d.e#
                          FROM    driver    d
                          JOIN    mechanic  m  ON  d.e#  = m.e# 
        IF  e#_list.COUNT  = 0
        THEN
            dbms_output.put_line ('OK, there are no illict duplications');
        ELSE     -- that is, e#_list.COUNT <> 0
            dbms_output.put_line ('The following employees are both drivers and mechanics:');
            FOR j IN 1..e#_list.COUNT LOOP    -- i in parentheses sometimes displays wrong on the OTN site
                dbms_output.put      ( TO_CHAR ( e#_list (j)
                                               , '999999999999'
                dbms_output.put      ('   ');
                dbms_output.put_line (name_list (j)); 
            END LOOP; 
        END IF; 
    END verify; 
    SHOW ERRORS
    Here's the output I get when I run the procedure above with your sample data:
    The following employees are both drivers and mechanics:
                1   John Smith
    You'll notice I made several other changes in your code, sometimes because they are clearly better practices, and sometimes just to show you different ways to do the same thing, which you may or may not want to use in this problem.
    For example, you were doing the same query (with only very slight differences) 2 times: once to get no_of_duplicates, and then a second time to get the actual data.  I don't know if that's the most efficient way to do what you need.  Say there are 1000 rows in the result set.  You'll fetch all 1000 once just to get the total number, (which you don't need, if all you care about at this point is if there are any), and then to get the data.  When you do a BULK COLLECT, you automatically get the COUNT anyway, so why not do the BULK COLLECT first, then use that COUNT to see what you have to do next.  If the COUNT is more than 0, then you've already got the data, and you don't need to fetch it again.  Also, repeating (essentially) the same code is a maintenance problem.  If you ever need to make a change, you need to make the same change in multiple places.  At best, that's a pain; but this is the exactly the kind of mistake that is easy to miss in in testing, and you might have code running for weeks in Production before you notice that sometimes it's giving the wrong results.
    Another example: e# is a NUMBER.  While it is possible to convert NUMBERs into VARCHAR2s, and then store those VARCHAR2s in a VARCHAR2 collecction, wouldn't it make more sense just to store them in a NUMBER collection?

  • Flex 4 - Error with DataGrid in Module

    Hey, I'm using Flex 4 final and am now getting the following error when loading a Module with a DataGrid inside:
    TypeError: Error #1009: Cannot access a property or method of a null object reference
        at mx.styles::StyleProtoChain$/initProtoChainForUIComponentStyleName()[E:\dev\4.0.0\framewor ks\projects\framework\src\mx\styles\StyleProtoChain.as:356]
    It is created via MXML:
    <mx:Module layout="absolute" xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx">
        <mx:DataGrid>
            ... config etc.
        </mx:DataGrid>
        ... other code
    </mx:Module>
    If I remove the DataGrid the Module works fine. The code used to work in the various betas.
    If I put a DataGrid in the main application that also renders fine, so it's only inside Modules.
    Thanks in advance for any help or ideas!

    Hi Darrell,
         I have the exact same error, and yes I am using module.factory.create() but I get an error when I try to add the module to my stage.  Here it is the code in my modReady function.
    var _sd:Object = new Object();         
    _sd = util.app.SDModule.factory.create() as SequenceDetail;
                _sd.sequenceId = event.currentTarget.selectedItem.sequenceId;
                _sd.environment = event.currentTarget.selectedItem.environment;
                _sd.seqname = event.currentTarget.selectedItem.sequenceName;
                util.app.page.addChildAt(_sd as SequenceDetail, util.app.page.numChildren);
                util.app.nav_buttons.selectedIndex = -1;
                util.app.page.selectedIndex = util.app.page.numChildren-1;
    I get an error on util.app.page.addChildAt(........).
    error is
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at mx.styles::StyleProtoChain$/initProtoChainForUIComponentStyleName()[E:\dev\4.0.0\framewor ks\projects\framework\src\mx\styles\StyleProtoChain.as:356]
        at mx.styles::StyleProtoChain$/initProtoChain()[E:\dev\4.0.0\frameworks\projects\framework\s rc\mx\styles\StyleProtoChain.as:171]
        at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::initProtoChain()[E:\dev\4.0.0\frameworks\proje cts\framework\src\mx\core\UIComponent.as:10186]
        at mx.core::UIComponent/regenerateStyleCache()[E:\dev\4.0.0\frameworks\projects\framework\sr c\mx\core\UIComponent.as:10249]
        at mx.core::Container/regenerateStyleCache()[E:\dev\4.0.0\frameworks\projects\framework\src\ mx\core\Container.as:3737]
        at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::addingChild()[E:\dev\4.0.0\frameworks\projects \framework\src\mx\core\UIComponent.as:7114]
        at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::rawChildren_addChild()[E:\dev\4.0.0\frameworks \projects\framework\src\mx\core\Container.as:4464]
        at mx.core::ContainerRawChildrenList/addChild()[E:\dev\4.0.0\frameworks\projects\framework\s rc\mx\core\ContainerRawChildrenList.as:143]
        at mx.containers::TabNavigator/createChildren()[E:\dev\4.0.0\frameworks\projects\framework\s rc\mx\containers\TabNavigator.as:559]
        at mx.core::UIComponent/initialize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\ UIComponent.as:7250]
        at mx.core::Container/initialize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Co ntainer.as:3129]
        at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.0.0\frameworks\projects\ framework\src\mx\core\UIComponent.as:7142]
        at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.0.0\frameworks\projects\ framework\src\mx\core\Container.as:3951]
        at mx.core::Container/addChildAt()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Co ntainer.as:2616]
        at mx.core::Container/addChild()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Cont ainer.as:2534]
        at mx.core::Container/createComponentFromDescriptor()[E:\dev\4.0.0\frameworks\projects\frame work\src\mx\core\Container.as:4371]
        at mx.core::Container/createComponentsFromDescriptors()[E:\dev\4.0.0\frameworks\projects\fra mework\src\mx\core\Container.as:4160]
        at mx.containers::Panel/createComponentsFromDescriptors()[E:\dev\4.0.0\frameworks\projects\f ramework\src\mx\containers\Panel.as:1685]
        at mx.core::Container/createChildren()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\cor e\Container.as:3187]
        at mx.containers::Panel/createChildren()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\c ontainers\Panel.as:1198]
        at mx.core::UIComponent/initialize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\ UIComponent.as:7250]
        at mx.core::Container/initialize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Co ntainer.as:3129]
        at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.0.0\frameworks\projects\ framework\src\mx\core\UIComponent.as:7142]
        at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.0.0\frameworks\projects\ framework\src\mx\core\Container.as:3951]
        at mx.core::Container/addChildAt()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Co ntainer.as:2616]
        at mx.core::Container/addChild()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Cont ainer.as:2534]
        at mx.core::Container/createComponentFromDescriptor()[E:\dev\4.0.0\frameworks\projects\frame work\src\mx\core\Container.as:4371]
        at mx.core::Container/createComponentsFromDescriptors()[E:\dev\4.0.0\frameworks\projects\fra mework\src\mx\core\Container.as:4160]
        at mx.core::Container/createChildren()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\cor e\Container.as:3187]
        at mx.core::UIComponent/initialize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\ UIComponent.as:7250]
        at mx.core::Container/initialize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Co ntainer.as:3129]
        at SequenceDetail/initialize()
        at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.0.0\frameworks\projects\ framework\src\mx\core\UIComponent.as:7142]
        at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.0.0\frameworks\projects\ framework\src\mx\core\Container.as:3951]
        at mx.core::Container/addChildAt()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Co ntainer.as:2616]
        at mx.containers::ViewStack/addChildAt()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\c ontainers\ViewStack.as:1426]
        at com::MyDBResult/displaySequenceDetail()[/Users/jbhavsar/Documents/workspace/virome/src/co m/MyDBResult.as:114]
        at <anonymous>()[/Users/jbhavsar/Documents/workspace/virome/src/com/MyDBResult.as:103]
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at ModuleInfoProxy/moduleEventHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\mo dules\ModuleManager.as:1168]
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at ModuleInfo/readyHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\modules\Modul eManager.as:812]
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at mx.core::FlexModuleFactory/update()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\cor e\FlexModuleFactory.as:433]
        at mx.core::FlexModuleFactory/docFrameHandler()[E:\dev\4.0.0\frameworks\projects\framework\s rc\mx\core\FlexModuleFactory.as:582]
        at mx.core::FlexModuleFactory/docFrameListener()[E:\dev\4.0.0\frameworks\projects\framework\ src\mx\core\FlexModuleFactory.as:126]
    Thanks
    Jay
    p.s: Please dont hammer me if my code isn't upto standard, I am learning this as I go along.

  • [ SOLVED ] Compile Error with Java Fonts & IntelliJ

    Hi All
    I have now got a new problem when i compile a flex project.  Yesterday inorder to get the IJ Interface font smoothing sorted, i had to add this line to my ~/.bashrc file
    _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on
    But now when i go to run a flex project, i get the following error message
    Information:Using built-in compiler shell, up to 4 parallel threads
    See compiler settings at File | Settings | Compiler | Flex Compiler page
    Information:Starting Flex compiler:
    /opt/java/jre/bin/java -Dapplication.home=/home/julian/SDK/flex_sdk_4.5.0.17855 -Xmx384m -Dsun.io.useCanonCaches=false -Duser.language=en -Duser.region=en -Xmx1024m -classpath /opt/idea-IU-98.311/plugins/flex/lib/flex-compiler.jar:/home/julian/SDK/flex_sdk_4.5.0.17855/lib/flex-compiler-oem.jar com.intellij.flex.compiler.FlexCompiler 48936
    Information:Compilation completed with 2 errors and 0 warnings
    Information:2 errors
    Information:0 warnings
    Error:Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on
    Error:java.net.SocketException: Socket closed
    Error:java.net.ConnectException: Connection refused
    Error:     at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:529)
         at java.net.Socket.connect(Socket.java:478)
         at java.net.Socket.<init>(Socket.java:375)
         at java.net.Socket.<init>(Socket.java:218)
         at com.intellij.flex.compiler.FlexCompiler.openSocket(FlexCompiler.java:35)
         at com.intellij.flex.compiler.FlexCompiler.main(FlexCompiler.java:70)
    Any suggestions, besides disabling the _JAVA_OPTION again ?
    Many Thanks
    Last edited by whitetimer (2010-11-14 17:24:11)

    -Dawt.useSystemAAFontSettings=on needs to be added to the end of file
    idea.vmoptions

  • "catch is unreachable" compiler error with java try/catch statement

    I'm receiving a compiler error, "catch is unreachable", with the following code. I'm calling a method, SendMail(), which can throw two possible exceptions. I thought that the catch statements executed in order, and the first one that is caught will execute? Is their a change with J2SE 1.5 compiler? I don't want to use a generic Exception, because I want to handle the specific exceptions. Any suggestions how to fix? Thanks
    try {
    SendMail(....);
    } catch (MessagingException e1) {
    logger.fine(e1.toString());
    } catch (AddressException e2) {
    logger.fine(e2.toString());
    public String SendMail(....) throws AddressException,
    MessagingException {....                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    I found the problem:
    "A catch block handles exceptions that match its exception type (parameter) and exception types that are subclasses of its exception type (parameter). Only the first catch block that handles a particular exception type will execute, so the most specific exception type should come first. You may get a catch is unreachable syntax error if your catch blocks do not follow this order."
    If I switch the order of the catch exceptions the compiler error goes away.
    thanks

Maybe you are looking for