This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: -mno-cygwin and "undefined reference to `_impure_ptr'"?


FWIW, MinGW distributions provide an empty libm.a just to aid packages that insist on including it in the library list. Looking at the configure script for MinGW it disables the build of libm.a when target_os is *cygwin*. It would be simple to modify this if that is desired.

Earnie.

<mailbox:///C|/Documents%20and%20Settings/BoydE/Application%20Data/Mozilla/Mail/earnie/Mail5/Mail/pop.mail.yahoo.com/Inbox.sbd/Cygwin.sbd/Cygwin%20Users?number=18266576&part=1.2&type=message/rfc822&filename=cygwin.71564>

Date: Thu, 10 Apr 2003 10:29:44 -0400 (EDT)
From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
Reply-To: cygwin at cygwin dot com
To: Ronald Landheer-Cieslak <ronald at landheer dot com>
cc: Lester Ingber <ingber at ingber dot com>, <cygwin at cygwin dot com>
Subject: Re: -mno-cygwin and "undefined reference to `_impure_ptr'"?
Message-ID: <Pine dot GSO dot 4 dot 44 dot 0304101014110 dot 8179-100000 at slinky dot cs dot nyu dot edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

This sounds like something that needs to be fixed, if only for
compatibility reasons...  Would creating an empty libm.a for MinGW be a
good idea?  FWIW, I've tried it and it replaces the Cygwin one in the
build...  All I did was

$ cd /usr/lib/mingw && touch dh.c && gcc -c dh.c && ar rsf libm.a dh.o

And then I was able to run

$ gcc -mno-cygwin a.c -lm

with no problems of this sort.
	Igor

On Thu, 10 Apr 2003, Ronald Landheer-Cieslak wrote:

> On Thu, 10 Apr 2003, Lester Ingber wrote:
> > Thanks for your reply.
> >
> > There must be some math library?  This is needed for
> > #include <math.h>
> > in all C packages I've seen.  How can simple functions like sqrt()
> > be calculated?
> >
> > Lester
> "Have a go at it (tm)": just try compiling it without the -lm - I'll bet
> it will just make your headache go away.
>
> AFAIK, I've never used -lm on MinGW, even for projects that needed it on
> other platforms
>
> rlc
>
> > On Thu, Apr 10, 2003 at 12:14:05PM +0200, Ronald Landheer-Cieslak wrote:
> > : Date: Thu, 10 Apr 2003 12:14:05 +0200 (CEST)
> > : From: Ronald Landheer-Cieslak <ronald at landheer dot com>
> > : To: Lester Ingber <ingber at ingber dot com>
> > : cc: cygwin at cygwin dot com
> > : Subject: Re: -mno-cygwin and "undefined reference to `_impure_ptr'"?
> > : In-Reply-To: <20030410060338 dot GA344 at ingber dot com>
> > :
> > : On Thu, 10 Apr 2003, Lester Ingber wrote:
> > : [snip]
> > : > gcc -shared -mno-cygwin -o asadll.dll -Wl,--out-implib=libasadll.dll.a
> > : > -Wl,--export-all-symbols -Wl,--export-dynamic -Wl,--add-stdcall-alias
> > : > -Wl,--enable-auto-import -Wl,--whole-archive asa.o asa_usr.o
> > : > asa_usr_cst.o -Wl,--no-whole-archive -lm
> > :                                        ^^^
> > : See if this is not something linked with Cygwin
> > :
> > : [snip]
> > :
> > : AFAIK, there is no libm.a in the MinGW pack, so the libm.a you're pulling
> > : in links you to something linked to Cygwin.. you'll have to get rid of it.
> > :
> > : HTH
> > : rlc

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha at cs dot nyu dot edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor at watson dot ibm dot com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II

On Thu, Apr 10, 2003 at 01:11:00PM -0400, Igor Pechtchanski wrote:
>Would you like me to actually mention Randy, or should I just make that
>star a .bmp?

Just another star, I think.

cgf
On Thu, 10 Apr 2003, Christopher Faylor wrote:

