Linker argument order

Hi,
there's a quirk in the Sun Studio 12 RC version you distributed at LinuxTag 2007
in Berlin, Germany (Александр Горшенев told me to report any more bugs I find
to this forum).
--- begin pastetg@odem:~ $ $SP/bin/cc -# -Wl,-dynamic-linker,/usr/libexec/ld.so hello.c                                       
### Note: NLSPATH = /home/.data/tg/suncc/sunstudio12/prod/bin/../lib/locale/%L/LC_MESSAGES/%N.cat:/home/.data/tg/suncc/sunstudio12/prod/bin/../../lib/locale/%L/LC_MESSAGES/%N.cat
###     command line files and options (expanded):
### -Wl,-dynamic-linker,/usr/libexec/ld.so hello.c
/home/.data/tg/suncc/sunstudio12/prod/bin/acomp -xldscope=global -i hello.c -y-fbe -y/home/.data/tg/suncc/sunstudio12/prod/bin/fbe -y-xarch=generic -y-o -yhello.o -y-verbose -y-xthreadvar=no%dynamic -y-comdat -xdbggen=no%stabs+dwarf2+usedonly -xdbggen=incl -y-s -m32 -fparam_ir -Qy -D__SUNPRO_C=0x590 -D__unix -D__unix__ -D__i386 -D__i386__ -D__linux__ -D__linux -Dlinux -D__gnu__linux__ -D__BUILTIN_VA_ARG_INCR -D__C99FEATURES__ -Xa -D__PRAGMA_REDEFINE_EXTNAME -Dunix -Di386 -D__RESTRICT -xc99=%all,no%lib -D__FLT_EVAL_METHOD__=-1 -c99OS -I/home/.data/tg/suncc/sunstudio12/prod/include/cc "-g/home/.data/tg/suncc/sunstudio12/prod/bin/cc -Wl,-dynamic-linker,/usr/libexec/ld.so -c " -fsimple=0 -D__SUN_PREFETCH -destination_ir=yabe
/home/.data/tg/suncc/sunstudio12/prod/bin/fbe -s -o hello.o -warn=%none -Qy /tmp/yabeevaqyh
rm /tmp/yabeevaqyh
### Note: LD_LIBRARY_PATH = /data/tg/Misc/.home/suncc/sunstudio12/prod/lib/sys:/data/tg/Misc/.home/suncc/sunstudio12/prod/lib
### Note: LD_RUN_PATH = <null>
/usr/bin/ld -dynamic-linker /usr/libexec/ld.so -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 --enable-new-dtags /home/.data/tg/suncc/sunstudio12/prod/lib/crti.o /home/.data/tg/suncc/sunstudio12/prod/lib/crt1.o /home/.data/tg/suncc/sunstudio12/prod/lib/values-xa.o hello.o -Y "/home/.data/tg/suncc/sunstudio12/prod/lib:/lib:/usr/lib" -Qy -lc /home/.data/tg/suncc/sunstudio12/prod/lib/libc_supp.a /home/.data/tg/suncc/sunstudio12/prod/lib/crtn.o--- end paste
As you can see, the argument "-dynamic-linker /lib/ld-linux.so.2" overrides the one I
give it on the command line, instead of vice versa (i.e. the other way round).
Also, where is that -Y argument generated from?
Ideally, I would use something like &#8220;-Wl,-dynamic-linker,/usr/libexec/ld.so -Wl,-Y,/usr/lib&#8221;
to create binaries (for BSD, not for Linux &#8211; it works, I just have to create a wrapper around
ld as described in http://marc.info/?m=118099390924175 and in mails to Alexander).
So it'd be nice if the options given on the command line via -Wl (etc.) are appended to
all automatically generated flags, instead of prepended. I'm not quite sure about the
order of the arguments w.r.t the files &#8211; maybe the -Y and -Qy arguments should be moved
before the crti.o, and between them and crti.o place the user-given arguments.
Also, is there a kind of &#8220;spec file&#8221; like gcc or a command line option or whatever to tell
it to use different crt*.o files? At the moment, I'm using &#8220;ld -r&#8221; to combine our five into the
three the Sun compiler expects.
But still (despite bug 6565674) a great job you have done, thanks!

As you can see, the argument "-dynamic-linker /lib/ld-linux.so.2" overrides the one Igive it on the command line, instead of vice versa (i.e. the other way round).
Its just a bug in -Wl. All other -Wx options add to the end of the component options line.
where is that -Y argument generated from?It is the default path for linking our own compiler libraries. Its just hardcoded in the driver.
is there a kind of &#8220;spec file&#8221; like gcc or a command line option or whatever to tellit to use different crt*.o files?
Sorry, nothing similar to the spec. And I do not expect it to be changed any soon.
regards,
__Fedor.
PS just have filed 6565771bug for -Wl problem

Similar Messages

  • Fields required for linking production order with sales order

    I need to link production order and sales order to get the part no#. need to see in md04.

    The link between production order and sales order can be made by using the KDAUF KDPOS fields of AUFK or AFPO and linking them to VBELN and POSNR of VBAP.
    Regards,
    Rich Heilman

  • How to block the creation of a Sales Orders without a linked Purchase Order

    Hi. I'm trying to block the creation of a Sales Order that doesn't have a linked Purchase Order. The first thing I did is using the SBO Transaction Notification as follows:
    IF  @transaction_type = 'A' AND @object_type='17'
    BEGIN
         IF (SELECT PoPrss FROM ORDR WHERE DocEntry = @list_of_cols_val_tab_del) = 'N'
         BEGIN
              SET @error = 1
              SET @error_message = 'Purchase Order Missing...'
         END
    END
    This works good. I create the Sales Order, I tick the purchase order field on the logistics tab, I click Add, and then the purchase order window appears...
    Then, the problem begins... If I click the Cancel button, the purchase order is obviously not created, but the Sales Order is created.
    Can someone tell me how to block the creation of the sales order If the user press the cancel button on the purchase order window (and the purchase order is not created)
    As far as I can see, after clicking the add button in the sales order document, the Sales Order is created on the DB. If there's no way of blocking the creation of the Sales Order, can I avoid closing the purchase order window by the SBO_TransactionNotification? (if the purchase order has not been created)
    Thanks...

    Hi Yail,
    I think you can't close the purchase order with the stored procedure.
    Try to catch the Event when the user click on Cancel button.
    So you can list the vents with event logger : https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ede3be37-0e01-0010-1883-cd1b5293473e
    You can block the cancel button and force the user to create the purchase order.
    Hope i help you
    Best regards
    Michael

  • Link Sales Order & Purchase Order in Reports

    Hi All,
    We create all our Purchase Order's back-to-back to our Sales Orders. When we look at Row Details in a Sales Order we can see the linked Purchase Order, and vice versa.
    Is it possible to run a Query that will show the list of Sales Orders (all the rows), and the linked Purchase Order number on each line?
    This would make our life much easier when we use DTW to update the shipping dates in the Sales Order based on the dates we get from our supplier on the Purchase Order.
    Best regards,
    Myran

    I think you can start with this query:
    SELECT T0.DocNum 'Sales order',
    T1.LineNum, T1.ItemCode, T1.Quantity, T1.ShipDate,
    T2.DocNum 'Purchase order', T2.CardCode, T2.CardName
    FROM ORDR T0 
    INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
    Inner join OPOR T2 On T2.DocEntry=T1.PoTrgEntry

  • Link Sales Order with STO

    Dear All,
    I am having a scenerio, where I would like to link Sales Order Document Number with Stock Transport Order.
    Can anybody advise me , plsease.
    Rgds,
    Indrajit

    hi-
    in STO we started from PO(purchase order).NO Req. of sales order in that scenario.
    I f u want to envolve the sales order then do one thing creat sales doc for STO then in sales order  you can put the PO number in PO feld in sales order as  a text then you can do having no problem also.
    thanks
    sunil

  • Linking Purchase Order to PM Order

    Hi PM Gurus,
    I have the following requirement,
    Currently the stock of item A is Zero. Now User 1 places a PM Order requesting 5 units of A. Later User 2 places a PM Order requesting 8 units of A. But the first order has a higher priority. A purchase order has already been placed for 5 units of A. Now I want to reserve the stock comming from the Purchase Order to the higher priority order. If the User 1 waits till the PO Receipt is done. User 2 might reserve the stock for him since he doesn't know the priority level of the two orders.
    To prevent this, is there a method to link the Purchase Order to the PM Order so that when we do GR in SAP automatically the stock is reserved to the linked PM Order. If not suggest a method to solve the problem.
    Cheers
    Deepal

    Dear Thenna,
    This is about stock items.
    I place so many PM Orders requesting a perticular component when the stock for a perticular item is Null. So when the stock come (through GR of PO) and if the stock is not sitll sufficient to cover the demand of all the PM Orders, we need to set priorities to PM Orders and allocate material.
    To do this only way is to link the Purchase Order to single or multiple PM Orders so that when the stock comes (with GR process) it will be automatically reserved to linked PM Orders.
    Otherwise any PM order open can take the newly arrived stock
    Can we do this in any way because it's a common requirement ?
    Rgds
    Deepal

  • How to link Purchase Order using account assignment category "F"* to asset

    Hello,
    I'd like to know how to link Purchase Order, using account assignment category "F" to asset .
    When I enter asset no. in my ANEK table, po no(ebeln) and po item(ebelp) field is blank.
    whether every line item in a Purchase order have differrent asset.
    can anybody give me the link between asset and materal no?
    Regards,
    Rachel

    Hi Rachel,
    Your message is a little bit confusing. There is no link between the asset and material number. If you want to post your purchase order, using account assignment F - that is internal order - you may do it. Futher, you can settle the postings from this order to asset.
    You can read more here:
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/4f/71e7cd448011d189f00000e81ddfac/frameset.htm
    Regards,
    Eli

  • Link Purchase Order to BOM

    How to Link Purchase Order (OPOR and POR1) to BOM components?

    Your question is not clear. Could you please clarify?

  • Linking Purchase Orders to Consumption Orders

    Hi MM Gurus,
    I have the following requirement,
    Currently the stock of item A is Zero. Now User 1 places a PM Order requesting 5 units of A. Later User 2 places a PM Order requesting 8 units of A. But the first order has a higher priority. A purchase order has already been placed for 5 units of A. Now I want to reserve the stock comming from the Purchase Order to the higher priority order. If the User 1 waits till the PO Receipt is done. User 2 might reserve the stock for him since he doesn't know the priority level of the two orders.
    To prevent this, is there a method to link the Purchase Order to the PM Order so that when we do GR in SAP automatically the stock is reserved to the linked PM Order. If not suggest a method to solve the problem.
    Cheers
    Deepal

    you can make capital investment orders in pm asking for wbs element.
    then adopt the purchase request after adopting purch request.
    so when grn will be made stock will get reserve against that wbs element.
    pl try
    regards
    points if helpful/solved

  • Establishing Link between Order and Routing

    Hi
    When I am creating an order (e.g. production order from CO01) by default itu2019s getting Routing and BOM. I want to know from where my order is populating BOM and Routing?
    I want to know how the link between Order and BOM and Order and Routing are established
    Thanks

    If you want to see how the tables are linked you can see this in table CAUFV (order header).  Fields PLNTY, PLNNR, & PLNAL define the task list type, group, and group counter.  These can be used to look up the routing information in tables PLKO and PLPO.  The BOM link is in field STLTY, STLST, & STLNR (bom category, status, and BOM).  Use these values to find the the BOM details in tables STKO and STPO.
    If you want to know how the system knows which BOM and routing to bring in, that is done in configuration under Order plant dependent parameters (t-code OPL8).  Also, once the boms and routings are copied into the order you can make changes to the operations and components within the order.  The operation and component details that are stored in the order can be found in tables AFVC and RESB.
    thanks,

  • How to Link Sales Order for Non Purchase items to Purchase Order

    Hi,
    I am using SAP 2007A SP01 PL05.
    I am creating a Sales Order for Non Purchase Items where i have 3 companies involved.
    1. Owner of the Product
    2. Transport Agent
    3. Customer
    Owner Sells to the Customer non Purchase Items manufactured internally.
    Owner buys transports services from the Agent for these non purchase items.
    I am creating a Sales Order for the Customer and at the same time i want to create a Purchase Order to the Transport Agent.
    How do i Link Sales Order to a Purchase Order for Transport.
    The Transport Charges are not to be Charged to the Customer and should not be added to the Sales Order.

    Hi
    Create purchase Item frieght in the purchase tab enter the transporter. include this in the sales order and in the logistic tab of sales order active purchase order check box, you frieght item will have a value of 0. when you create sales order the the system will lead you to create purchase order. there you can enter the price of freight. you can explore options there.
    hope this will help you.. by doing this your base ref for PO would be Sales order.
    Regards
    Sandeep

  • Link Sales Order Schedule Lines to Delivery

    Hi we have a custom report we use to gather all the inventory information, as well as open orders and deliveries.  We are running in to a a bit of a snafu when it comes to the order's schedule lines.  It seems we can not find a good link between the delivery and order's schedule line for the sales order item.  Any one got some thoughts?  Thanks.
    -Larry

    Hi Larry,
    The link are there in standard tables.
    Depending on the types of information that you want to gather from Sales Schedule Line, you can use the below logic:
    1. Give your program selection screen for VBAK-VBELN (optional), VBAK-AUART (optional), VBAK-VKORG (mandatory) and VBAK-AUDAT (mandatory).  Give as much selection possible to narrow down the search and so that the program can run more efficiently.
    2. Based on selection screen input + VBAK-VBTYP = C, get all VBAK-VBELN.
    3. Where VBAP-VBELN = VBAK-VBELN, get all VBAP-POSNR, and for information at Sales Line Item, get all respective VBAP-MATNR, VBAP-KWMENG and respective VBAP-MEINS, VBAP-WERKS and VBAP-NETWR. Store in Z-table.
    4. Where VBEP-VBELN = VBAP-VBELN, VBEP-POSNR = VBAP-POSNR and VBEP-ETTYP = XX (Schedule Line Type - you do not want to retrieve all types. Name only a few.), get all VBEP-EDATU, VBEP-VBEP, VBEP-BMENG and VBEP-LMENG. Not forgetting also VBEP-WADAT if u require.  For 3rd Party Sales, Requisition number can be obtained from VBEP-BANFN.
    5. Where all data are obtained, populate in ALV for respective Sales Order and group accordingly. ABAP will know what to do.
    6. Where LIPS-VGBEL = VBEP-VBELN and LIPS-VGPOS = VBAP-POSNR, get all LIPS-VBELN.
    7. Then gather all your required fields in LIKP and LIPS table accordingly.
    Hope this helps.
    Thanks.
    Rgds.
    Edited by: PKW on May 4, 2010 12:21 PM

  • Link Sale Order with Delivery  through DTW

    Hi All
    While importing Deliveries through DTW, is it possible to Link a Sale Order with Delivery?
    If it is possible then can any one tell me the procedure.
    Thanks in Advance
    Chakrapani Bandaru

    In the template for the document lines, you will find fields for base entry, base type and base line . Fill these with the object type for sales orders, the line number and the doc entry (not doc num) of the relevant linked document

  • Link Sales Order and PO and Pick & Pack

    Ability to add a manual Link between a Sales Order and Purchase order to reserve the item(s).
    Also do not allow Pick & Pack manager to create pick list for sales orders with an earlier date if other sales orders exists waiting for complete shipment.

    HI,
    WE can use the table VBKD (SALES DOCUMENT: BUSINESS DATA )
    1.  VBELN - Sales order
    2.  BSTKD - Customer Purchase order
    we can link these two fields and can pass the data in a internal table after that Vbeln is also present in
    Tables VBAP ( SALE DOCUMENT ITEM DATA )
    1. VBELN - SALE ORDER
    2. MATNR - MATERIAL NUMBER
    3. KWMENG - ORDER QUANTITY
    which could be used for further procssing
    Thanks
    Rajat

  • Link sales Order with contract

    Hi,
    We have created a sales orders using va01,but without referencing to contract.
    is there any way to link these sales order to the old contracts.
    Pls help,
    Thanks

    Hi,
    If your sales order has subsequent documents then it is not possible to link to your old contracts.For such orders this option will be disabled.
    For those order that don't have subsequent orders:
    Goto VA02 T.Code.
    Enter the order number.
    Enter.
    Ensure that the customer numbers are same in both.If not change the custoemr numebr in order.After that Click on Sales document-->Create with reference.While changing the customer the taxes will be redetermined.
    Enter your contract number.
    Click on copy.
    New material will be added here to your old one.If you want then you can keep this or delete the material of your order and then save.
    Or you can assign your sales order to contract also.
    Goto VA02,Enter your order number.Edit-->Assign contract.Her you can assign either Header or item also.
    Regards,
    Krishna.

Maybe you are looking for

  • Saving NSDatePicker to a string and saving that to NSUserDefaults...

    Saving NSDatePicker to a string and saving that to NSUserDefaults I have it saved to a string then I have code that should save it to NSUSerDefaults so that when the program starts it is saved as the string not null. Here is the code [CODE]#import "M

  • Installing from FW external DVD burner

    My internal CDRW is out on my MDD G4. I have been relying on my LaCie FW DVD burner. I am wondering if that would be a problem with installing Tiger. Thanks

  • Finder stopped working altogether, and can't see Volumes on desktop

    I cannot open a finder window and I can't open any folders on the desktop either and my harddrives aren't showing up. I updated to 10.4.5, I also recently turned on "see hidden files" but later turned it off Another weird circumstance was for a few s

  • CS6 and Lightroom 4 Need compare of plans

    I currently have CS6 and Lightroom 4. Please compare the plans for the single app for $9.99 and the complete plan for CS6 for $19.99. Which is right for my situation? Lloyd

  • Re: The Home Hub PS3 Remote Play Issue

    This is still a problem! I have a PS Vita which when away from home I can connect to my PS3 at home and schedule recordings on PlayTV or stream video content..... oh except I can't because the Home Hub 3 doesn't work properly. Can someone at BT fix t