ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] Strange Problem in building a package...


From: Stuart Hughes
Subject: Re: [Ltib] Strange Problem in building a package...
Date: Mon, 16 Mar 2009 09:01:51 +0000

Hi Tom,

The file failing is using the build machine's compiler, so it may be
that switching to a newer distro has changed this environment.  You may
have this kind of problem: 
http://gcc.gnu.org/ml/libstdc++/2002-11/msg00166.html

Make sure that the failing source file is including unistd.h

What may be happening is the configure (run spoofed) is inferring an
incorrect setup for the files built for the build machine.

Regards, Stuart

On Sat, 2009-03-14 at 13:10 -0400, Morrison, Tom wrote:
> Hi Everyone (and Stuart)…
> 
>  
> 
> I have a very strange problem that has just arisen, and perhaps
> somebody can steer me
> 
> in the right direction towards figuring out why this happening (and
> how to fix it)…
> 
>  
> 
> Anyways, I have an LTIB package (iiiasn1.spec) that I have built many
> times (on an old
> 
> workstation (Fedora 6)), but now I am using a Suse 10.1 system, and I
> am getting 
> 
> a very strange error in attempting to build this specific package (and
> a ton of packages
> 
> built correctly before this one gets built)…
> 
>  
> 
> The worst part is that I should know this nuance to be able to track
> down this problem
> 
> with potential Cross Compiler problem – but this is so simple, it
> baffles me)?
> 
>  
> 
> Here is the error
> 
>  
> 
> make[1]: Entering directory
> `/home/tmorrison/ltib/ltib-mpc8548cds-20061205/rpm/BUILD/iiiasn1-2_12'
> 
> Making all in asnparser
> 
> make[2]: Entering directory
> `/home/tmorrison/ltib/ltib-mpc8548cds-20061205/rpm/BUILD/iiiasn1-2_12/asnparser'
> 
> /usr/bin/gcc -B/usr/bin// -DHAVE_CONFIG_H -I. -I. -I.. -pipe -DNDEBUG
> -g -O2 -o asn_lex.o -c asn_lex.cxx
> 
> asn_lex.l: In function `int IsUpper(const char*)':
> 
> asn_lex.l:87: warning: NULL used in arithmetic
> 
> <stdout>: In function `void yy_init_buffer(yy_buffer_state*, FILE*)':
> 
> <stdout>:2607: error: `isatty' undeclared (first use this function)
> 
> <stdout>:2607: error: (Each undeclared identifier is reported only
> once for
> 
>    each function it appears in.)
> 
> make[2]: *** [asn_lex.o] Error 1
> 
> make[2]: Leaving directory
> `/home/tmorrison/ltib/ltib-mpc8548cds-20061205/rpm/BUILD/iiiasn1-2_12/asnparser'
> 
> make[1]: *** [all-recursive] Error 1
> 
> make[1]: Leaving directory
> `/home/tmorrison/ltib/ltib-mpc8548cds-20061205/rpm/BUILD/iiiasn1-2_12'
> 
> make: *** [all] Error 2
> 
> error: Bad exit status
> from /home/tmorrison/ltib/ltib-mpc8548cds-20061205/tmp/rpm-tmp.53600
> (%build)
> 
>  
> 
> I thought that *isatty* is a standard gcc and I include both unistd.h
> in this function, but still NO go?
> 
> In other packages built before this – there are a ton of ‘isatty()’
> that are used?
> 
>  
> 
> I am a little out of my league when it comes to this nuance (of the
> indirection to the Cross Compiler…etc)…
> 
>  
> 
> Any and all help would be appreciated!
> 
> Tom Morrison
> Principal Software Engineer
> 
> EMPIRIX 
> 20 Crosby Drive - Bedford, MA  01730
> p: 781.266.3567 f: 781.266.3670 
> email: address@hidden 
> www.empirix.com
> 
> 
> 
> 
>  
> 
> 
> _______________________________________________
> LTIB home page: http://bitshrine.org
> 
> Ltib mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/ltib





reply via email to

[Prev in Thread] Current Thread [Next in Thread]