Re: looking for a way to tell gcc not to remove some code he thinks is unreachable.
On 03/07/2011 12:11 PM, Erez D wrote: > I have a function which is not called in a regular way, so gcc thinks > it is dead code. > however it is not, and i am looking for a way to tell the linker not > to remove it. > > i can call it from some place with a flag that tells it to do nothing, > but this is a ugly hack > is there a directive telling gcc not to remove that certain function ? > I did not exactly try, but if there is -fdce, which is by default enabled an -O*, there should be also -fno-dce and fno-tree-dce, is it not? > thanks, > erez. > > > ___ > Linux-il mailing list > Linux-il@cs.huji.ac.il > http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Problem configuring SAMBA for print server ** 2nd try **
Hi, I am configuring SAMBA to be the interface between our Windows users and our Print server on Redhat Linux. The print server is not CUPS, but this is irrelevant to my problem. The Windows users authenticate against ADS. I have already configured SAMBA to authenticate against the AD server. When a Windows user browses to \\LNX1 he can see all the printers. However when clicking on a printer icon, there is a message that no driver is available. When looking at the printer properties, the driver field name is empty. Everything is grayed off, and it is impossible to set anything. I also looked into the print server properties, and again in the drivers tab, the driver list is empty, and everything is grayed off, so I cannot add a driver. I guess it's a permissions problem, or something in the SMB.CONF file. Here is the SMB.CONF file. Would appreciate any advice. Israel Shikler 972-77-5354006 050-28885100 ** [global] workgroup = DOMAIN server string = Unispool Print Server netbios name = LNX1 log level = 3 log file = /var/log/samba/%m.log max log size = 50 security = ads passdb backend = tdbsam realm = DOMAIN.CO.IL password server = nt.domain.co.il encrypt passwords = yes winbind enum users = no winbind enum groups = no winbind use default domain = yes winbind nested groups = yes winbind separator = + idmap uid = 600-2 idmap gid = 600-2 template shell = bin/false preferred master = no # --- Printing Options - load printers = yes printcap name = /printers.txt printing = sysv command = /spooler/bin/lp -d%p -oudatatype=raw %s;rm %s lpq command = /spooler/bin/unismb --show %p lprm command = /spooler/bin/unismb --delete %p %j # Share Definitions == [printers] comment = All Printers path = /var/spool/samba browseable = yes guest ok = yes writable = yes printable = yes read only = no create mask = 0600 [print$] comment = Printer driver download area path = /spooler/drivers read only = no create mask = 0700 guest ok = yes browseable = no write list = root,"@Domain Users" ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Weird Template Problem
Hello, I sent this message to the OpenOffice Users List, but for some reason got no answer, so I thought I'd try this list... I have created a template in Writer and saved it to a shared folder so I can use it both on my desktop PC and my Netbook. I have added a frame and some text inside of it as the footer. I can use the template without any problem on my PC, but when I open the same file with OOO Writer on my Netbook, the frame and text at the footer are misplaced - lower than it should be. If I create a document on my Netbook using this template, save it, and then open it on my desktop - the problem persists. The only way for my to override it would be to create a document on the Netbook without the template, then copy the text to the template on the desktop I really need this to work on my Netbook, since I have to print document while I am on the road or at someone's office. I guess it's related to the page setup, but it seems to be the same. Is there a way I can export the settings from my desktop's OOO and import them to my Netbook OOO? Thanks! Amichai. ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il