> On Thu, Apr 10, 2003 at 01:11:00PM -0400, Igor Pechtchanski wrote:
> >Would you like me to actually mention Randy, or should I just make that
> >star a .bmp?
>
> Just another star, I think.
> cgf

You're the boss.
Done.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha at cs dot nyu dot edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor at watson dot ibm dot com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II


<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns="http://www.w3.org/TR/REC-html40";>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<title>Si desea que lo llamemos haga click aqui</title>
</head>

<body>

<p align="center">
<a href="http://www.horizontes.us/";>
<img border="0" src="http://www.horizontes.us/pics/50%25.jpg"; width="445" height="373"></a></p>

<p align="center">
?</p>

<hr align="left">

<p align="center"><font face="Verdana" size="2">?Reclame las vacaciones a 
Orlando con su codigo promocional</font><font face="Verdana" size="2" color="#FF0000"> 
4246</font><font face="Verdana" size="2">. </font></p>

<p align="center"><font face="Verdana" size="2">Recuerde que esta oferta es valida 
por solo</font><font face="Verdana" size="2" color="#FF0000"> 
48 horas.</font></p>

<hr>
<p align="justify" style="margin-top: 0; margin-bottom: 0">
<font size="1" face="Verdana" color="black">?????????????????????????????????????????????????? Este mensaje fue enviado 
porque usted se ha inscripto a la lista de ofertas para el consumidor<br>
???????????????????????????????????????????????????????????????????? Si ud 
no desea recibir mas envios de mail por favor haga click<font color="#000000"> 
abajo.</font></font></p>
<p align="justify" style="margin-top: 0; margin-bottom: 0">
<font size="1" face="Verdana" color="black">
?????????????????????????????????????????????????????????????????????????????????????????????????????? </font></p>
<p align="justify" style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" size="1">?????????????????????????????????????????????????????????????????????????????????????????????????????????? </font><b><a href="mailto:unsubscribe at horizontes dot us" style="text-decoration: none"><font size="1" face="Verdana">Unsubscribe</font></a></a></b><font color="black"></p>
<p align="center">
<font size="1" face="Verdana">??????????????????????????????????????????????????????????????????????? </font></p>
</font>
<p align="center">?</p>

</body>

</html>



<div class="moz-text-flowed" style="font-family: -moz-fixed">Hello all,

I have been doing some research and can't come up with any information 
on how to print from the command line as you would in Unix/Linux.  I 
can't find lp, lpr or anything resembling these commands.  I have 
looked at pr but it doesn't indicate that it sends output to the 
printer.  All I understand it does is prepare a file to be printed.

The next question would be how do I set up the printer I want to print 
to.  The printer is a HP LaserJet 5000 and on our local network.

My ultimate goal is to print from emacs but I figured the first step 
would be to print from the command line since emacs probably will use 
the lp command.

Any documents or information you can point me to would be greatly 
appreciated.


Thanks,

Robert Pollard

</div>On Thu, Apr 10, 2003 at 09:48:54AM -0700, Robert Pollard wrote:
> Hello all,
> 
> I have been doing some research and can't come up with any information 
> on how to print from the command line as you would in Unix/Linux.  I 
> can't find lp, lpr or anything resembling these commands.  I have 
> looked at pr but it doesn't indicate that it sends output to the 
> printer.  All I understand it does is prepare a file to be printed.
> 
> The next question would be how do I set up the printer I want to print 
> to.  The printer is a HP LaserJet 5000 and on our local network.
> 
> My ultimate goal is to print from emacs but I figured the first step 
> would be to print from the command line since emacs probably will use 
> the lp command.
> 
> Any documents or information you can point me to would be greatly 
> appreciated.

This problem and the solution has been discussed on the list several
times. Please check the archives.
 
Gruss Olaf Föllinger

-- 
Olaf Föllinger
Berater 
S.E.S.A. Software und Systeme AG

Alt-Moabit 91a
D-10559 Berlin
Germany
Tel:   +49 30 390722 -291
Fax:   +49 30 390722 -222
Mobil: +49 173 6227080
http://www.sesa.de
mailto: Olaf dot Foellinger at sesa dot de
Randall R Schulz <rrschulz at cris dot com> wrote:
> Hannu,

