Sun CC 5.2: templates: -D option quoting bug?

Hi,
I am using Sun CC 5.2 (Forte 6 Update 1) on a Solaris 8.
I am finding the following quoting problem in SunWS_cache.
When given an option like -DINL=inline to the compiler, The SunWS_cache/CC_state file stores it as: -DINL='inline' in a =OP line. That is, it adds extraneous quotes around the definition. This creates problems when templates are regenerated.
A code like:
template <class T> INL int Foo::getBar() const { ...}
expands to
template <class T> 'inline' int Foo::getBar() const { ... }
Is there any workaround? The quotes create havoc and the compiler emits strange errors afterwords.
Thanks
Sankar

Sorry, I use CC 5.3 which seems not to exhibit your problem. You might try using a sed(1) script in your Makefile to remove the extraneous quotes:
.o .cc:
CC -DINL=inline -c $<
cat SunWS_cache/CC_state | sed '/OP=/s/\'inline\'/inline/' > SunWS_cache/tmp_CC_state
mv SunWS_cache/tmp_CC_state SunWS_cache/CC_state
Alternatively, experiment with variations like: CC -D"INL=inline"
... Dave

Similar Messages

  • Set up a template for sales quotes in SAP Business One.

    I would like a sales quotation template to contain the same 10 items so that I do not have to enter the items each time. What is the best way to do this? Is there any sales quotation template in SAP for this?
    I am using SAP Business One 2007A SP0 PL49 and B1UP.

    You may use Draft function to make your own template for Sales Quotes.
    Thanks,
    Gordon

  • AD RMS 2012 Templates/Permissions [Option] is not visible at Outlook 2013 in Nokia Windows 8 Mobile Device

    I have AD RMS 2012 Server, its working fine by applying restricted Templates/Permissions on OWA, Outlook & other MS Office Tools (Word Excel, PowerPoint). But the AD RMS Templates/Permissions [Option] is not visible at Outlook 2013 in Nokia Windows
    8 Mobile Device.
    Actually I would like to protect email with RMS templates (defined by me on AD RMS 2012 Server) but the [Permission] tab is not visible at Outlook 2013 in Nokia Windows 8 Mobile Device.
    But I can do same with Android OS in Samsung Galaxy Mobile Device & I can see [Permission] tab as well to protect an email messages.
    Any idea??
    Regards,
    M.Daud Soomro

    Currently, you can't use WP 8 to protect docs/emails with ADRMS templates. YOu can however use transport rules on Exchange server side to configure automatic ADRMS protection.
    Please mark as helpful if you find my contribution useful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you. Thank you! Damir

  • Dynamically set template for Print Quote report

    We need to customize "Print Quote" in Quoting
    As part of this we will be having 2 custom templates (will be related to data definition "Quote Printing", ASOPRT).
    These two templates have to be defaulted based on the quote status - one for status "Approved", and the other template for other non "Approved" statuses.
    How can this be achieved dynamically? (OAF CO customization / personilization)
    There doesn't seem to be any setup for assigning different templates based on status.
    Profile option "ASO: Default Layout Template" can be utilized to change the default template, but we need this template to be defaulted dynamically based on the Quote status.
    Thanks,
    Sumanth
    Edited by: user1131947 on Oct 25, 2011 3:51 AM

    If you want to create a custom report using concurrent program then refer:
    http://apps2fusion.com/apps/apps/63-xml-publisher-concurrent-program-xmlp
    If you want to create a custom report using OAF page then refer:
    http://apps2fusion.com/at/51-ps/260-integrating-xml-publisher-and-oa-framework
    -Anand

  • Creating DW templates - Repeating Optional Region?

    Hello Again:
    I know that it isn't always the best to pose abstract questions on forums, but I am wondering if anyone can tell if/how one can create an optional region within a repeating region of a DW template?
    The specific conundrum I seem to face that if a region has two divs within it (one with and one without a textbox surrounding it, for example) and if the user of the template chooses to repeat the section, how can they delete the second div within the repeated region (deleting through the modify tempate option) without deleting all the previous instances of the div as well.
    If there is a way to do this, I would appreciate some guidance.
    Thanks in advance.
    Steve Webster.

    Yes, and first my apologies, as I could have provided the example first of all.  If you go to  http://socls.org/testing/immigration-refugee_law.html I can perhaps explain my objective better.  On that page you see a series of text boxes one with a gradient background and a second with a only a outline in red.   For the moment ignore the text boxes that are rendered side by side and assume that the 1st two horizontal text boxes are all that I want to repeat throughout the page.
    I want to place the two of those full width text boxes within a repeating region (or turn them into a repeating region).  However if the webmaster needs to add content but doesn't need a pair of text boxes, or otherwise gets to the end of her content sections and doesn't need a final red outlined box, then I would want that the last red outlined box to be optional, without however deleting previous instances.  Sometimes content can't be organized so neatly as to finish with an even number of "content sets".
    I think the bigger problem is, as I understand it, that you can't create two "divs" (in this case text boxes) and have each repeating independently, and allow each to be moved up and down as though they were passing through another text box/div that also constitutes a repeating region.  The only way to have the pattern to repeat is to "pair" them as a single unit (Or perhaps I have misunderstood how the repeating action works ?!?)  I have tried treating them as independent repeating regions and it doesn't seem to work in the manner I would like.  If you tie them together in this way, then the only way to end with an uneven number of text boxes is to make one optional.  But it seems that if you make the second in the pair optional, then by "turning it off", you end up turning all off.
    At least that is how it seems to work.
    You may be right that the design is too complicated to work as a template in this fashion.
    Or, perhaps I am fundamentally mistaken on the architecture of the repeat concept.
    Thanks again for your patience and persistence
    Steve.

  • Remote debugging in sun one application server 8.1 options

    Hello Techies,
    I want to remote debug sun one application server 8.1
    I had followed remote debugging documentation on MyEclipse site. My sun one server is running under 8080 port. so I had done the modifications in domain.xml as follows
    debug-enabled="true" debug-options="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8080"When i change this address to 8080, I am unable to start up the server. Can you guys tell me am i missing any thing ??
    Why I am unable to start up the server?? If i change the port no to 8000 I am able to start up the server.
    regards,
    Krishna

    And just to make an unfounded guess: do you have to specify the debug port or the request port there? If it's the former, it'll stand in its own way.

  • Request Template LookupQuery Option

    Has anyone tried using the lookupQuery option in a request template? I tried adding it for a country field and instead of getting a drop-down box I simply got a textbox. I primarily want to use the query option so that I can sort the list of countries instead of leaving it up to the random map sequence that you currently get.
    Thanks,
    Pete

    Dude
    Here are the answers for your query:
    <AttributeReference name="Country of Origin" attr-ref="Country of Origin" available-in-bulk="false" type="String" length="50" widget="dropdown" required="false">
    <lookupQuery lookup-query="select lkv.lkv_decoded as CODE, lkv.lkv_encoded as COUNTRY from lku, lkv where lku.LKU_TYPE_STRING_KEY = 'Lookup.Locations.Country' and >lku.LKU_KEY = lkv.LKU_KEY order by COUNTRY ASC" display-field="COUNTRY" save-field="CODE"/>
    </AttributeReference>+In addition if I then delete the "Country of Origin" attribute from the User Configuration then the Self-Register template fails to load because it can't find the attribute.+
    Answer: You are using "*attr-ref="Country of Origin*" in your dataset. If you delete that field from OIM then how will it load ?
    Regardless of what I put in the query, even **** data, the form still displays the contents of the "Country of Origin" based on the User Configuration settings
    order by COUNTRY ASC
    Most of the things don't work in Request Dataset. here you are using order by. I am not sure whether it works properly or not. Use some other query and test that.

  • Error while running Sun Java Webserver 6.1 configtest option

    hi all,
    Need help on the following. My environment is Liunx OS and Sun Java Webserver installed on Linux
    I added the following lines to Sun Java Webserver's magnus.conf file to include my NSAPI filter.
         Init fn="load-modules" shlib="/space/esnta068-1/SUNWwbsvr/plugins/vgnnsapi6.so" funcs="vgn_init,vgn_nametrans"
         Init fn="vgn_init" PZN_AUTO_COOKIE_TRACKING="true" PZN_AUTO_URL_TRACKING="true"
    and the magnus.conf file after adding the above is as follows. I made necessary changes to obj.conf file also.
    # The NetsiteRoot, ServerName, and ServerID directives are DEPRECATED.
    # They will not be supported in future releases of the Web Server.
    NetsiteRoot /space/esnta068-1/SUNWwbsvr
    ServerName esnta068.aus.lab.com.
    ServerID https-esnta068.aus.lab.com.
    RqThrottle 128
    DNS off
    Security off
    PidLog /space/esnta068-1/SUNWwbsvr/https-esnta068.aus.lab.com./logs/pid
    User hsangava
    StackSize 131072
    TempDir /tmp/https-esnta068.aus.lab.com.-a0fe7799
    Init fn=flex-init access="$accesslog" format.access="%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%] \"%Req->reqpb.clf-request%\" %Req->srvhdrs.clf-status% %Req->srvhdrs.content-length%"
    Init fn="load-modules" shlib="/space/esnta068-1/SUNWwbsvr/bin/https/lib/libj2eeplugin.so" shlib_flags="(global|now)"
    # for Visitor Profiling Plug-in
    Init fn="load-modules" shlib="/space/esnta068-1/SUNWwbsvr/plugins/vgnnsapi6.so" funcs="vgn_init,vgn_nametrans"
    Init fn="vgn_init" PZN_AUTO_COOKIE_TRACKING="true" PZN_AUTO_URL_TRACKING="true"
    When I use the following command at managed server's directory I am getting 'configuration test failed' error as follows
         [root@esnta068 https-esnta068.aus.lab.com.]# ./start -configtest
         Sun ONE Web Server 6.1SP2 B04/07/2004 17:54
         [14/Sep/2005:06:22:03] info (12656): CORE1116: Sun ONE Web Server 6.1SP2 B04/07/2004 17:54
         failure: configuration test failed
         [root@esnta068 https-esnta068.aus.lab.com.]#
    When I try to start the server I am getting following error in the error log.
    [14/Sep/2005:06:25:14] info (12724): CORE1116: Sun ONE Web Server 6.1SP2 B04/07/2004 17:54
    [14/Sep/2005:06:25:14] catastrophe (12724): CORE3260: Server crash detected (signal SIGSEGV)
    [14/Sep/2005:06:25:14] info (12724): CORE3261: Crash occurred in NSAPI SAF load-modules
    If I remove the lines related to my filter in magnus.conf file, configtest passed and Server is working fine.
    Can anyone help me resolve these issues?
    Regards
    Harish

    As you suggested I have used the same compiler to compile the source files, later I configured the same in magnus.conf.
    In core dump, I ended up with the following errors.
    (gdb) where
    #0 0xb5ccae52 in std:: list<std:: pair<VgnHTTPRequestHandler*, bool> (*)(std:: map<std:: string, std:: string, vgn_iless, std:: allocator<std:: pair<std:: string const , std:: string> > > const& ), std:: allocator<std:: pair<VgnHTTPRequestHandler*, bool> (*)(std:: map<std:: string, std:: string, vgn_iless, std:: allocator<std:: pair<std:: string const, std:: string> > > const& ) > >:: begin (this=0xb5cdaa60) at stl_list.h:365
    #1 0xb5ccf48a in std:: list<std:: pair<VgnHTTPRequestHandler*, bool> (*)(std:: map<std:: string, std:: string, vgn_iless, std:: allocator<std:: pair<std:: string const, std:: string> > > const& ) , std:: allocator<std:: pair<VgnHTTPRequestHandler*, bool> (*)(std:: map<std:: string, std:: string, vgn_iless, std:: allocator<std:: pair<std:: string const , std:: string> > > const& )> >:: push_front (this=0xb5cdaa60, __x=@0xbfff4e00)
    at stl_list.h:471
    #2 0xb5ccd557 in VgnHTTPRequestHandler:: registerHandlerFactory (
    fp=0xb5ccc030 <VgnVisitorIDHandler:: create(std:: map<std:: string, std:: string, vgn_iless, std:: allocator<std:: pair<std:: string const, std:: string> > > const& ) > ) at VgnHTTPRequestHandler.h:99
    #3 0xb5ccc029 in RegisterFactory (this=0xb5cdaa64,
    fp=0xb5ccc030 <VgnVisitorIDHandler:: create(std:: map<std:: string, std:: string, vgn_iless, std:: allocator<std:: pair<std:: string const, std:: string> > > const& ) > ) at VgnHTTPRequestHandler.h:111
    #4 0xb5ccbfe5 in __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at ../common/VgnVisitorIDHandler.cpp:10
    #5 0xb5ccc006 in global constructors keyed to _ZN19VgnVisitorIDHandler15registerFactoryE () at VgnHTTPRequestHandler.h:51
    #6 0xb5cd4385 in __do_global_ctors_aux () from /space/esnta068-1/SUNWwbsvr/plugins/vgnnsapi6.so
    #7 0xb5cc6115 in _init () from /space/esnta068-1/SUNWwbsvr/plugins/vgnnsapi6.so
    #8 0xb75f7921 in dlinit_internal () from /lib/ld-linux.so.2
    #9 0xb689d522 in dl_open_worker () from /lib/tls/libc.so.6
    #10 0xb75f76d6 in dlcatch_error_internal () from /lib/ld-linux.so.2
    #11 0xb689cf9c in dlopen () from /lib/tls/libc.so.6
    #12 0xb696cffb in dlopen_doit () from /lib/libdl.so.2
    #13 0xb75f76d6 in dlcatch_error_internal () from /lib/ld-linux.so.2
    #14 0xb696d4b6 in dlerrorrun () from /lib/libdl.so.2
    #15 0xb696cfa4 in dlopen@@GLIBC_2.1 () from /lib/libdl.so.2
    #16 0xb74b2c7c in dll_open2 () from /space/esnta068-1/SUNWwbsvr/bin/https/bin/../lib/libns-httpd40.so
    #17 0xb74ef0e8 in mark_func_cacheable () from /space/esnta068-1/SUNWwbsvr/bin/https/bin/../lib/libns-httpd40.so
    #18 0xb74ef34f in load_modules () from /space/esnta068-1/SUNWwbsvr/bin/https/bin/../lib/libns-httpd40.so
    #19 0xb74c0e00 in func_exec_str () from /space/esnta068-1/SUNWwbsvr/bin/https/bin/../lib/libns-httpd40.so
    #20 0xb74c0f65 in INTfunc_exec () from /space/esnta068-1/SUNWwbsvr/bin/https/bin/../lib/libns-httpd40.so
    #21 0xb74bdeba in conf_is_late_init () from /space/esnta068-1/SUNWwbsvr/bin/https/bin/../lib/libns-httpd40.so
    #22 0xb74bdf4d in INTconf_run_init_functions () from /space/esnta068-1/SUNWwbsvr/bin/https/bin/../lib/libns-httpd40.so
    #23 0xb7526e00 in WebServer::Run () from /space/esnta068-1/SUNWwbsvr/bin/https/bin/../lib/libns-httpd40.so
    #24 0x0804879f in ?? ()
    #25 0xb67a5768 in __libc_start_main () from /lib/tls/libc.so.6
    #26 0x08048671 in ?? ()
    Current language: auto; currently c++
    Could you help me anything to resolve the errors and go ahead of this step?

  • XML Publisher Data Template Executable Options

    Hello,
    Can someone help me find some documentation on how to decipher what the Options parameter on the XDODTEXE executable is.
    Someone has created a concurrent program, and set the options to : -Xss2048k -Xmx512m
    Tried googling with no luck....anyone?
    Thanks
    S

    ok...found the answer
    http://cyberserf.com/category/oracle-applications/

  • Filename Template Editor Option

    It would be nice to ad "Shot Name" as an insertable option in the file name editor so that one can name a batch of images by the shot name with a sequence #  during the tethered capture process.

    Adobe should include a token based editor to build strings that includes all metadata.  This should be available wherever a string could be built, including file names, titles, loupe info, slideshow text and so forth.

  • Mail Template / Stationery Option Available?

    I recently made the switch from Eudora to mail.app, and one feature I don't see is the ability to make a "stationery" file, (or template) for repetitive emails.
    I would like to make a file for sending our company invoices, and since it always has similar text, I would like to have a ready-made reply on hand that already has the subject, body text, priority, etc. pre-created.
    Can mail.app do this, and if so, how?
    Thanks.

    Mike,
    yes, you can do this with the standard functions in Mail:
    - create a new message as you please and save it as Draft
    - drag the message from the "Drafts" folder to whatever folder/mailbox you like (probably a new mailbox you created and called "Templates"?)
    - in order to create a new message based on a selected template, select the message in the templates folder and select "Message → Send Again" from the menu (or hit command-shift-D to achieve the same)
    Andreas

  • No Label Template is it a bug?

    Hi,
    In APEX 4.1.1.00.23 I am using Theme 20.
    Any page items, if I select Label Template as No Label.
    The label is still displayed. Is there any workaround except removing the text in the label Box?
    I would rather the No Label Template would work corectly.
    Thanks Ron

    I found that Sun Fortran does not count blanks from
    an 'nX' specifier when writing with advance='NO'. For
    example, this code:
    write(*,'(A,4X)',advance='NO') '1'
    write(*,'(A)') '2'
    write(*,'(A,4(" "))',advance='NO') '1'
    write(*,'(A)') '2'
    end
    results in:
    12
    1 2
    I recall some discussion that the standards were a
    bit vague on trailing 'nX' with non-advancing I/O.The language in the standard was vague, but the standard
    committee recently issued an interpretation that makes it clear.
    Unfortunately, it makes it clear that what Sun f95 is doing is
    wrong. CR 6580748 has been filed against the bug.
    Bob Corbett

  • Bridge Collection file / folder name single quote bug fix?

    Just starting using Bridge CS5 on WIndows 7.  Fresh install of OS and CS5.  Latest patches applied (4.0.5.11).
    After laboriously selecting 60+ files and creating a colelction, the collection showed zero items.
    I recreated the collection multiple times but same result.  This was supremely frustrating and a huge time waster for me (and I'm sure for others).
    Completely repeatable.
    Tracked this down to one of my folders having a single quote in its name.  This problem was documented back in 2010:
    http://forums.adobe.com/message/2936294
    I edited the collection file in notepad and replaced the single quote with %27.  Worked fine.
    But manually editting the collection file everytime I make a change to the collection or renaming my folder hierachry are not viable workarounds.
    Does anybody know if a fix was ever released for this?  What is Adobe's response to this? 
    It apparently is a regression (i.e. it was fixed in a pevious verision and now is back).
    This is a programming 101 bug (i.e. escaping special characters in file names). 
    This type of programing error is a real showstopper and really inexcuable, especially for how long it has been out there.
    Jeff

    Thanks for posting this problem on the photoshop feedback page.
    It's clear many of us have tripped on this issue and that it is time Adobe fixed this problem.
    To hedge our collective bets, I also filed a "bug report" using this web page:
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    It interesting to note that I did not find a bug report form for Bridge - the site just offers a redirect to the general feedback form on Photoshop.  But there was a bug report form for Premier Pro (a program they obviously care more about).  So I filed this issue as an official bug against Premier Pro thinking it may get greater visiability.  What follows is what I submitted.  If I hear back from the development team I'll let this thread know.
    Jeff
    ******BUG******
    File names / folders with single quotes (e.g., Jeff's Photos) are not properly escaped in the collection xml file created by Bridge which is used to manage assets in Photoshop, Premier Pro, etc. The single quote, which is a valid filename symbol in Windows, should be converted to %27 in the xml file but is left "as is" which prematurely terminates filename / folder strings.  The net effect varies based on the operation being performed, but it is typically a silent error (i.e. the user is given no warning anything is wrong) and can result in catastrophic loss of critical assets.
    It is simple to repro: just create a folder with a single quote in the name, populate it with content files, and create a collection.  The next time you use it, the collection shows up as 0 entries.
    The bug (which appears to be a regression) results in many users losing critical asset files and wasting huge amounts of time debugging this issue which was reported almost a year ago.  The forums have many threads on this problem - see my recent entry for an example:
    http://forums.adobe.com/message/4112499#4112499
    The bug is a trap that directly erodes customer confidence and satisfaction with Adobe's whole product line.  Bridge is billed as hub that is supposed to tie all products together - but it cannot be trusted.  Critical assets and time are lost.  This is trivial bug to fix and many customers are outraged that Adobe has done nothing to fix it or warn users about it - especially since this is in your professional line of products that cost over a thousand dollars.  Please escalate this fix immediately. 
    As a courtesy, please let me know this bug report was escalated and an ETA when a fix may become available.
    Thank you

  • Dreamweaver CS5.5 template PHP file path bug

    I have a template that I am using for my website, it is a PHP template and for some reason whenever I have some links within the PHP code blocks that include other .php files. My code is:
    <?php
    //Code In template
    include('../scripts/MySqlConnection.php');
    include('../scripts/login.php');
    ?>
    The code is just including some files, but when I update all the pages that use this Template they dont put the right links on them, like so:
    <?php
    //Code That Appears On Child Page
    include('scripts/MySqlConnection.php');
    include('../scripts/login.php');
    ?>
    For some reason the first link is correct since this document is in the root of the site instead of in the Templates folder like my template is, but the second "include" statement has the wrong link inside of it. Even if I switch them around its always the very first include statement that is correct and the 2nd is always wrong.
    Also the links are all relative to the document and not site root in the "Manage Sites..." dialog.
    Is there anyway to fix this? I heard that this was a quirk/bug in Dreamweaver 8 or something but is it still not fixed in this version?
    Thanks

    Yes I guess that I am gonna have to use one of those solutions, but it still is weird that this is happening within the code though. I found one thread where the solution was to put the include tags into a seperate PHP block like this:
    //Template
    <?php include('../scripts/MySqlConnection.php'); ?>
    <?php include('../scripts/login.php'); ?>
    And it actually outputted the correct links on the child page which is really weird but this was from like Dreamweaver 8 or MX or something because the thread was from like 2007 which is weird that they hadn't fixed this bug yet considering its 2012 and Dreamweaver CS5.5 still has the bug.

  • Photoshop CC smart quote Bug

    I'm using the PS CC latest version. I started typeing some copy out for a layout and when I typed a ' photoshop inserted a > so instead of something like "they're" photoshop would substitue "they>re". I had to go into preferences and turn off smartquotes in order to a '.

    What are your Smart Quotes preferences set for?  "Anglo-Saxon quotes" like 'this' ?  «Spanish quotes» like <this> ?  »German quotes« like >this< ?  etc.
    Spanish, German and/or French quotes (guillemets) may do that.  http://en.wikipedia.org/wiki/Guillemets

Maybe you are looking for