Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* compile error
@ 1996-10-22 17:38 Eric Jones
  1996-10-22 18:15 ` Richard Henderson
  0 siblings, 1 reply; 9+ messages in thread
From: Eric Jones @ 1996-10-22 17:38 UTC (permalink / raw)


I was wondering if anyone has seen the following compile error:
/usr/include/stdio.h:152: previous declaration of 'dprintf'

  Any ideas?

 Eric.

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: compile error
  1996-10-22 17:38 compile error Eric Jones
@ 1996-10-22 18:15 ` Richard Henderson
  0 siblings, 0 replies; 9+ messages in thread
From: Richard Henderson @ 1996-10-22 18:15 UTC (permalink / raw)


>   I was wondering if anyone has seen the following compile error:
> /usr/include/stdio.h:152: previous declaration of 'dprintf'

Sure.  It means your program is providing a declaration of dprintf
that conflicts with the one in <stdio.h>.  

They almost certainly differ on the const-ness of the second argument.

The correct solution in my view is to remove the declaration from 
your program.  If programs think they help things by providing
declarations that are missing from some system, I'll guarantee
it'll be wrong for another system.

r~

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: compile error
@ 1996-10-22 18:58 David Mosberger
  0 siblings, 0 replies; 9+ messages in thread
From: David Mosberger @ 1996-10-22 18:58 UTC (permalink / raw)


Gotta be careful with dprintf though.  It's often used as a "debug-printf".
The libc implementation of dprintf does something completely different
(print to a filedescriptor, if memory serves).  For such conflicts, I usually
do a global string replace of dprintf with Dprintf in the offending program.

	--david

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Compile error
@ 1998-05-14 17:25 JOHN PRICE
  1998-05-17  3:09 ` Steven N. Hirsch
  2018-05-14 14:04 ` ian
  0 siblings, 2 replies; 9+ messages in thread
From: JOHN PRICE @ 1998-05-14 17:25 UTC (permalink / raw)
  To: 'axp-list@redhat.com'

Trying to compile 2.1.101 on UDB.  Getting errors:

init/main.o: In function `checksetup':
main.c(.text+0x21c): undefined reference to `__builtin_memset'

...a bunch of them...


Why?  How do I fix it?

Thanx,
John



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Compile error
  2018-05-14 14:04 ` ian
@ 1998-05-15  0:28   ` Stefan Reinauer
  1998-05-17  3:10   ` Steven N. Hirsch
  1 sibling, 0 replies; 9+ messages in thread
From: Stefan Reinauer @ 1998-05-15  0:28 UTC (permalink / raw)
  To: axp-list

-----BEGIN PGP SIGNED MESSAGE-----


On 14-May-18 ian@proxima.simplecom.net wrote:
> 
> We _need_ an autoresponder. :)
> 
> Ian
> 

[..] (often asked questions)


Hi,

another idea is to set up a web page with all often asked questions and their
answers. What do you think about this? I could set up such a page here, if
anyone wants it.

Stefan.


- --
21x64 - What else?

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv

iQEUAwUBNVuMLyu+zKndEmP5AQETGwf4/GRoiUomY48C7inL9bhDCusYM6LdwGVH
LLMRartQ7GmwxPJoICWDlBjP6nTpY70QLvKawhEJx0ApqhI95llxOtIiv5b1AaHh
w8VJKnbDRX/DXYRWrQQ5esYFIfnlI6xxPeKo01EvnLm8yq8PocRhOj+17oOU7cE9
M++juyjD/xMhG561oYcU1wjnIHVr8+xV9yLDRoHLWKVwzcZtM7dZq+E9pZHjnKpZ
/Sb+nZ0jTwSIeEKNaWDhPYbJa9rlbioBPofatd5fGUOsuXM1JI9bueWDh2Kka8oS
7Gq+gh6PjbRZFDlpQo+1tmcKZTLUB9kuhzx6CawhQZztKyo/4zBz
=xcog
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Compile error
  1998-05-14 17:25 Compile error JOHN PRICE
@ 1998-05-17  3:09 ` Steven N. Hirsch
  2018-05-14 14:04 ` ian
  1 sibling, 0 replies; 9+ messages in thread
From: Steven N. Hirsch @ 1998-05-17  3:09 UTC (permalink / raw)
  To: axp-list



On Thu, 14 May 1998, JOHN PRICE wrote:

> Trying to compile 2.1.101 on UDB.  Getting errors:
> 
> init/main.o: In function `checksetup':
> main.c(.text+0x21c): undefined reference to `__builtin_memset'
> 
> ...a bunch of them...
> 
> 
> Why?  How do I fix it?
> 
> Thanx,
> John

I have no idea why this is still broken, but:

--- linux/include/asm-alpha/string.h.orig	Fri Apr 10 06:25:33 1998
+++ linux/include/asm-alpha/string.h	Thu Apr  9 19:28:23 1998
@@ -24,7 +24,8 @@
 extern void * __constant_c_memset(void *, unsigned long, long);
 extern void * __memset(void *, char, size_t);
 
-#if __GNUC__ > 2 || __GNUC_MINOR__ >= 8
+/* #if __GNUC__ > 2 || __GNUC_MINOR__ >= 8 */
+#if 0
 #define memset(s, c, n)							    \
 (__builtin_constant_p(c)						    \
  ? (__builtin_constant_p(n) && (c) == 0					    \



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Compile error
  2018-05-14 14:04 ` ian
  1998-05-15  0:28   ` Stefan Reinauer
@ 1998-05-17  3:10   ` Steven N. Hirsch
  2018-05-17  2:13     ` ian
  1 sibling, 1 reply; 9+ messages in thread
From: Steven N. Hirsch @ 1998-05-17  3:10 UTC (permalink / raw)
  To: ian; +Cc: 'axp-list@redhat.com'



On Mon, 14 May 2018 ian@proxima.simplecom.net wrote:

> 
> We _need_ an autoresponder. :)
> 
> Ian
> 

No, actually this problem needs to be fixed.  It's broken with each and
every version of gcc, egcs, etc. save for the latest cutting-edge
development version.

Steve





> On Thu, 14 May 1998, JOHN PRICE wrote:
> 
> > Trying to compile 2.1.101 on UDB.  Getting errors:
> > 
> > init/main.o: In function `checksetup':
> > main.c(.text+0x21c): undefined reference to `__builtin_memset'
> > 
> > ...a bunch of them...
> > 
> > 
> > Why?  How do I fix it?
> > 
> > Thanx,
> > John
> > 
> > 
> > -- 
> > To unsubscribe: send e-mail to axp-list-request@redhat.com with
> > 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
> > 
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
> 
> 
> 


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Compile error
  1998-05-14 17:25 Compile error JOHN PRICE
  1998-05-17  3:09 ` Steven N. Hirsch