> At 15:15 2003-04-09, you wrote:

>> --- HTML contents snipped ---
>>
>>   May I ask those of you who insist in posting in HTML format to reconsider!

 It is 
> the lingua franca of the worldwide web

Yes. Let it stay there.

 and it is widely supported by 
> GUI mail and news clients.

Does that mean that we should all post in jpegs since we could then achieve
exactly the same thing?

 Personal communications must extend beyond 
> simple text without stylistic variation for computers to fully 
> facilitate human communication.

Post your proof.

People have been using plain text to communicate quite satisfactorily, thank
you very much.

>>     c) Attached images add an unnecessary burden on email downloads

> Burden? On whom?

On every single person that receives it. That much must be obvious, or are
you being deliberately obtuse?

 If the poster feels the need to communicate visually, 
> then it is their prerogative.

Just as it would be my perogative to ignore it or bounce it.

>> Offending software:
>>   AFAIK only MICROSOFT Outlook and  Outlook Express has this enabled by
>> default; SHAME ON YOU M.S!

> Again, this is BS. I use Eudora for mail and Mozilla (and before it 
> Netscape) for news, and they all send HTML mail and images without a 
> problem.

By default?

> Please don't be so atavistic. By definition everyone using Cygwin is 
> using an operating system whose GUI subsystem is not optional.

Whereas html /is/ optional.
<div class="moz-text-flowed" style="font-family: -moz-fixed">GARYDJONES,


At 08:39 2003-04-10, you wrote:
>Randall R Schulz <rrschulz at cris dot com> wrote:
> > Hannu,
>
> > At 15:15 2003-04-09, you wrote:
>
> >> --- HTML contents snipped ---
> >>
> >>   May I ask those of you who insist in posting in HTML format to 
> reconsider!
>
> > It is the lingua franca of the worldwide web
>
>Yes. Let it stay there.
>
> > and it is widely supported by GUI mail and news clients.
>
>Does that mean that we should all post in jpegs since we could then 
>achieve exactly the same thing?

That is a strawman argument and false in its own right.


> > Personal communications must extend beyond
> > simple text without stylistic variation for computers to fully
> > facilitate human communication.
>
>Post your proof.

Ipso loquitur. People communicate audibly, visually as well as 
textually. Arbitrary restriction to styleless text is artificial and 
unjustified.


>People have been using plain text to communicate quite satisfactorily, thank
>you very much.
>
> >>     c) Attached images add an unnecessary burden on email downloads
>
> > Burden? On whom?
>
>On every single person that receives it. That much must be obvious, or are
>you being deliberately obtuse?

Let me rephrase: _What_ burden? There is no burden.


> > If the poster feels the need to communicate visually,
> > then it is their prerogative.
>
>Just as it would be my perogative to ignore it or bounce it.

Yes, you may plug your ears and cover you eyes all you want. No one 
loses but you.


> >> Offending software:
> >>   AFAIK only MICROSOFT Outlook and  Outlook Express has this enabled by
> >> default; SHAME ON YOU M.S!
>
> > Again, this is BS. I use Eudora for mail and Mozilla (and before it
> > Netscape) for news, and they all send HTML mail and images without a
> > problem.
>
>By default?

Yes.


> > Please don't be so atavistic. By definition everyone using Cygwin is
> > using an operating system whose GUI subsystem is not optional.
>
>Whereas html /is/ optional.

So are lower-case letters.


Randall Schulz 

</div>--=_IS_MIME_Boundary
Content-Type: text/plain

Hello,

I've installed latest cygwin on my Win2000 using regular NT-user account (I have no administrator privileges) and I've got warning when starting cygwin:
"id: cannot find name for user ID 20479"
and I have next default prompt in bash:
"I have no name!@<my machine name> ~"
i.e. cygwin cannot determine my user name...

Related problem - I can not use scp command - it fails with message:
"unknown user 20479"

next example:
$ whoami
whoami: cannot find username for UID 20479

Does anybody know how to setup cygwin so it can distinguish my username?

Might be it LDAP-related problem?

Thanks in advance.
--=_IS_MIME_Boundary
Content-Type: text/plain;charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------------------

The information contained in this message is proprietary of Amdocs,

protected from disclosure, and may be privileged.

The information is intended to be conveyed only to the designated recipient(s)

of the message. If the reader of this message is not the intended recipient,

you are hereby notified that any dissemination, use, distribution or copying of 

this communication is strictly prohibited and may be unlawful. 

If you have received this communication in error, please notify us immediately

by replying to the message and deleting it from your computer.

Thank you.

-------------------------------------------------------------------------------------

--=_IS_MIME_Boundary--
--=_IS_MIME_Boundary
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0004_01C2FF5B.5E820000"

This is a multi-part message in MIME format.

------=_NextPart_000_0004_01C2FF5B.5E820000
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: 7bit

Hello,

I've installed latest cygwin on my Win2000 using regular NT-user account
(I have no administrator privileges) and I've got warning when starting
cygwin:
"id: cannot find name for user ID 20479"
and I have next default prompt in bash:
"I have no name!@<my machine name> ~"
i.e. cygwin cannot determine my user name...

Related problem - I can not use scp command - it fails with message:
"unknown user 20479"

next example:
$ whoami
whoami: cannot find username for UID 20479

Does anybody know how to setup cygwin so it can distinguish my username?

Might be it LDAP-related problem?

Thanks in advance.


------=_NextPart_000_0004_01C2FF5B.5E820000
Content-Type: text/html;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.0.4630.0">
<TITLE>&quot;unknown user&quot; problem</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=3D2 FACE=3D"Courier New">Hello,</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Courier New">I've installed latest cygwin on =
my Win2000 using regular NT-user account (I have no administrator =
privileges) and I've got warning when starting cygwin:</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Courier New">&quot;id: cannot find name for =
user ID 20479&quot;</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier New">and I have next default prompt =
in bash:</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier New">&quot;I have no name!@&lt;my =
machine name&gt; ~&quot;</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier New">i.e. cygwin cannot determine my =
user name...</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Courier New">Related problem - I can not use =
scp command - it fails with message: &quot;unknown user =
20479&quot;</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Courier New">next example:</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier New">$ whoami</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier New">whoami: cannot find username for =
UID 20479</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Courier New">Does anybody know how to setup =
cygwin so it can distinguish my username?</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Courier New">Might be it LDAP-related =
problem?</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Courier New">Thanks in advance.</FONT>
</P>

</BODY>
</HTML>
------=_NextPart_000_0004_01C2FF5B.5E820000--

--=_IS_MIME_Boundary
Content-Type: text/plain;charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------------------

The information contained in this message is proprietary of Amdocs,

protected from disclosure, and may be privileged.

The information is intended to be conveyed only to the designated recipient(s)

of the message. If the reader of this message is not the intended recipient,

you are hereby notified that any dissemination, use, distribution or copying of 

this communication is strictly prohibited and may be unlawful. 

If you have received this communication in error, please notify us immediately

by replying to the message and deleting it from your computer.

Thank you.

-------------------------------------------------------------------------------------

--=_IS_MIME_Boundary--
On Thu, 10 Apr 2003, Dmitriy Kargapolov wrote:

> Hello,
>
> I've installed latest cygwin on my Win2000 using regular NT-user account
> (I have no administrator privileges) and I've got warning when starting
> cygwin:
> "id: cannot find name for user ID 20479"
> and I have next default prompt in bash:
> "I have no name!@<my machine name> ~"
> i.e. cygwin cannot determine my user name...
>
> Related problem - I can not use scp command - it fails with message:
> "unknown user 20479"
>
> next example:
> $ whoami
> whoami: cannot find username for UID 20479
>
> Does anybody know how to setup cygwin so it can distinguish my username?
>
> Might be it LDAP-related problem?
>
> Thanks in advance.

Dmitriy,

Looks like your /etc/passwd is not up to date (and probably /etc/group as
well).  Is your user a domain user by any chance?  If so, read
<http://cygwin.com/cygwin-ug-net/using-utils.html#MKPASSWD> for the usage
of the -d option.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha at cs dot nyu dot edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor at watson dot ibm dot com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]