@ 2018-05-14 14:04 ` ian
  1998-05-15  0:28   ` Stefan Reinauer
  1998-05-17  3:10   ` Steven N. Hirsch
  1 sibling, 2 replies; 9+ messages in thread
From: ian @ 2018-05-14 14:04 UTC (permalink / raw)
  To: 'axp-list@redhat.com'


We _need_ an autoresponder. :)

Ian

On Thu, 14 May 1998, JOHN PRICE wrote:

> Trying to compile 2.1.101 on UDB.  Getting errors:
> 
> init/main.o: In function `checksetup':
> main.c(.text+0x21c): undefined reference to `__builtin_memset'
> 
> ...a bunch of them...
> 
> 
> Why?  How do I fix it?
> 
> Thanx,
> John
> 
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
> 


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Compile error
  1998-05-17  3:10   ` Steven N. Hirsch
@ 2018-05-17  2:13     ` ian
  0 siblings, 0 replies; 9+ messages in thread
From: ian @ 2018-05-17  2:13 UTC (permalink / raw)
  To: Steven N. Hirsch; +Cc: 'axp-list@redhat.com'


On Sat, 16 May 1998, Steven N. Hirsch wrote:

> No, actually this problem needs to be fixed.  It's broken with each and
> every version of gcc, egcs, etc. save for the latest cutting-edge
> development version.

I agree that it needs to be fixed. I personally have better things to do
than edit my kernel source (Makefile bash incompatibility, string.h) every
time I download a new kernel. The __builtin_memset problem -- it is a
problem with gcc and egcs, or is the source code using a feature that
unsupported? Also, who are the people that can make these changes? I have
waited for a fix since 2.1.96 and the two problems still exist.

Ian



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~1998-05-17  6:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-10-22 18:58 compile error David Mosberger
  -- strict thread matches above, loose matches on Subject: below --
1998-05-14 17:25 Compile error JOHN PRICE
1998-05-17  3:09 ` Steven N. Hirsch
2018-05-14 14:04 ` ian
1998-05-15  0:28   ` Stefan Reinauer
1998-05-17  3:10   ` Steven N. Hirsch
2018-05-17  2:13     ` ian
1996-10-22 17:38 compile error Eric Jones
1996-10-22 18:15 ` Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox