Peter Barada | 30 Jun 14:25 2015

Re: Can't build DHCP on 14.04



On 06/29/2015 09:04 AM, Chris Westervelt wrote:
<!-- /* Font Definitions */ <at> font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} <at> font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} <at> font-face {font-family:Consolas; panose-1:2 11 6 9 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:11.0pt; font-family:"Calibri","sans-serif"; color:black;} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} pre {mso-style-priority:99; mso-style-link:"HTML Preformatted Char"; margin:0in; margin-bottom:.0001pt; font-size:10.0pt; font-family:"Courier New"; color:black;} span.EmailStyle17 {mso-style-type:personal; font-family:"Calibri","sans-serif"; color:windowtext;} span.HTMLPreformattedChar {mso-style-name:"HTML Preformatted Char"; mso-style-priority:99; mso-style-link:"HTML Preformatted"; font-family:Consolas; color:black;} span.EmailStyle20 {mso-style-type:personal-reply; font-family:"Calibri","sans-serif"; color:#1F497D;} .MsoChpDefault {mso-style-type:export-only; font-size:10.0pt;} <at> page WordSection1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in;} div.WordSection1 {page:WordSection1;} -->

Peter,

 

Sorry to respond to you outside of the server.  I figured I would just attach these two short text files for the output you requested.  I work from an older cvs get from about 2010 but I have pulled the latest from the cvs with the netinstall.pl script and the same error occurs when building dhcp. I have no problem with 10.04 Ubuntu. 

Hmm, the bld log doesn't indicate anything wrong.  When I run it I see:

Executing(%build): /bin/sh -e /home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0/tmp/rpm-tmp.34776
+ umask 022
+ cd /home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0/rpm/BUILD
+ cd dhcp-3.0.3b1
+ ./configure
System Type: linux-3
make[1]: Entering directory `/home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0/rpm/BUILD/dhcp-3.0.3b1/work.linux-3'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
Making links in common
make[2]: Entering directory `/home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0/rpm/BUILD/dhcp-3.0.3b1/work.linux-3/common'
make[2]: Leaving directory `/home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0/rpm/BUILD/dhcp-3.0.3b1/work.linux-3/common'
Making links in minires
...

Digging into things more I noticed I created a patch for linux-3.0 systems that is attached.  Try adding that patch into your dhcp package and see if it helps. (you'll need to re-unpack the dhcp package source to incorporate the new patch after modifying your dhcp.spec file).

Wonder why you don't see at least the dump of what the .spec file %build section is attempting to run. Ignoring that, modify rpm/BUILD/dhcp/configure and add "set -x" at the top to tell the shell configure is running in to show its commands; useful to show the control flow and variable assignments.  When I run it here (with the attached patch) I see the following.  Compare it to your patched source output and see if/where they diverge.  Of course directory names will be different.

+ cd /home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0/rpm/BUILD + cd dhcp-3.0.3b1 + ./configure + '[' 0 '!=' 0 ']' ++ uname -s + uname=Linux ++ uname -m + machine=x86_64 + '[' '' = '' ']' + case $uname in ++ uname -r + release=3.13.0-55-generic ++ echo 3.13.0-55-generic ++ sed -e 's/[0-9]*\.\([0-9][0-9]*\)\(\..*\)*$/\1/' + minor=13 ++ echo 3.13.0-55-generic ++ sed -e 's/\([0-9][0-9]*\)\..*$/\1/' + major=3 + case $major in + sysname=linux-3 + '[' linux-3 = '' ']' + '[' x = xyes ']' + '[' x = x ']' + '[' x '!=' x ']' + workname=work.linux-3 + echo 'System Type: linux-3' System Type: linux-3 + '[' x3 '!=' x ']' + '[' x13 '!=' x ']' + majversubst='-e /^##--majver--/,/^##--majver--/s/MajorVersion/3/' + minversubst='-e /^##--minver--/,/^##--minver--/s/MinorVersion/13/' + '[' '!' -d work.linux-3 ']' + '[' x = x ']' + dirs='. client server relay common omapip dhcpctl minires dst' + for foo in '$dirs' ++ basename . + bar=. + '[' '!' -d work.linux-3/. ']' + sed -e '/^##--majver--/,/^##--majver--/s/MajorVersion/3/' -e '/^##--minver--/,/^##--minver--/s/MinorVersion/13/' -e '/^##--linux-3--/,/^##--linux-3--/s/^#//' + cat site.conf ++ pwd + echo 'TOP = /home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0/rpm/BUILD/dhcp-3.0.3b1' + echo CC_OPTIONS = + cat ./Makefile.dist + for foo in '$dirs' ++ basename client + bar=client + '[' '!' -d work.linux-3/client ']' + sed -e '/^##--majver--/,/^##--majver--/s/MajorVersion/3/' -e '/^##--minver--/,/^##--minver--/s/MinorVersion/13/' -e '/^##--linux-3--/,/^##--linux-3--/s/^#//' + cat site.conf ++ pwd + echo 'TOP = /home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0/rpm/BUILD/dhcp-3.0.3b1' + echo CC_OPTIONS = + cat client/Makefile.dist + for foo in '$dirs' ++ basename server + bar=server + '[' '!' -d work.linux-3/server ']' + sed -e '/^##--majver--/,/^##--majver--/s/MajorVersion/3/' -e '/^##--minver--/,/^##--minver--/s/MinorVersion/13/' -e '/^##--linux-3--/,/^##--linux-3--/s/^#//' + cat site.conf ++ pwd + echo 'TOP = /home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0/rpm/BUILD/dhcp-3.0.3b1' + echo CC_OPTIONS = + cat server/Makefile.dist + for foo in '$dirs' ++ basename relay + bar=relay + '[' '!' -d work.linux-3/relay ']' + sed -e '/^##--majver--/,/^##--majver--/s/MajorVersion/3/' -e '/^##--minver--/,/^##--minver--/s/MinorVersion/13/' -e '/^##--linux-3--/,/^##--linux-3--/s/^#//' + cat site.conf ++ pwd + echo 'TOP = /home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0/rpm/BUILD/dhcp-3.0.3b1' + echo CC_OPTIONS = + cat relay/Makefile.dist + for foo in '$dirs' ++ basename common + bar=common + '[' '!' -d work.linux-3/common ']' + sed -e '/^##--majver--/,/^##--majver--/s/MajorVersion/3/' -e '/^##--minver--/,/^##--minver--/s/MinorVersion/13/' -e '/^##--linux-3--/,/^##--linux-3--/s/^#//' + cat site.conf ++ pwd + echo 'TOP = /home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0/rpm/BUILD/dhcp-3.0.3b1' + echo CC_OPTIONS = + cat common/Makefile.dist + for foo in '$dirs' ++ basename omapip + bar=omapip + '[' '!' -d work.linux-3/omapip ']' + sed -e '/^##--majver--/,/^##--majver--/s/MajorVersion/3/' -e '/^##--minver--/,/^##--minver--/s/MinorVersion/13/' -e '/^##--linux-3--/,/^##--linux-3--/s/^#//' + cat site.conf ++ pwd + echo 'TOP = /home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0/rpm/BUILD/dhcp-3.0.3b1' + echo CC_OPTIONS = + cat omapip/Makefile.dist + for foo in '$dirs' ++ basename dhcpctl + bar=dhcpctl + '[' '!' -d work.linux-3/dhcpctl ']' + sed -e '/^##--majver--/,/^##--majver--/s/MajorVersion/3/' -e '/^##--minver--/,/^##--minver--/s/MinorVersion/13/' -e '/^##--linux-3--/,/^##--linux-3--/s/^#//' + cat site.conf ++ pwd + echo 'TOP = /home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0/rpm/BUILD/dhcp-3.0.3b1' + echo CC_OPTIONS = + cat dhcpctl/Makefile.dist + for foo in '$dirs' ++ basename minires + bar=minires + '[' '!' -d work.linux-3/minires ']' + sed -e '/^##--majver--/,/^##--majver--/s/MajorVersion/3/' -e '/^##--minver--/,/^##--minver--/s/MinorVersion/13/' -e '/^##--linux-3--/,/^##--linux-3--/s/^#//' + cat site.conf ++ pwd + echo 'TOP = /home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0/rpm/BUILD/dhcp-3.0.3b1' + echo CC_OPTIONS = + cat minires/Makefile.dist + for foo in '$dirs' ++ basename dst + bar=dst + '[' '!' -d work.linux-3/dst ']' + sed -e '/^##--majver--/,/^##--majver--/s/MajorVersion/3/' -e '/^##--minver--/,/^##--minver--/s/MinorVersion/13/' -e '/^##--linux-3--/,/^##--linux-3--/s/^#//' + cat site.conf ++ pwd + echo 'TOP = /home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0/rpm/BUILD/dhcp-3.0.3b1' + echo CC_OPTIONS = + cat dst/Makefile.dist + '[' x = x ']' + make links + '[' 1 '!=' 0 ']' + '[' x--print-sysname = x--with-nsupdate ']' + '[' x--print-sysname = x--print-sysname ']' + print_sysname=yes + shift + '[' 0 '!=' 0 ']' ++ uname -s + uname=Linux ++ uname -m + machine=x86_64 + '[' '' = '' ']' + case $uname in ++ uname -r + release=3.13.0-55-generic ++ echo 3.13.0-55-generic ++ sed -e 's/[0-9]*\.\([0-9][0-9]*\)\(\..*\)*$/\1/' + minor=13 ++ echo 3.13.0-55-generic ++ sed -e 's/\([0-9][0-9]*\)\..*$/\1/' + major=3 + case $major in + sysname=linux-3 + '[' linux-3 = '' ']' + '[' xyes = xyes ']' + '[' x '!=' x ']' + echo linux-3 + exit 0

 

From: ltib-bounces+chris.westervelt=infrasafe.com <at> nongnu.org [mailto:ltib-bounces+chris.westervelt=infrasafe.com <at> nongnu.org] On Behalf Of Peter Barada
Sent: Sunday, June 28, 2015 9:59 AM
To: ltib <at> nongnu.org
Subject: Re: [Ltib] Can't build DHCP on 14.04

 

 

On 06/26/2015 11:19 AM, Chris Westervelt wrote:

Ok hoping someone out there in LTIB land has punched through building DHCP on 14.04 32/64 bit.  I keep getting two errors one of which I have been able to overcome for system type by including ‘Linux’ to the .spec file ./configure line as a pass argument but another  (so far insurmountable) error comes

 

cannot create regular file '/home/advantor/IGII/v1.2/tmp/dhcp//opt/freescale/rootfs/arm/etc/': No such file or directory

I've had no problem building/installing dhcp-3.0.3b1 on Ubuntu 14.04.2 LTS.  What do you mean by "including 'linux' to the .spec file .configure line as a pass argument"?  What was the original probelm you ran into building dhcp?  What other modifications have you made to LTIB?  Where did your LTIB come from?

And - got a log showing the output?  do "./ltib -p dhcp -m prep", and then capture output of "./ltib -p dhcp" (so we see the %build and %install parts) - put it in pastebin or somewhere and send the list an accessible URL to it (to save space on the email list).  Without it can only guess what's gone wrong.

 

Chris Westervelt

Senior Product Development Engineer

Advantor Systems.
12612 Challenger Pkwy
Suite 300
Orlando, FL
32826

http://www.advantor.com
Office:   (407) 926-6983

Mobile: (407) 595-7023       
Fax:    (407) 857-1635

Notice of Confidentiality:
This e-mail communication and the attachments hereto, if any, are intended solely for the information and use of the addressee(s) identified above and may contain information which is legally privileged and/or otherwise confidential. If a recipient of this e-mail communication is not an addressee (or an authorized representative of an addressee), such recipient is hereby advised that any review, disclosure, reproduction, re-transmission or other dissemination or use of this e-mail communication (or any information contained herein) is strictly prohibited. If you are not an addressee and have received this e-mail communication in error, please advise the sender of that circumstance either by reply e-mail or by telephone at (800) 238-2686, immediately delete this e-mail communication from any computer and destroy all physical copies of same.

 




_______________________________________________

LTIB home page: http://ltib.org

 

Ltib mailing list

Ltib <at> nongnu.org

https://lists.nongnu.org/mailman/listinfo/ltib

 


<div>
<br><br><div class="moz-cite-prefix">On 06/29/2015 09:04 AM, Chris Westervelt wrote:<br>
</div>
<blockquote cite="mid:37379F3F8CB45647A422DBB771807245B14C2D <at> AUSP01DAG0509.collaborationhost.net" type="cite">
&lt;!--
/* Font Definitions */
 <at> font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
 <at> font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 <at> font-face
	{font-family:Consolas;
	panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";
	color:black;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
pre
	{mso-style-priority:99;
	mso-style-link:"HTML Preformatted Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";
	color:black;}
span.EmailStyle17
	{mso-style-type:personal;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
span.HTMLPreformattedChar
	{mso-style-name:"HTML Preformatted Char";
	mso-style-priority:99;
	mso-style-link:"HTML Preformatted";
	font-family:Consolas;
	color:black;}
span.EmailStyle20
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
 <at> page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--&gt;<div class="WordSection1">
<p class="MsoNormal"><span>Peter,<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>Sorry to respond to you outside of the server.&nbsp; I figured I would just attach these two short text files for the output you requested.&nbsp; I work from an older cvs get from about 2010 but I have pulled the latest
 from the cvs with the netinstall.pl script and the same error occurs when building dhcp. I have no problem with 10.04 Ubuntu.&nbsp;
</span></p>
</div>
</blockquote>
Hmm, the bld log doesn't indicate anything wrong.&nbsp; When I run it I see:<br><br>Executing(%build): /bin/sh -e /home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0/tmp/rpm-tmp.34776<br>+ umask 022<br>+ cd /home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0/rpm/BUILD<br>+ cd dhcp-3.0.3b1<br>+ ./configure<br>System Type: linux-3<br>make[1]: Entering directory `/home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0/rpm/BUILD/dhcp-3.0.3b1/work.linux-3'<br>make[1]: warning: jobserver unavailable: using -j1.&nbsp; Add `+' to parent make rule.<br>Making links in common<br>make[2]: Entering directory `/home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0/rpm/BUILD/dhcp-3.0.3b1/work.linux-3/common'<br>make[2]: Leaving directory `/home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0/rpm/BUILD/dhcp-3.0.3b1/work.linux-3/common'<br>Making links in minires<br>
...<br><br>
Digging into things more I noticed I created a patch for linux-3.0 systems that is attached.&nbsp; Try adding that patch into your dhcp package and see if it helps. (you'll need to re-unpack the dhcp package source to incorporate the new patch after modifying your
 dhcp.spec file).<br><br>
Wonder why you don't see at least the dump of what the .spec file %build section is attempting to run. Ignoring that, modify rpm/BUILD/dhcp/configure and add "set -x" at the top to tell the shell configure is running in to show its commands; useful to show
 the control flow and variable assignments.&nbsp; When I run it here (with the attached patch) I see the following.&nbsp; Compare it to your patched source output and see if/where they diverge.&nbsp; Of course directory names will be different.<br><br>+ cd /home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0/rpm/BUILD
+ cd dhcp-3.0.3b1
+ ./configure
+ '[' 0 '!=' 0 ']'
++ uname -s
+ uname=Linux
++ uname -m
+ machine=x86_64
+ '[' '' = '' ']'
+ case $uname in
++ uname -r
+ release=3.13.0-55-generic
++ echo 3.13.0-55-generic
++ sed -e 's/[0-9]*\.\([0-9][0-9]*\)\(\..*\)*$/\1/'
+ minor=13
++ echo 3.13.0-55-generic
++ sed -e 's/\([0-9][0-9]*\)\..*$/\1/'
+ major=3
+ case $major in
+ sysname=linux-3
+ '[' linux-3 = '' ']'
+ '[' x = xyes ']'
+ '[' x = x ']'
+ '[' x '!=' x ']'
+ workname=work.linux-3
+ echo 'System Type: linux-3'
System Type: linux-3
+ '[' x3 '!=' x ']'
+ '[' x13 '!=' x ']'
+ majversubst='-e /^##--majver--/,/^##--majver--/s/MajorVersion/3/'
+ minversubst='-e /^##--minver--/,/^##--minver--/s/MinorVersion/13/'
+ '[' '!' -d work.linux-3 ']'
+ '[' x = x ']'
+ dirs='. client server relay common omapip dhcpctl minires dst'
+ for foo in '$dirs'
++ basename .
+ bar=.
+ '[' '!' -d work.linux-3/. ']'
+ sed -e '/^##--majver--/,/^##--majver--/s/MajorVersion/3/' -e '/^##--minver--/,/^##--minver--/s/MinorVersion/13/' -e '/^##--linux-3--/,/^##--linux-3--/s/^#//'
+ cat site.conf
++ pwd
+ echo 'TOP = /home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0/rpm/BUILD/dhcp-3.0.3b1'
+ echo CC_OPTIONS =
+ cat ./Makefile.dist
+ for foo in '$dirs'
++ basename client
+ bar=client
+ '[' '!' -d work.linux-3/client ']'
+ sed -e '/^##--majver--/,/^##--majver--/s/MajorVersion/3/' -e '/^##--minver--/,/^##--minver--/s/MinorVersion/13/' -e '/^##--linux-3--/,/^##--linux-3--/s/^#//'
+ cat site.conf
++ pwd
+ echo 'TOP = /home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0/rpm/BUILD/dhcp-3.0.3b1'
+ echo CC_OPTIONS =
+ cat client/Makefile.dist
+ for foo in '$dirs'
++ basename server
+ bar=server
+ '[' '!' -d work.linux-3/server ']'
+ sed -e '/^##--majver--/,/^##--majver--/s/MajorVersion/3/' -e '/^##--minver--/,/^##--minver--/s/MinorVersion/13/' -e '/^##--linux-3--/,/^##--linux-3--/s/^#//'
+ cat site.conf
++ pwd
+ echo 'TOP = /home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0/rpm/BUILD/dhcp-3.0.3b1'
+ echo CC_OPTIONS =
+ cat server/Makefile.dist
+ for foo in '$dirs'
++ basename relay
+ bar=relay
+ '[' '!' -d work.linux-3/relay ']'
+ sed -e '/^##--majver--/,/^##--majver--/s/MajorVersion/3/' -e '/^##--minver--/,/^##--minver--/s/MinorVersion/13/' -e '/^##--linux-3--/,/^##--linux-3--/s/^#//'
+ cat site.conf
++ pwd
+ echo 'TOP = /home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0/rpm/BUILD/dhcp-3.0.3b1'
+ echo CC_OPTIONS =
+ cat relay/Makefile.dist
+ for foo in '$dirs'
++ basename common
+ bar=common
+ '[' '!' -d work.linux-3/common ']'
+ sed -e '/^##--majver--/,/^##--majver--/s/MajorVersion/3/' -e '/^##--minver--/,/^##--minver--/s/MinorVersion/13/' -e '/^##--linux-3--/,/^##--linux-3--/s/^#//'
+ cat site.conf
++ pwd
+ echo 'TOP = /home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0/rpm/BUILD/dhcp-3.0.3b1'
+ echo CC_OPTIONS =
+ cat common/Makefile.dist
+ for foo in '$dirs'
++ basename omapip
+ bar=omapip
+ '[' '!' -d work.linux-3/omapip ']'
+ sed -e '/^##--majver--/,/^##--majver--/s/MajorVersion/3/' -e '/^##--minver--/,/^##--minver--/s/MinorVersion/13/' -e '/^##--linux-3--/,/^##--linux-3--/s/^#//'
+ cat site.conf
++ pwd
+ echo 'TOP = /home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0/rpm/BUILD/dhcp-3.0.3b1'
+ echo CC_OPTIONS =
+ cat omapip/Makefile.dist
+ for foo in '$dirs'
++ basename dhcpctl
+ bar=dhcpctl
+ '[' '!' -d work.linux-3/dhcpctl ']'
+ sed -e '/^##--majver--/,/^##--majver--/s/MajorVersion/3/' -e '/^##--minver--/,/^##--minver--/s/MinorVersion/13/' -e '/^##--linux-3--/,/^##--linux-3--/s/^#//'
+ cat site.conf
++ pwd
+ echo 'TOP = /home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0/rpm/BUILD/dhcp-3.0.3b1'
+ echo CC_OPTIONS =
+ cat dhcpctl/Makefile.dist
+ for foo in '$dirs'
++ basename minires
+ bar=minires
+ '[' '!' -d work.linux-3/minires ']'
+ sed -e '/^##--majver--/,/^##--majver--/s/MajorVersion/3/' -e '/^##--minver--/,/^##--minver--/s/MinorVersion/13/' -e '/^##--linux-3--/,/^##--linux-3--/s/^#//'
+ cat site.conf
++ pwd
+ echo 'TOP = /home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0/rpm/BUILD/dhcp-3.0.3b1'
+ echo CC_OPTIONS =
+ cat minires/Makefile.dist
+ for foo in '$dirs'
++ basename dst
+ bar=dst
+ '[' '!' -d work.linux-3/dst ']'
+ sed -e '/^##--majver--/,/^##--majver--/s/MajorVersion/3/' -e '/^##--minver--/,/^##--minver--/s/MinorVersion/13/' -e '/^##--linux-3--/,/^##--linux-3--/s/^#//'
+ cat site.conf
++ pwd
+ echo 'TOP = /home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0/rpm/BUILD/dhcp-3.0.3b1'
+ echo CC_OPTIONS =
+ cat dst/Makefile.dist
+ '[' x = x ']'
+ make links
+ '[' 1 '!=' 0 ']'
+ '[' x--print-sysname = x--with-nsupdate ']'
+ '[' x--print-sysname = x--print-sysname ']'
+ print_sysname=yes
+ shift
+ '[' 0 '!=' 0 ']'
++ uname -s
+ uname=Linux
++ uname -m
+ machine=x86_64
+ '[' '' = '' ']'
+ case $uname in
++ uname -r
+ release=3.13.0-55-generic
++ echo 3.13.0-55-generic
++ sed -e 's/[0-9]*\.\([0-9][0-9]*\)\(\..*\)*$/\1/'
+ minor=13
++ echo 3.13.0-55-generic
++ sed -e 's/\([0-9][0-9]*\)\..*$/\1/'
+ major=3
+ case $major in
+ sysname=linux-3
+ '[' linux-3 = '' ']'
+ '[' xyes = xyes ']'
+ '[' x '!=' x ']'
+ echo linux-3
+ exit 0
<br><blockquote cite="mid:37379F3F8CB45647A422DBB771807245B14C2D <at> AUSP01DAG0509.collaborationhost.net" type="cite">
<div class="WordSection1">
<p class="MsoNormal"><span><p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<div>
<div>
<p class="MsoNormal"><span>From:</span><span>
<a class="moz-txt-link-abbreviated" href="mailto:ltib-bounces+chris.westervelt=infrasafe.com <at> nongnu.org">
ltib-bounces+chris.westervelt=infrasafe.com <at> nongnu.org</a> [<a class="moz-txt-link-freetext" href="mailto:ltib-bounces+chris.westervelt=infrasafe.com <at> nongnu.org">mailto:ltib-bounces+chris.westervelt=infrasafe.com <at> nongnu.org</a>]
On Behalf Of Peter Barada<br>Sent: Sunday, June 28, 2015 9:59 AM<br>To: <a class="moz-txt-link-abbreviated" href="mailto:ltib <at> nongnu.org">ltib <at> nongnu.org</a><br>Subject: Re: [Ltib] Can't build DHCP on 14.04<p></p></span></p>
</div>
</div>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<div>
<p class="MsoNormal">On 06/26/2015 11:19 AM, Chris Westervelt wrote:<p></p></p>
</div>
<blockquote>
<p class="MsoNormal">Ok hoping someone out there in LTIB land has punched through building DHCP on 14.04 32/64 bit.&nbsp; I keep getting two errors one of which I have been able to overcome for system type by including &lsquo;Linux&rsquo; to the .spec file ./configure line
 as a pass argument but another&nbsp; (so far insurmountable) error comes<p></p></p>
<p class="MsoNormal">&nbsp;<p></p></p>
<p class="MsoNormal">cannot create regular file '/home/advantor/IGII/v1.2/tmp/dhcp//opt/freescale/rootfs/arm/etc/': No such file or directory<p></p></p>
</blockquote>
<p class="MsoNormal"><span>I've had no problem building/installing dhcp-3.0.3b1 on Ubuntu 14.04.2 LTS.&nbsp; What do you mean by "including 'linux' to the .spec file .configure line as a
 pass argument"?&nbsp; What was the original probelm you ran into building dhcp?&nbsp; What other modifications have you made to LTIB?&nbsp; Where did your LTIB come from?<br><br>
And - got a log showing the output?&nbsp; do "./ltib -p dhcp -m prep", and then capture output of "./ltib -p dhcp" (so we see the %build and %install parts) - put it in pastebin or somewhere and send the list an accessible URL to it (to save space on the email list).&nbsp;
 Without it can only guess what's gone wrong.<br><br><p></p></span></p>
<p class="MsoNormal">&nbsp;<p></p></p>
<p class="MsoNormal"><span>Chris Westervelt</span><p></p></p>
<p class="MsoNormal"><span>Senior Product Development Engineer</span><p></p></p>
<p class="MsoNormal"><span>Advantor Systems.<br>
12612 Challenger Pkwy<br>
Suite 300<br>
Orlando, FL<br>
32826</span><p></p></p>
<p class="MsoNormal"><span><a moz-do-not-send="true" href="http://www.advantor.com/">http://www.advantor.com</a><br>
Office: &nbsp; (407) 926-6983</span><p></p></p>
<p class="MsoNormal"><span>Mobile: (407) 595-7023&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br>
Fax:&nbsp;&nbsp;&nbsp; (407) 857-1635</span><span> <br></span><span>Notice of Confidentiality:</span><span>
<br></span><span>This e-mail communication and the attachments hereto, if any, are intended solely for the information and use of the addressee(s) identified above and may contain information which
 is legally privileged and/or otherwise confidential. If a recipient of this e-mail communication is not an addressee (or an authorized representative of an addressee), such recipient is hereby advised that any review, disclosure, reproduction, re-transmission
 or other dissemination or use of this e-mail communication (or any information contained herein) is strictly prohibited. If you are not an addressee and have received this e-mail communication in error, please advise the sender of that circumstance either
 by reply e-mail or by telephone at (800) 238-2686, immediately delete this e-mail communication from any computer and destroy all physical copies of same.</span><p></p></p>
<p class="MsoNormal">&nbsp;<p></p></p>
<p class="MsoNormal"><span><br><br><br><p></p></span></p>
_______________________________________________<p></p>
LTIB home page: <a moz-do-not-send="true" href="http://ltib.org">http://ltib.org</a><p></p>
<p>&nbsp;</p>
Ltib mailing list<p></p>
<a moz-do-not-send="true" href="mailto:Ltib <at> nongnu.org">Ltib <at> nongnu.org</a><p></p>
<a moz-do-not-send="true" href="https://lists.nongnu.org/mailman/listinfo/ltib">https://lists.nongnu.org/mailman/listinfo/ltib</a><p></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
</div>
</blockquote>
<br>
</div>
Chris Westervelt | 26 Jun 17:19 2015

Can't build DHCP on 14.04

Ok hoping someone out there in LTIB land has punched through building DHCP on 14.04 32/64 bit.  I keep getting two errors one of which I have been able to overcome for system type by including ‘Linux’ to the .spec file ./configure line as a pass argument but another  (so far insurmountable) error comes

 

cannot create regular file '/home/advantor/IGII/v1.2/tmp/dhcp//opt/freescale/rootfs/arm/etc/': No such file or directory

 

Chris Westervelt

Senior Product Development Engineer

Advantor Systems.
12612 Challenger Pkwy
Suite 300
Orlando, FL
32826

http://www.advantor.com
Office:   (407) 926-6983

Mobile: (407) 595-7023       
Fax:    (407) 857-1635

Notice of Confidentiality:
This e-mail communication and the attachments hereto, if any, are intended solely for the information and use of the addressee(s) identified above and may contain information which is legally privileged and/or otherwise confidential. If a recipient of this e-mail communication is not an addressee (or an authorized representative of an addressee), such recipient is hereby advised that any review, disclosure, reproduction, re-transmission or other dissemination or use of this e-mail communication (or any information contained herein) is strictly prohibited. If you are not an addressee and have received this e-mail communication in error, please advise the sender of that circumstance either by reply e-mail or by telephone at (800) 238-2686, immediately delete this e-mail communication from any computer and destroy all physical copies of same.

 

<div>
<div class="WordSection1">
<p class="MsoNormal">Ok hoping someone out there in LTIB land has punched through building DHCP on 14.04 32/64 bit.&nbsp; I keep getting two errors one of which I have been able to overcome for system type by including &lsquo;Linux&rsquo; to the .spec file ./configure line
 as a pass argument but another&nbsp; (so far insurmountable) error comes<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">cannot create regular file '/home/advantor/IGII/v1.2/tmp/dhcp//opt/freescale/rootfs/arm/etc/': No such file or directory<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><span>Chris Westervelt</span><span><p></p></span></p>
<p class="MsoNormal"><span>Senior Product Development Engineer</span><span><p></p></span></p>
<p class="MsoNormal"><span>Advantor Systems.<br>
12612 Challenger Pkwy<br>
Suite 300<br>
Orlando, FL<br>
32826</span><span><p></p></span></p>
<p class="MsoNormal"><span><a href="http://www.advantor.com/"><span>http://www.advantor.com</span></a><br>
Office: &nbsp; (407) 926-6983<p></p></span></p>
<p class="MsoNormal"><span>Mobile: (407) 595-7023&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br>
Fax:&nbsp;&nbsp;&nbsp; (407) 857-1635</span><span> <br></span><span>Notice of Confidentiality:</span><span>
<br></span><span>This e-mail communication and the attachments hereto, if any, are intended solely for the information and use of the addressee(s) identified above and may contain information which
 is legally privileged and/or otherwise confidential. If a recipient of this e-mail communication is not an addressee (or an authorized representative of an addressee), such recipient is hereby advised that any review, disclosure, reproduction, re-transmission
 or other dissemination or use of this e-mail communication (or any information contained herein) is strictly prohibited. If you are not an addressee and have received this e-mail communication in error, please advise the sender of that circumstance either
 by reply e-mail or by telephone at (800) 238-2686, immediately delete this e-mail communication from any computer and destroy all physical copies of same.<p></p></span></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
</div>
</div>
Vassili Syskine | 12 Jun 00:15 2015

ltib fails to build

Hi,

I am trying to build LTIB from scratch, used netinstall.txt
as recommended. ./ltib failed with the message

Can't get: lkc-1.4-link-order.patch

Where does it try to get this patch from and what could be
the possible reasons?

Vassili Syskine

Attachment (smime.p7s): application/pkcs7-signature, 7259 bytes
Hi,

I am trying to build LTIB from scratch, used netinstall.txt
as recommended. ./ltib failed with the message

Can't get: lkc-1.4-link-order.patch

Where does it try to get this patch from and what could be
the possible reasons?

Vassili Syskine

Chris Westervelt | 29 May 17:37 2015

/etc/rc.d/iniit.d vs /etc/init.d

Does anyone know why the current configuration of rc and init file organization in LTIB is not really conformant with typical Linux etc directory structure.  I am trying to implement a StrongSwan implementation and the instructions from Cisco make reference to /etc/init.d for starting the ipsec service.  I upgraded to 5.0.8 of the StrongSwan package but there is no startup script like /etc/rc.d/init.d/ipsec.

 

Chris Westervelt

Senior Product Development Engineer

Advantor Systems.
12612 Challenger Pkwy
Suite 300
Orlando, FL
32826

http://www.advantor.com
Office:   (407) 926-6983

Mobile: (407) 595-7023       
Fax:    (407) 857-1635

Notice of Confidentiality:
This e-mail communication and the attachments hereto, if any, are intended solely for the information and use of the addressee(s) identified above and may contain information which is legally privileged and/or otherwise confidential. If a recipient of this e-mail communication is not an addressee (or an authorized representative of an addressee), such recipient is hereby advised that any review, disclosure, reproduction, re-transmission or other dissemination or use of this e-mail communication (or any information contained herein) is strictly prohibited. If you are not an addressee and have received this e-mail communication in error, please advise the sender of that circumstance either by reply e-mail or by telephone at (800) 238-2686, immediately delete this e-mail communication from any computer and destroy all physical copies of same.

 

<div>
<div class="WordSection1">
<p class="MsoNormal">Does anyone know why the current configuration of rc and init file organization in LTIB is not really conformant with typical Linux etc directory structure.&nbsp; I am trying to implement a StrongSwan implementation and the instructions from
 Cisco make reference to /etc/init.d for starting the ipsec service.&nbsp; I upgraded to 5.0.8 of the StrongSwan package but there is no startup script like /etc/rc.d/init.d/ipsec.<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><span>Chris Westervelt</span><span><p></p></span></p>
<p class="MsoNormal"><span>Senior Product Development Engineer</span><span><p></p></span></p>
<p class="MsoNormal"><span>Advantor Systems.<br>
12612 Challenger Pkwy<br>
Suite 300<br>
Orlando, FL<br>
32826</span><span><p></p></span></p>
<p class="MsoNormal"><span><a href="http://www.advantor.com/"><span>http://www.advantor.com</span></a><br>
Office: &nbsp; (407) 926-6983<p></p></span></p>
<p class="MsoNormal"><span>Mobile: (407) 595-7023&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br>
Fax:&nbsp;&nbsp;&nbsp; (407) 857-1635</span><span> <br></span><span>Notice of Confidentiality:</span><span>
<br></span><span>This e-mail communication and the attachments hereto, if any, are intended solely for the information and use of the addressee(s) identified above and may contain information which
 is legally privileged and/or otherwise confidential. If a recipient of this e-mail communication is not an addressee (or an authorized representative of an addressee), such recipient is hereby advised that any review, disclosure, reproduction, re-transmission
 or other dissemination or use of this e-mail communication (or any information contained herein) is strictly prohibited. If you are not an addressee and have received this e-mail communication in error, please advise the sender of that circumstance either
 by reply e-mail or by telephone at (800) 238-2686, immediately delete this e-mail communication from any computer and destroy all physical copies of same.<p></p></span></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
</div>
</div>
Madhu Kumar N. | 22 Apr 15:37 2015

booting

Hi

 

I have bug during booting process it shows inflate return -3, please find the attached kernel console output.

 

Please give suggestion

 

Regards,

Madhu Kumar N.

 

 

SATTVA eTECH INDIA PRIVATE LIMITED

#91,11TH Main, Begur Main Road,

Hongasandra, Bangalore - 560 068.

Tel no: +91 80 25745590 Mobile: +91 9538325038

Email :  madhukumar <at> sattvaetech.com

URL:www.sattvaetech.com

 

 

Note : Please don't print this Email unless you really need to - this will preserve trees on planet earth.

           Check your email security settings for any attachments with this mail

 

Attachment (Booting.docx): application/vnd.openxmlformats-officedocument.wordprocessingml.document, 20 KiB
<div>

<div class="Section1">

<p class="MsoNormal">Hi<p></p></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

<p class="MsoNormal">I have bug during booting process it shows inflate return -3,
please find the attached kernel console output.<p></p></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

<p class="MsoNormal">Please give suggestion<p></p></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

<p class="MsoNormal"><span>Regards,<p></p></span></p>

<p class="MsoNormal"><span>Madhu Kumar N.<p></p></span></p>

<p class="MsoNormal"><span><p>&nbsp;</p></span></p>

<p class="MsoNormal"><span><p>&nbsp;</p></span></p>

<p class="MsoNormal"><p></p></p>

<p class="MsoNormal"><span>SATTVA eTECH INDIA PRIVATE
LIMITED</span><span><p></p></span></p>

<p class="MsoNormal"><span>#91,11TH Main,
Begur Main Road,</span><span><p></p></span></p>

<p class="MsoNormal"><span>Hongasandra, Bangalore -
560 068.<p></p></span></p>

<p class="MsoNormal"><span>Tel no: +91 80 25745590
Mobile: +91 9538325038<p></p></span></p>

<p class="MsoNormal"><span>Email :&nbsp; <a href="mailto:madhukumar <at> sattvaetech.com"><span>madhukumar <at> sattvaetech.com</span></a><p></p></span></p>

<p class="MsoNormal"><span><a href="www.sattvaetech.com"><span>URL:www.sattvaetech.com</span></a><p></p></span></p>

<p class="MsoNormal"><span><p>&nbsp;</p></span></p>

<p class="MsoNormal"><span><p>&nbsp;</p></span></p>

<p class="MsoNormal"><span>Note : </span><span>Please don't print this Email </span><span>unless</span><span> you
really need to - this will preserve trees on </span><span>planet</span><span> earth.</span><span><p></p></span></p>

<p class="MsoNormal"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span>Check your email security
settings for any attachments with this mail</span><span><p></p></span></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

</div>

</div>
Madhu Kumar N. | 22 Apr 08:09 2015

booting process

Hi ,

 

 

I have bug during booting process stop at VFS: Mounted root (jffss2 filesystem),  Please find attached booting message.

 

Operating system :  fedora – 12

Tool : LTIB-2008

Kernel version : linux-2.6.25

 

 

Please give suggestion.

 

 

Regards,

Madhu Kumar N.

 

 

SATTVA eTECH INDIA PRIVATE LIMITED

#91,11TH Main, Begur Main Road,

Hongasandra, Bangalore - 560 068.

Tel no: +91 80 25745590 Mobile: +91 9538325038

Email :  madhukumar <at> sattvaetech.com

URL:www.sattvaetech.com

 

 

Note : Please don't print this Email unless you really need to - this will preserve trees on planet earth.

           Check your email security settings for any attachments with this mail

 

Attachment (Booting.docx): application/vnd.openxmlformats-officedocument.wordprocessingml.document, 20 KiB
<div>

<div class="Section1">

<p class="MsoNormal">Hi ,<p></p></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

<p class="MsoNormal">I have bug during booting process stop at VFS: Mounted root
(jffss2 filesystem),&nbsp; Please find attached booting message.<p></p></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

<p class="MsoNormal">Operating system : &nbsp;fedora &ndash; 12<p></p></p>

<p class="MsoNormal">Tool : LTIB-2008<p></p></p>

<p class="MsoNormal">Kernel version : linux-2.6.25<p></p></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

<p class="MsoNormal">Please give suggestion.<p></p></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

<p class="MsoNormal"><span>Regards,<p></p></span></p>

<p class="MsoNormal"><span>Madhu Kumar N.<p></p></span></p>

<p class="MsoNormal"><span><p>&nbsp;</p></span></p>

<p class="MsoNormal"><span><p>&nbsp;</p></span></p>

<p class="MsoNormal"><p></p></p>

<p class="MsoNormal"><span>SATTVA eTECH INDIA PRIVATE
LIMITED</span><span><p></p></span></p>

<p class="MsoNormal"><span>#91,11TH Main,
Begur Main Road,</span><span><p></p></span></p>

<p class="MsoNormal"><span>Hongasandra, Bangalore -
560 068.<p></p></span></p>

<p class="MsoNormal"><span>Tel no: +91 80 25745590
Mobile: +91 9538325038<p></p></span></p>

<p class="MsoNormal"><span>Email :&nbsp; <a href="mailto:madhukumar <at> sattvaetech.com"><span>madhukumar <at> sattvaetech.com</span></a><p></p></span></p>

<p class="MsoNormal"><span><a href="www.sattvaetech.com"><span>URL:www.sattvaetech.com</span></a><p></p></span></p>

<p class="MsoNormal"><span><p>&nbsp;</p></span></p>

<p class="MsoNormal"><span><p>&nbsp;</p></span></p>

<p class="MsoNormal"><span>Note : </span><span>Please don't print this Email </span><span>unless</span><span> you
really need to - this will preserve trees on </span><span>planet</span><span> earth.</span><span><p></p></span></p>

<p class="MsoNormal"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span>Check your email security
settings for any attachments with this mail</span><span><p></p></span></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

</div>

</div>
Madhu Kumar N. | 22 Apr 08:05 2015

booting process

Hi ,

 

 

I have bug during booting process stop at VFS: Mounted root (jffss2 filesystem),  Please find attached booting message.

 

Operating system :  fedora – 12

Tool : LTIB-2008

Kernel version : linux-2.6.25

 

 

Please give suggestion.

 

 

Regards,

Madhu Kumar N.

 

 

SATTVA eTECH INDIA PRIVATE LIMITED

#91,11TH Main, Begur Main Road,

Hongasandra, Bangalore - 560 068.

Tel no: +91 80 25745590 Mobile: +91 9538325038

Email :  madhukumar <at> sattvaetech.com

URL:www.sattvaetech.com

 

 

Note : Please don't print this Email unless you really need to - this will preserve trees on planet earth.

           Check your email security settings for any attachments with this mail

 

Attachment (Booting.docx): application/vnd.openxmlformats-officedocument.wordprocessingml.document, 20 KiB
<div>

<div class="Section1">

<p class="MsoNormal">Hi ,<p></p></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

<p class="MsoNormal">I have bug during booting process stop at VFS: Mounted root
(jffss2 filesystem),&nbsp; Please find attached booting message.<p></p></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

<p class="MsoNormal">Operating system : &nbsp;fedora &ndash; 12<p></p></p>

<p class="MsoNormal">Tool : LTIB-2008<p></p></p>

<p class="MsoNormal">Kernel version : linux-2.6.25<p></p></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

<p class="MsoNormal">Please give suggestion.<p></p></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

<p class="MsoNormal"><span>Regards,<p></p></span></p>

<p class="MsoNormal"><span>Madhu Kumar N.<p></p></span></p>

<p class="MsoNormal"><span><p>&nbsp;</p></span></p>

<p class="MsoNormal"><span><p>&nbsp;</p></span></p>

<p class="MsoNormal"><p></p></p>

<p class="MsoNormal"><span>SATTVA eTECH INDIA PRIVATE
LIMITED</span><span><p></p></span></p>

<p class="MsoNormal"><span>#91,11TH Main,
Begur Main Road,</span><span><p></p></span></p>

<p class="MsoNormal"><span>Hongasandra, Bangalore -
560 068.<p></p></span></p>

<p class="MsoNormal"><span>Tel no: +91 80 25745590
Mobile: +91 9538325038<p></p></span></p>

<p class="MsoNormal"><span>Email :&nbsp; <a href="mailto:madhukumar <at> sattvaetech.com"><span>madhukumar <at> sattvaetech.com</span></a><p></p></span></p>

<p class="MsoNormal"><span><a href="www.sattvaetech.com"><span>URL:www.sattvaetech.com</span></a><p></p></span></p>

<p class="MsoNormal"><span><p>&nbsp;</p></span></p>

<p class="MsoNormal"><span><p>&nbsp;</p></span></p>

<p class="MsoNormal"><span>Note : </span><span>Please don't print this Email </span><span>unless</span><span> you
really need to - this will preserve trees on </span><span>planet</span><span> earth.</span><span><p></p></span></p>

<p class="MsoNormal"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span>Check your email security
settings for any attachments with this mail</span><span><p></p></span></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

</div>

</div>
Mathieu Rozon | 29 Jan 23:03 2015

Modified packages using shared development

Hi,

 

I did minor modifications to packages kobs-ng and imx-bootlets.

We are multiple people working on this project and are using Git to share our code.

For the imx-bootlets package, simply adding the source code without scbuild and scdeploy works fine when the developer builds ltib.

My issue is with the kobs-ng package. If I could create and upload a patch everything would should build without problem, but I am trying to find an alternative.

 

I know that before building ltib, I should execute scbuild and scdeploy on the package, but this creates files with absolute paths relative to my build platform not corresponding to the other developers.

 

If I could force ltib to run scbuild and scdeploy on the kobs-ng package when executing ltib it would also solve my problem.

 

Maybe there is also a simpler solution that I simply do not see…

 

Thank you

 

-          Mat -

 

 

 

 

<div><div class="WordSection1">
<p class="MsoNormal">Hi, <p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">I did minor modifications to packages kobs-ng and imx-bootlets.<p></p></p>
<p class="MsoNormal">We are multiple people working on this project and are using Git to share our code.<p></p></p>
<p class="MsoNormal">For the imx-bootlets package, simply adding the source code without scbuild and scdeploy works fine when the developer builds ltib.<p></p></p>
<p class="MsoNormal">My issue is with the kobs-ng package. If I could create and upload a patch everything would should build without problem, but I am trying to find an alternative.<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">I know that before building ltib, I should execute scbuild and scdeploy on the package, but this creates files with absolute paths relative to my build platform not corresponding to the other developers.<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">If I could force ltib to run scbuild and scdeploy on the kobs-ng package when executing ltib it would also solve my problem.<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Maybe there is also a simpler solution that I simply do not see&hellip;<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Thank you<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoListParagraph"><span>-<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span>Mat -<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
</div></div>
L P | 29 Jan 15:07 2015

Re: Cross-compilation errors preventing build

Mike,

Sorry I missed response.  Creating a command line to remove the *.la files after install resolved the issue.

I will attempt upgrading to Gstreamer 1.x (again) in a few weeks.  I am currently at 0.10.31 limited by the TI DMAI plugin build error.  A build error occurred at 0.10.36 as well.

  • Have you (or anyone reading this) had success using a Gstreamer 1.x Linux build solution on TI DM37xx processors?
  • Working on the libvpx build issues to obtain the vp8 codec for webm playback.

Thank you,

Leo

Sent from Surface

From: Mike Goins
Sent: ‎Wednesday‎, ‎January‎ ‎14‎, ‎2015 ‎2‎:‎22‎ ‎PM
To: ltib <at> nongnu.org

On Wed, Jan 14, 2015 at 11:08 AM, Leonard Pimentel
<leo <at> lotus-research.com> wrote:
>
> General cross-compiling question
>
>
>
> Are there two solutions (at minimum) to solve the following warning [file moved] and error [no such file]?  I am running into build errors.  Help is appreciated.
>
>
>
> Error log snippet:
>
>
>
> libtool: link: warning: library `/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rootfs/usr/lib/libgstvideo-0.10.la' was moved.
>
> /bin/sed: can't read /usr/lib/libgstinterfaces-0.10.la: No such file or directory
>
> libtool: link: `/usr/lib/libgstinterfaces-0.10.la' is not a valid libtool archive
>
> make[3]: *** [libgstaudiofx.la] Error 1
>
> make[3]: Leaving directory `/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rpm/BUILD/gst-plugins-good-0.10.25/gst/audiofx'
>
> make[2]: *** [audiofx] Error 2
>
> make[3]: Leaving directory `/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rpm/BUILD/gst-plugins-good-0.10.25/gst/debugutils'
>
> make[2]: Leaving directory `/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rpm/BUILD/gst-plugins-good-0.10.25/gst'
>
> make[1]: *** [all-recursive] Error 1
>
>
>
>
>
>
>
> Snippets from spec file
>
>
>
> %define pfx          /opt/freescale/rootfs/%{_target_cpu}
>
> %define LOGICPD_DIR  /home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3
>
>
>
> %Build
>
> export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:%LOGICPD_FS/usr/lib/pkconfig
>
>
>
> lt_cv_path_NM=nm \
>
> ./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} \
>
>                 --with-pkg-config-path=$PKG_CONFIG_PATH \
>
>                 CPPFLAGS=-I%LOGICPD_DIR/rootfs/usr/include/gstreamer-0.10/gst \
>
>                 LDFLAGS=-L%LOGICPD_DIR/rootfs/usr/lib \
>
>


This is my working build section for 1.2.2, so not sure if it works
well with 0.10:

%Build
lt_cv_path_NM=nm \
./configure --prefix=%{_prefix} --host=$CFGHOST \
   --build=%{_build} \
   --disable-speex \
   --disable-shout2 \
   --disable-dv1394 \
   --disable-libdv --disable-libcaca \
   --disable-flac \
   --disable-cairo --disable-aalib \
   --disable-aalibtest  \
   --with-sysroot=${DEV_IMAGE}
perl -pi -e 's,^sys_lib_search_path_spec=.*,sys_lib_search_path_spec=,' libtool
make


I don't recall why I put the perl snippet in there.  My commit note
was "Beating the gst-* packages into submission so they build
correctly."

I usually poke around other BSP packages to see what they've done.
buildroot uses gst 0.10, yocto is on recent versions.


> %install
>
> rm –rf $RPM_BUILD_ROOT
>
> make install DESTDIR=${RPM_BUILD_ROOT}%{pfx}
>
>
>
>
>
>
>
> The following comment from StackOverflow suggests setting the dependency_libs section.
>
>
>
> Have you looked inside the libfreetype.la file? Libtool .la files are just text files describing libraries. By default, they are commented. Search for the libdir and dependency_libs settings and check if they point to the right places.
>
>
>
> How can this be accomplished either in the configuration statement or via a libtool –finish command?
>
>
>
> Contents of two .la files.  Note the libdir is referenced the file system directory path under the cross-compilied target.
>
>
>
> # libgstinterfaces-0.10.la - a libtool library file
>
> # Generated by ltmain.sh (GNU libtool) 2.2.6b Debian-2.2.6b-2
>
> #
>
> # Please DO NOT delete this file!
>
> # It is necessary for linking the library.
>
>
>
> # The name that we can dlopen(3).
>
> dlname='libgstinterfaces-0.10.so.0'
>
>
>
> # Names of this library.
>
> library_names='libgstinterfaces-0.10.so.0.21.0 libgstinterfaces-0.10.so.0 libgstinterfaces-0.10.so'
>
>
>
> # The name of the static archive.
>
> old_library='libgstinterfaces-0.10.a'
>
>
>
> # Linker flags that can not go in dependency_libs.
>
> inherited_linker_flags=' -pthread'
>
>
>
> # Libraries that this one depends upon.
>
> dependency_libs=' -L/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rootfs/usr/lib -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0 -lm'
>
>
>
> # Names of additional weak libraries provided by this library
>
> weak_library_names=''
>
>
>
> # Version information for libgstinterfaces-0.10.
>
> current=21
>
> age=21
>
> revision=0
>
>
>
> # Is this an already installed library?
>
> installed=yes
>
>
>
> # Should we warn about portability when linking against -modules?
>
> shouldnotlink=no
>
>
>
> # Files to dlopen/dlpreopen
>
> dlopen=''
>
> dlpreopen=''
>
>
>
> # Directory that this library needs to be installed in:
>
> libdir='/usr/lib'
>
>
>
>
>
>
>
>
>
> libgstaudio-0.10.la - a libtool library file
>
> # Generated by ltmain.sh (GNU libtool) 2.2.6b Debian-2.2.6b-2
>
> #
>
> # Please DO NOT delete this file!
>
> # It is necessary for linking the library.
>
>
>
> # The name that we can dlopen(3).
>
> dlname='libgstaudio-0.10.so.0'
>
>
>
> # Names of this library.
>
> library_names='libgstaudio-0.10.so.0.21.0 libgstaudio-0.10.so.0 libgstaudio-0.10.so'
>
>
>
> # The name of the static archive.
>
> old_library='libgstaudio-0.10.a'
>
>
>
> # Linker flags that can not go in dependency_libs.
>
> inherited_linker_flags=' -pthread'
>
>
>
> # Libraries that this one depends upon.
>
> dependency_libs=' -L/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rootfs/usr/lib -lgstbase-0.10 /usr/lib/libgstinterfaces-0.10.la -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0 -lm'
>
>
>
> # Names of additional weak libraries provided by this library
>
> weak_library_names=''
>
>
>
> # Version information for libgstaudio-0.10.
>
> current=21
>
> age=21
>
> revision=0
>
>
>
> # Is this an already installed library?
>
> installed=yes
>
>
>
> # Should we warn about portability when linking against -modules?
>
> shouldnotlink=no
>
>
>
> # Files to dlopen/dlpreopen
>
> dlopen=''
>
> dlpreopen=''
>
>
>
> # Directory that this library needs to be installed in:
>
> libdir='/usr/lib'
>
>
>
>
>
>
>
> Leonard Pimentel
>
> CEO & CTO
>
> Lotus Research, LLC.
>
> Cell: (917) 834-7533
>
>
>
>
> _______________________________________________
> LTIB home page: http://ltib.org
>
> Ltib mailing list
> Ltib <at> nongnu.org
> https://lists.nongnu.org/mailman/listinfo/ltib
>

_______________________________________________
LTIB home page: http://ltib.org

Ltib mailing list
Ltib <at> nongnu.org
https://lists.nongnu.org/mailman/listinfo/ltib
<div>
<div data-externalstyle="false" dir="ltr">
<div>Mike,</div>
<div><br></div>
<div>Sorry I missed response.&nbsp; Creating a command line to remove the *.la files after install resolved the issue.</div>
<div><br></div>
<div>I will attempt upgrading to Gstreamer 1.x (again) in a few weeks.&nbsp; I am currently at 0.10.31 limited by the TI DMAI plugin build error.&nbsp; A build error occurred at 0.10.36 as well.</div>
<div><br></div>
<ul>
<li><div>Have you&nbsp;(or anyone&nbsp;reading this)&nbsp;had success using a Gstreamer 1.x Linux build solution on TI DM37xx processors?</div></li>
<li><div data-signatureblock="true">Working on the libvpx build issues to obtain the vp8 codec for webm playback.</div></li>
</ul>
<div data-signatureblock="true"><br></div>
<div data-signatureblock="true">Thank you,</div>
<div data-signatureblock="true"><br></div>
<div data-signatureblock="true">Leo</div>
<div data-signatureblock="true"><br></div>
<div data-signatureblock="true">Sent from Surface</div>
<div data-signatureblock="true"><br></div>
<div><div>From:&nbsp;<a href="mailto:mike.goins <at> adtecservices.net" target="_parent">Mike Goins</a><br>Sent:&nbsp;&lrm;Wednesday&lrm;, &lrm;January&lrm; &lrm;14&lrm;, &lrm;2015 &lrm;2&lrm;:&lrm;22&lrm; &lrm;PM<br>To:&nbsp;<a href="mailto:ltib <at> nongnu.org" target="_parent">ltib <at> nongnu.org</a>
</div></div>
<div><br></div>
<div dir="">
<div class="PlainText">On Wed, Jan 14, 2015 at 11:08 AM, Leonard Pimentel<br>
&lt;leo <at> lotus-research.com&gt; wrote:<br>
&gt;<br>
&gt; General cross-compiling question<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Are there two solutions (at minimum) to solve the following warning [file moved] and error [no such file]?&nbsp; I am running into build errors.&nbsp; Help is appreciated.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Error log snippet:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; libtool: link: warning: library `/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rootfs/usr/lib/libgstvideo-0.10.la' was moved.<br>
&gt;<br>
&gt; /bin/sed: can't read /usr/lib/libgstinterfaces-0.10.la: No such file or directory<br>
&gt;<br>
&gt; libtool: link: `/usr/lib/libgstinterfaces-0.10.la' is not a valid libtool archive<br>
&gt;<br>
&gt; make[3]: *** [libgstaudiofx.la] Error 1<br>
&gt;<br>
&gt; make[3]: Leaving directory `/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rpm/BUILD/gst-plugins-good-0.10.25/gst/audiofx'<br>
&gt;<br>
&gt; make[2]: *** [audiofx] Error 2<br>
&gt;<br>
&gt; make[3]: Leaving directory `/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rpm/BUILD/gst-plugins-good-0.10.25/gst/debugutils'<br>
&gt;<br>
&gt; make[2]: Leaving directory `/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rpm/BUILD/gst-plugins-good-0.10.25/gst'<br>
&gt;<br>
&gt; make[1]: *** [all-recursive] Error 1<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Snippets from spec file<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; %define pfx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /opt/freescale/rootfs/%{_target_cpu}<br>
&gt;<br>
&gt; %define LOGICPD_DIR&nbsp; /home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; %Build<br>
&gt;<br>
&gt; export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:%LOGICPD_FS/usr/lib/pkconfig<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; lt_cv_path_NM=nm \<br>
&gt;<br>
&gt; ./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} \<br>
&gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --with-pkg-config-path=$PKG_CONFIG_PATH \<br>
&gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CPPFLAGS=-I%LOGICPD_DIR/rootfs/usr/include/gstreamer-0.10/gst \<br>
&gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LDFLAGS=-L%LOGICPD_DIR/rootfs/usr/lib \<br>
&gt;<br>
&gt;<br><br><br>
This is my working build section for 1.2.2, so not sure if it works<br>
well with 0.10:<br><br>
%Build<br>
lt_cv_path_NM=nm \<br>
./configure --prefix=%{_prefix} --host=$CFGHOST \<br>
&nbsp;&nbsp; --build=%{_build} \<br>
&nbsp;&nbsp; --disable-speex \<br>
&nbsp;&nbsp; --disable-shout2 \<br>
&nbsp;&nbsp; --disable-dv1394 \<br>
&nbsp;&nbsp; --disable-libdv --disable-libcaca \<br>
&nbsp;&nbsp; --disable-flac \<br>
&nbsp;&nbsp; --disable-cairo --disable-aalib \<br>
&nbsp;&nbsp; --disable-aalibtest&nbsp; \<br>
&nbsp;&nbsp; --with-sysroot=${DEV_IMAGE}<br>
perl -pi -e 's,^sys_lib_search_path_spec=.*,sys_lib_search_path_spec=,' libtool<br>
make<br><br><br>
I don't recall why I put the perl snippet in there.&nbsp; My commit note<br>
was "Beating the gst-* packages into submission so they build<br>
correctly."<br><br>
I usually poke around other BSP packages to see what they've done.<br>
buildroot uses gst 0.10, yocto is on recent versions.<br><br><br>
&gt; %install<br>
&gt;<br>
&gt; rm &ndash;rf $RPM_BUILD_ROOT<br>
&gt;<br>
&gt; make install DESTDIR=${RPM_BUILD_ROOT}%{pfx}<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; The following comment from StackOverflow suggests setting the dependency_libs section.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Have you looked inside the libfreetype.la file? Libtool .la files are just text files describing libraries. By default, they are commented. Search for the libdir and dependency_libs settings and check if they point to the right places.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; How can this be accomplished either in the configuration statement or via a libtool &ndash;finish command?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Contents of two .la files.&nbsp; Note the libdir is referenced the file system directory path under the cross-compilied target.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; # libgstinterfaces-0.10.la - a libtool library file<br>
&gt;<br>
&gt; # Generated by ltmain.sh (GNU libtool) 2.2.6b Debian-2.2.6b-2<br>
&gt;<br>
&gt; #<br>
&gt;<br>
&gt; # Please DO NOT delete this file!<br>
&gt;<br>
&gt; # It is necessary for linking the library.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; # The name that we can dlopen(3).<br>
&gt;<br>
&gt; dlname='libgstinterfaces-0.10.so.0'<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; # Names of this library.<br>
&gt;<br>
&gt; library_names='libgstinterfaces-0.10.so.0.21.0 libgstinterfaces-0.10.so.0 libgstinterfaces-0.10.so'<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; # The name of the static archive.<br>
&gt;<br>
&gt; old_library='libgstinterfaces-0.10.a'<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; # Linker flags that can not go in dependency_libs.<br>
&gt;<br>
&gt; inherited_linker_flags=' -pthread'<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; # Libraries that this one depends upon.<br>
&gt;<br>
&gt; dependency_libs=' -L/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rootfs/usr/lib -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0 -lm'<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; # Names of additional weak libraries provided by this library<br>
&gt;<br>
&gt; weak_library_names=''<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; # Version information for libgstinterfaces-0.10.<br>
&gt;<br>
&gt; current=21<br>
&gt;<br>
&gt; age=21<br>
&gt;<br>
&gt; revision=0<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; # Is this an already installed library?<br>
&gt;<br>
&gt; installed=yes<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; # Should we warn about portability when linking against -modules?<br>
&gt;<br>
&gt; shouldnotlink=no<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; # Files to dlopen/dlpreopen<br>
&gt;<br>
&gt; dlopen=''<br>
&gt;<br>
&gt; dlpreopen=''<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; # Directory that this library needs to be installed in:<br>
&gt;<br>
&gt; libdir='/usr/lib'<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; libgstaudio-0.10.la - a libtool library file<br>
&gt;<br>
&gt; # Generated by ltmain.sh (GNU libtool) 2.2.6b Debian-2.2.6b-2<br>
&gt;<br>
&gt; #<br>
&gt;<br>
&gt; # Please DO NOT delete this file!<br>
&gt;<br>
&gt; # It is necessary for linking the library.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; # The name that we can dlopen(3).<br>
&gt;<br>
&gt; dlname='libgstaudio-0.10.so.0'<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; # Names of this library.<br>
&gt;<br>
&gt; library_names='libgstaudio-0.10.so.0.21.0 libgstaudio-0.10.so.0 libgstaudio-0.10.so'<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; # The name of the static archive.<br>
&gt;<br>
&gt; old_library='libgstaudio-0.10.a'<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; # Linker flags that can not go in dependency_libs.<br>
&gt;<br>
&gt; inherited_linker_flags=' -pthread'<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; # Libraries that this one depends upon.<br>
&gt;<br>
&gt; dependency_libs=' -L/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rootfs/usr/lib -lgstbase-0.10 /usr/lib/libgstinterfaces-0.10.la -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0 -lm'<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; # Names of additional weak libraries provided by this library<br>
&gt;<br>
&gt; weak_library_names=''<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; # Version information for libgstaudio-0.10.<br>
&gt;<br>
&gt; current=21<br>
&gt;<br>
&gt; age=21<br>
&gt;<br>
&gt; revision=0<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; # Is this an already installed library?<br>
&gt;<br>
&gt; installed=yes<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; # Should we warn about portability when linking against -modules?<br>
&gt;<br>
&gt; shouldnotlink=no<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; # Files to dlopen/dlpreopen<br>
&gt;<br>
&gt; dlopen=''<br>
&gt;<br>
&gt; dlpreopen=''<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; # Directory that this library needs to be installed in:<br>
&gt;<br>
&gt; libdir='/usr/lib'<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Leonard Pimentel<br>
&gt;<br>
&gt; CEO &amp; CTO<br>
&gt;<br>
&gt; Lotus Research, LLC.<br>
&gt;<br>
&gt; Cell: (917) 834-7533<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; LTIB home page: <a href="http://ltib.org" target="_parent">http://ltib.org</a><br>
&gt;<br>
&gt; Ltib mailing list<br>
&gt; Ltib <at> nongnu.org<br>
&gt; <a href="https://lists.nongnu.org/mailman/listinfo/ltib" target="_parent">https://lists.nongnu.org/mailman/listinfo/ltib</a><br>
&gt;<br><br>
_______________________________________________<br>
LTIB home page: <a href="http://ltib.org" target="_parent">http://ltib.org</a><br><br>
Ltib mailing list<br>
Ltib <at> nongnu.org<br><a href="https://lists.nongnu.org/mailman/listinfo/ltib" target="_parent">https://lists.nongnu.org/mailman/listinfo/ltib</a><br>
</div>

</div>
</div>
</div>
Stuart Hughes | 26 Jan 09:50 2015

Re: [SOLVED] Cross-compilation errors preventing build

Hi Lionel,

No I don't think it's the same.

--disable-static just tell a build not to create the .a (static libraries) that may be part of the build.  The would be needed by something else wanting to statically link with that package's library.

The .la files are use to allow you to test shared libraries before you install them, they let you link to a non-install set of libraries.  This is fine for self-hosted development, but will not work when you are cross compiling.  In fact it's worse than that, it will make the cross compilation pick up host libraries (which will be the wrong architecture).

To try to clarify, if you installed the .la files on the target image, they could be used if you natively compiled on a board running that target image.  However due to the way LTIB works, it stages the target image in rootfs and libraries under rootfs/usr/lib are used during cross compilation.  That is why you need to remove these as any .la files under rootfs will poison your cross compilation.

Regards, Stuart

On 25/01/15 19:22, Leonard Pimentel wrote:
<!-- /* Font Definitions */ <at> font-face {font-family:Helvetica; panose-1:2 11 6 4 2 2 2 2 2 4;} <at> font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} <at> font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} <at> font-face {font-family:"Folio Lt BT"; panose-1:2 11 4 3 2 2 2 2 2 4;} <at> font-face {font-family:Consolas; panose-1:2 11 6 9 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman",serif;} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} code {mso-style-priority:99; font-family:"Courier New";} span.apple-converted-space {mso-style-name:apple-converted-space;} span.EmailStyle19 {mso-style-type:personal-reply; font-family:"Folio Lt BT",sans-serif; color:#1F497D;} .MsoChpDefault {mso-style-type:export-only; font-size:10.0pt;} <at> page WordSection1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in;} div.WordSection1 {page:WordSection1;} -->

Stuart,

 

I apologize for the delay.  Thank you for the clarification.   Is the option flag “—disable-static” effectively the same as removing the *.la and *.a files using the “rm –f $RPM_BUILD_ROOT/mypackage/*.la” command?

 

Regards,

 

Leo

 

From: Stuart Hughes [mailto:seh <at> zee2.com]
Sent: Sunday, January 18, 2015 1:23 PM
To: Leonard Pimentel
Cc: ltib <at> nongnu.org
Subject: Re: [SOLVED] Cross-compilation errors preventing build

 

Hi Leonard,

 

I’m not sure I completely follow, however it is essential that all the .la files are removed from the binary rpm file.

 

The reason is that the binary gets installed in the local project area on the host under rootfs/… any .la files under there will get picked up by later packages when cross compiling and will cause the compiler to try to link to libraries under /usr/lib /lib on the host, which is clearly not what you want.

 

Regards, Stuart

 

On 15 Jan 2015, at 18:22, Leonard Pimentel <leo <at> lotus-research.com> wrote:



Stuart Hughes,

 

Thank you.  Several times the cross-compilation would interrupt with errors and I could not understand why the *.la file was important to the compilation.

 

It was unforeseen that an innocuous statement would create cross-compilation build and install problems.

 

find $RPM_BUILD_ROOT%{pfx}%{_prefix}/lib/ -name “*.la” | xargs rm -f

 

After removing the above statement, warnings such “file moved” and the error “no such file or directory found” were commonplace.

 

 

 

 

From: Leonard Pimentel 
Sent: Wednesday, January 14, 2015 11:08 AM
To: 'ltib <at> nongnu.org'
Subject: Cross-compilation errors preventing build

 

General cross-compiling question

 

Are there two solutions (at minimum) to solve the following warning [file moved] and error [no such file]?  I am running into build errors.  Help is appreciated.

 

Error log snippet:

 

libtool: link: warning: library `/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rootfs/usr/lib/libgstvideo-0.10.la' was moved.

/bin/sed: can't read /usr/lib/libgstinterfaces-0.10.la: No such file or directory

libtool: link: `/usr/lib/libgstinterfaces-0.10.la' is not a valid libtool archive

make[3]: *** [libgstaudiofx.la] Error 1

make[3]: Leaving directory `/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rpm/BUILD/gst-plugins-good-0.10.25/gst/audiofx'

make[2]: *** [audiofx] Error 2

make[3]: Leaving directory `/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rpm/BUILD/gst-plugins-good-0.10.25/gst/debugutils'

make[2]: Leaving directory `/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rpm/BUILD/gst-plugins-good-0.10.25/gst'

make[1]: *** [all-recursive] Error 1

 

 

 

Snippets from spec file

 

%define pfx          /opt/freescale/rootfs/%{_target_cpu}

%define LOGICPD_DIR  /home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3

 

%Build

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:%LOGICPD_FS/usr/lib/pkconfig

 

lt_cv_path_NM=nm \

./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} \

                --with-pkg-config-path=$PKG_CONFIG_PATH \

                CPPFLAGS=-I%LOGICPD_DIR/rootfs/usr/include/gstreamer-0.10/gst \

                LDFLAGS=-L%LOGICPD_DIR/rootfs/usr/lib \

 

%install

rm –rf $RPM_BUILD_ROOT

make install DESTDIR=${RPM_BUILD_ROOT}%{pfx}

 

 

 

The following comment from StackOverflow suggests setting the dependency_libs section. 

 

Have you looked inside the libfreetype.la file? Libtool .la files are just text files describing libraries. By default, they are commented. Search for the libdir and dependency_libs settings and check if they point to the right places.

 

How can this be accomplished either in the configuration statement or via a libtool –finish command?

 

Contents of two .la files.  Note the libdir is referenced the file system directory path under the cross-compilied target.

 

# libgstinterfaces-0.10.la - a libtool library file

# Generated by ltmain.sh (GNU libtool) 2.2.6b Debian-2.2.6b-2

#

# Please DO NOT delete this file!

# It is necessary for linking the library.

 

# The name that we can dlopen(3).

dlname='libgstinterfaces-0.10.so.0'

 

# Names of this library.

library_names='libgstinterfaces-0.10.so.0.21.0 libgstinterfaces-0.10.so.0 libgstinterfaces-0.10.so'

 

# The name of the static archive.

old_library='libgstinterfaces-0.10.a'

 

# Linker flags that can not go in dependency_libs.

inherited_linker_flags=' -pthread'

 

# Libraries that this one depends upon.

dependency_libs=' -L/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rootfs/usr/lib -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0 -lm'

 

# Names of additional weak libraries provided by this library

weak_library_names=''

 

# Version information for libgstinterfaces-0.10.

current=21

age=21

revision=0

 

# Is this an already installed library?

installed=yes

 

# Should we warn about portability when linking against -modules?

shouldnotlink=no

 

# Files to dlopen/dlpreopen

dlopen=''

dlpreopen=''

 

# Directory that this library needs to be installed in:

libdir='/usr/lib'

 

 

 

 

libgstaudio-0.10.la - a libtool library file

# Generated by ltmain.sh (GNU libtool) 2.2.6b Debian-2.2.6b-2

#

# Please DO NOT delete this file!

# It is necessary for linking the library.

 

# The name that we can dlopen(3).

dlname='libgstaudio-0.10.so.0'

 

# Names of this library.

library_names='libgstaudio-0.10.so.0.21.0 libgstaudio-0.10.so.0 libgstaudio-0.10.so'

 

# The name of the static archive.

old_library='libgstaudio-0.10.a'

 

# Linker flags that can not go in dependency_libs.

inherited_linker_flags=' -pthread'

 

# Libraries that this one depends upon.

dependency_libs=' -L/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rootfs/usr/lib -lgstbase-0.10 /usr/lib/libgstinterfaces-0.10.la -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0 -lm'

 

# Names of additional weak libraries provided by this library

weak_library_names=''

 

# Version information for libgstaudio-0.10.

current=21

age=21

revision=0

 

# Is this an already installed library?

installed=yes

 

# Should we warn about portability when linking against -modules?

shouldnotlink=no

 

# Files to dlopen/dlpreopen

dlopen=''

dlpreopen=''

 

# Directory that this library needs to be installed in:

libdir='/usr/lib'

 

 

 

Leonard Pimentel

CEO & CTO

Lotus Research, LLC.

Cell: (917) 834-7533

 


<div>
    <div class="moz-cite-prefix">Hi Lionel,<br><br>
      No I don't think it's the same.<br><br>
      --disable-static just tell a build not to create the .a (static
      libraries) that may be part of the build.&nbsp; The would be needed by
      something else wanting to statically link with that package's
      library.<br><br>
      The .la files are use to allow you to test shared libraries before
      you install them, they let you link to a non-install set of
      libraries.&nbsp; This is fine for self-hosted development, but will not
      work when you are cross compiling.&nbsp; In fact it's worse than that,
      it will make the cross compilation pick up host libraries (which
      will be the wrong architecture).<br><br>
      To try to clarify, if you installed the .la files on the target
      image, they could be used if you natively compiled on a board
      running that target image.&nbsp; However due to the way LTIB works, it
      stages the target image in rootfs and libraries under
      rootfs/usr/lib are used during cross compilation.&nbsp; That is why you
      need to remove these as any .la files under rootfs will poison
      your cross compilation.<br><br>
      Regards, Stuart<br><br>
      On 25/01/15 19:22, Leonard Pimentel wrote:<br>
</div>
    <blockquote cite="mid:SN2PR0601MB783EFC5873095B5AD76B64196340 <at> SN2PR0601MB783.namprd06.prod.outlook.com" type="cite">
      &lt;!--
/* Font Definitions */
 <at> font-face
	{font-family:Helvetica;
	panose-1:2 11 6 4 2 2 2 2 2 4;}
 <at> font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
 <at> font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
 <at> font-face
	{font-family:"Folio Lt BT";
	panose-1:2 11 4 3 2 2 2 2 2 4;}
 <at> font-face
	{font-family:Consolas;
	panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
code
	{mso-style-priority:99;
	font-family:"Courier New";}
span.apple-converted-space
	{mso-style-name:apple-converted-space;}
span.EmailStyle19
	{mso-style-type:personal-reply;
	font-family:"Folio Lt BT",sans-serif;
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
 <at> page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--&gt;<div class="WordSection1">
        <p class="MsoNormal"><span>Stuart,<p></p></span></p>
        <p class="MsoNormal"><span><p>&nbsp;</p></span></p>
        <p class="MsoNormal"><span>I apologize for the
            delay.&nbsp; Thank you for the clarification.&nbsp;&nbsp; Is the option
            flag &ldquo;&mdash;disable-static&rdquo; effectively the same as removing the
            *.la and *.a files using the &ldquo;rm &ndash;f
            $RPM_BUILD_ROOT/mypackage/*.la&rdquo; command?<p></p></span></p>
        <p class="MsoNormal"><span><p>&nbsp;</p></span></p>
        <p class="MsoNormal"><span>Regards,<p></p></span></p>
        <p class="MsoNormal"><span><p>&nbsp;</p></span></p>
        <p class="MsoNormal"><span>Leo
            <p></p></span></p>
        <p class="MsoNormal"><span><p>&nbsp;</p></span></p>
        <div>
          <div>
            <div>
              <p class="MsoNormal"><span>From:</span><span>
                  Stuart Hughes [<a class="moz-txt-link-freetext" href="mailto:seh <at> zee2.com">mailto:seh <at> zee2.com</a>]
                  <br>Sent: Sunday, January 18, 2015 1:23 PM<br>To: Leonard Pimentel<br>Cc: <a class="moz-txt-link-abbreviated" href="mailto:ltib <at> nongnu.org">ltib <at> nongnu.org</a><br>Subject: Re: [SOLVED] Cross-compilation errors
                  preventing build<p></p></span></p>
            </div>
          </div>
          <p class="MsoNormal"><p>&nbsp;</p></p>
          <p class="MsoNormal">Hi Leonard,<p></p></p>
          <div>
            <p class="MsoNormal"><p>&nbsp;</p></p>
          </div>
          <div>
            <p class="MsoNormal">I&rsquo;m not sure I completely follow,
              however it is essential that all the .la files are removed
              from the binary rpm file.<p></p></p>
          </div>
          <div>
            <p class="MsoNormal"><p>&nbsp;</p></p>
          </div>
          <div>
            <p class="MsoNormal">The reason is that the binary gets
              installed in the local project area on the host under
              rootfs/&hellip; any .la files under there will get picked up by
              later packages when cross compiling and will cause the
              compiler to try to link to libraries under /usr/lib /lib
              on the host, which is clearly not what you want.<p></p></p>
          </div>
          <div>
            <p class="MsoNormal"><p>&nbsp;</p></p>
          </div>
          <div>
            <p class="MsoNormal">Regards, Stuart<p></p></p>
          </div>
          <div>
            <p class="MsoNormal"><p>&nbsp;</p></p>
            <div>
              <div>
                <p class="MsoNormal">On 15 Jan 2015, at 18:22, Leonard
                  Pimentel &lt;<a moz-do-not-send="true" href="mailto:leo <at> lotus-research.com">leo <at> lotus-research.com</a>&gt;
                  wrote:<p></p></p>
              </div>
              <p class="MsoNormal"><br><br><p></p></p>
              <blockquote>
                <div>
                  <div>
                    <p class="MsoNormal"><span>Stuart Hughes,</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>Thank you. &nbsp;Several
                        times the cross-compilation would interrupt with
                        errors and I could not understand why the *.la
                        file was important to the compilation.</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>It was unforeseen that
                        an innocuous statement would create
                        cross-compilation build and install problems.</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>find
                        $RPM_BUILD_ROOT%{pfx}%{_prefix}/lib/ -name
                        &ldquo;*.la&rdquo; | xargs rm -f</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>After removing the above
                        statement, warnings such &ldquo;file moved&rdquo; and the
                        error &ldquo;no such file or directory found&rdquo; were
                        commonplace.</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span><a moz-do-not-send="true" href="http://lists.gnu.org/archive/html/ltib/2010-04/msg00127.html"><span>http://lists.gnu.org/archive/html/ltib/2010-04/msg00127.html</span></a></span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;</span><span><p></p></span></p>
                  </div>
                  <div>
                    <div>
                      <div>
                        <p class="MsoNormal"><span>From:</span><span class="apple-converted-space"><span>&nbsp;</span></span><span>Leonard

                            Pimentel<span class="apple-converted-space">&nbsp;</span><br>Sent:<span class="apple-converted-space">&nbsp;</span>Wednesday,
                            January 14, 2015 11:08 AM<br>To:<span class="apple-converted-space">&nbsp;</span>'<a moz-do-not-send="true" href="mailto:ltib <at> nongnu.org"><span>ltib <at> nongnu.org</span></a>'<br>Subject:<span class="apple-converted-space">&nbsp;</span>Cross-compilation
                            errors preventing build<p></p></span></p>
                      </div>
                    </div>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>General cross-compiling
                        question</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>Are there two solutions
                        (at minimum) to solve the following warning
                        [file moved] and error [no such file]?&nbsp; I am
                        running into build errors.&nbsp; Help is appreciated.</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>Error log snippet:</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>libtool: link: warning:
                        library
                        `/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rootfs/usr/lib/libgstvideo-0.10.la'
                        was moved.</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>/bin/sed: can't read
                        /usr/lib/libgstinterfaces-0.10.la: No such file
                        or directory</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>libtool: link:
                        `/usr/lib/libgstinterfaces-0.10.la' is not a
                        valid libtool archive</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>make[3]: ***
                        [libgstaudiofx.la] Error 1</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>make[3]: Leaving
                        directory
`/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rpm/BUILD/gst-plugins-good-0.10.25/gst/audiofx'</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>make[2]: *** [audiofx]
                        Error 2</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>make[3]: Leaving
                        directory
`/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rpm/BUILD/gst-plugins-good-0.10.25/gst/debugutils'</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>make[2]: Leaving
                        directory
`/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rpm/BUILD/gst-plugins-good-0.10.25/gst'</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>make[1]: ***
                        [all-recursive] Error 1</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>Snippets from spec
                          file</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>%define pfx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        /opt/freescale/rootfs/%{_target_cpu}</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>%define LOGICPD_DIR&nbsp;
                        /home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>%Build</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>export
                        PKG_CONFIG_PATH=$PKG_CONFIG_PATH:%LOGICPD_FS/usr/lib/pkconfig</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>lt_cv_path_NM=nm \</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>./configure
                        --prefix=%{_prefix} --host=$CFGHOST
                        --build=%{_build} \</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
                        --with-pkg-config-path=$PKG_CONFIG_PATH \</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
                        CPPFLAGS=-I%LOGICPD_DIR/rootfs/usr/include/gstreamer-0.10/gst
                        \</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
                        LDFLAGS=-L%LOGICPD_DIR/rootfs/usr/lib \</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>%install</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>rm &ndash;rf $RPM_BUILD_ROOT</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>make install
                        DESTDIR=${RPM_BUILD_ROOT}%{pfx}</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>The following comment
                        from StackOverflow suggests setting the
                        dependency_libs section.&nbsp;</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>Have
                        you looked inside the<span class="apple-converted-space">&nbsp;</span></span><span>libfreetype.la</span><span class="apple-converted-space"><span>&nbsp;</span></span><span>file?

                        Libtool<span class="apple-converted-space">&nbsp;</span></span><span>.la</span><span class="apple-converted-space"><span>&nbsp;</span></span><span>files

                        are just text files describing libraries. By
                        default, they are commented. Search for the<span class="apple-converted-space">&nbsp;</span></span><span>libdir</span><span class="apple-converted-space"><span>&nbsp;</span></span><span>and<span class="apple-converted-space">&nbsp;</span></span><span>dependency_libs</span><span class="apple-converted-space"><span>&nbsp;</span></span><span>settings

                        and check if they point to the right places.</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>How can this be
                        accomplished either in the configuration
                        statement or via a libtool &ndash;finish command?</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>Contents
                        of two .la files.&nbsp; Note the libdir is referenced
                        the file system directory path under the
                        cross-compilied target.<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>#
                        libgstinterfaces-0.10.la - a libtool library
                        file<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>#
                        Generated by ltmain.sh (GNU libtool) 2.2.6b
                        Debian-2.2.6b-2<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>#<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>#
                        Please DO NOT delete this file!<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>#
                        It is necessary for linking the library.<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>#
                        The name that we can dlopen(3).<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>dlname='libgstinterfaces-0.10.so.0'<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>#
                        Names of this library.<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>library_names='libgstinterfaces-0.10.so.0.21.0
                        libgstinterfaces-0.10.so.0
                        libgstinterfaces-0.10.so'<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>#
                        The name of the static archive.<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>old_library='libgstinterfaces-0.10.a'<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>#
                        Linker flags that can not go in dependency_libs.<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>inherited_linker_flags='
                        -pthread'<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>#
                        Libraries that this one depends upon.<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>dependency_libs='
                        -L/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rootfs/usr/lib
                        -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0
                        -lgthread-2.0 -lrt -lxml2 -lglib-2.0 -lm'<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>#
                        Names of additional weak libraries provided by
                        this library<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>weak_library_names=''<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>#
                        Version information for libgstinterfaces-0.10.<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>current=21<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>age=21<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>revision=0<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>#
                        Is this an already installed library?<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>installed=yes<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>#
                        Should we warn about portability when linking
                        against -modules?<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>shouldnotlink=no<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>#
                        Files to dlopen/dlpreopen<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>dlopen=''<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>dlpreopen=''<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>#
                        Directory that this library needs to be
                        installed in:<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>libdir='/usr/lib'<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>libgstaudio-0.10.la
                        - a libtool library file<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>#
                        Generated by ltmain.sh (GNU libtool) 2.2.6b
                        Debian-2.2.6b-2<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>#<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>#
                        Please DO NOT delete this file!<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>#
                        It is necessary for linking the library.<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>#
                        The name that we can dlopen(3).<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>dlname='libgstaudio-0.10.so.0'<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>#
                        Names of this library.<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>library_names='libgstaudio-0.10.so.0.21.0
                        libgstaudio-0.10.so.0 libgstaudio-0.10.so'<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>#
                        The name of the static archive.<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>old_library='libgstaudio-0.10.a'<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>#
                        Linker flags that can not go in dependency_libs.<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>inherited_linker_flags='
                        -pthread'<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>#
                        Libraries that this one depends upon.<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>dependency_libs='
                        -L/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rootfs/usr/lib
                        -lgstbase-0.10 /usr/lib/libgstinterfaces-0.10.la
                        -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0
                        -lgthread-2.0 -lrt -lxml2 -lglib-2.0 -lm'<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>#
                        Names of additional weak libraries provided by
                        this library<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>weak_library_names=''<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>#
                        Version information for libgstaudio-0.10.<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>current=21<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>age=21<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>revision=0<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>#
                        Is this an already installed library?<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>installed=yes<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>#
                        Should we warn about portability when linking
                        against -modules?<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>shouldnotlink=no<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>#
                        Files to dlopen/dlpreopen<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>dlopen=''<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>dlpreopen=''<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>#
                        Directory that this library needs to be
                        installed in:<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>libdir='/usr/lib'<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;<p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>&nbsp;<p></p></span></p>
                  </div>
                  <div>
                    <div>
                      <p class="MsoNormal"><span>&nbsp;<p></p></span></p>
                    </div>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>Leonard
                          Pimentel</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>CEO
                          &amp; CTO</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>Lotus
                          Research, LLC.</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span>Cell:
                          (917) 834-7533</span><span><p></p></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span><a moz-do-not-send="true" href="http://www.linkedin.com/pub/leonard-pimentel/3/a0a/796"><span>&lt;image001.png&gt;</span></a><p></p></span></p>
                  </div>
                </div>
              </blockquote>
            </div>
            <p class="MsoNormal"><p>&nbsp;</p></p>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
</div>
Leonard Pimentel | 15 Jan 19:22 2015

Re: [SOLVED] Cross-compilation errors preventing build

Stuart Hughes,

 

Thank you.  Several times the cross-compilation would interrupt with errors and I could not understand why the *.la file was important to the compilation.

 

It was unforeseen that an innocuous statement would create cross-compilation build and install problems.

 

find $RPM_BUILD_ROOT%{pfx}%{_prefix}/lib/ -name “*.la” | xargs rm -f

 

After removing the above statement, warnings such “file moved” and the error “no such file or directory found” were commonplace.

 

http://lists.gnu.org/archive/html/ltib/2010-04/msg00127.html

 

 

 

From: Leonard Pimentel
Sent: Wednesday, January 14, 2015 11:08 AM
To: 'ltib <at> nongnu.org'
Subject: Cross-compilation errors preventing build

 

General cross-compiling question

 

Are there two solutions (at minimum) to solve the following warning [file moved] and error [no such file]?  I am running into build errors.  Help is appreciated.

 

Error log snippet:

 

libtool: link: warning: library `/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rootfs/usr/lib/libgstvideo-0.10.la' was moved.

/bin/sed: can't read /usr/lib/libgstinterfaces-0.10.la: No such file or directory

libtool: link: `/usr/lib/libgstinterfaces-0.10.la' is not a valid libtool archive

make[3]: *** [libgstaudiofx.la] Error 1

make[3]: Leaving directory `/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rpm/BUILD/gst-plugins-good-0.10.25/gst/audiofx'

make[2]: *** [audiofx] Error 2

make[3]: Leaving directory `/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rpm/BUILD/gst-plugins-good-0.10.25/gst/debugutils'

make[2]: Leaving directory `/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rpm/BUILD/gst-plugins-good-0.10.25/gst'

make[1]: *** [all-recursive] Error 1

 

 

 

Snippets from spec file

 

%define pfx          /opt/freescale/rootfs/%{_target_cpu}

%define LOGICPD_DIR  /home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3

 

%Build

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:%LOGICPD_FS/usr/lib/pkconfig

 

lt_cv_path_NM=nm \

./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} \

                --with-pkg-config-path=$PKG_CONFIG_PATH \

                CPPFLAGS=-I%LOGICPD_DIR/rootfs/usr/include/gstreamer-0.10/gst \

                LDFLAGS=-L%LOGICPD_DIR/rootfs/usr/lib \

 

%install

rm –rf $RPM_BUILD_ROOT

make install DESTDIR=${RPM_BUILD_ROOT}%{pfx}

 

 

 

The following comment from StackOverflow suggests setting the dependency_libs section. 

 

Have you looked inside the libfreetype.la file? Libtool .la files are just text files describing libraries. By default, they are commented. Search for the libdir and dependency_libs settings and check if they point to the right places.

 

How can this be accomplished either in the configuration statement or via a libtool –finish command?

 

Contents of two .la files.  Note the libdir is referenced the file system directory path under the cross-compilied target.

 

# libgstinterfaces-0.10.la - a libtool library file

# Generated by ltmain.sh (GNU libtool) 2.2.6b Debian-2.2.6b-2

#

# Please DO NOT delete this file!

# It is necessary for linking the library.

 

# The name that we can dlopen(3).

dlname='libgstinterfaces-0.10.so.0'

 

# Names of this library.

library_names='libgstinterfaces-0.10.so.0.21.0 libgstinterfaces-0.10.so.0 libgstinterfaces-0.10.so'

 

# The name of the static archive.

old_library='libgstinterfaces-0.10.a'

 

# Linker flags that can not go in dependency_libs.

inherited_linker_flags=' -pthread'

 

# Libraries that this one depends upon.

dependency_libs=' -L/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rootfs/usr/lib -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0 -lm'

 

# Names of additional weak libraries provided by this library

weak_library_names=''

 

# Version information for libgstinterfaces-0.10.

current=21

age=21

revision=0

 

# Is this an already installed library?

installed=yes

 

# Should we warn about portability when linking against -modules?

shouldnotlink=no

 

# Files to dlopen/dlpreopen

dlopen=''

dlpreopen=''

 

# Directory that this library needs to be installed in:

libdir='/usr/lib'

 

 

 

 

libgstaudio-0.10.la - a libtool library file

# Generated by ltmain.sh (GNU libtool) 2.2.6b Debian-2.2.6b-2

#

# Please DO NOT delete this file!

# It is necessary for linking the library.

 

# The name that we can dlopen(3).

dlname='libgstaudio-0.10.so.0'

 

# Names of this library.

library_names='libgstaudio-0.10.so.0.21.0 libgstaudio-0.10.so.0 libgstaudio-0.10.so'

 

# The name of the static archive.

old_library='libgstaudio-0.10.a'

 

# Linker flags that can not go in dependency_libs.

inherited_linker_flags=' -pthread'

 

# Libraries that this one depends upon.

dependency_libs=' -L/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rootfs/usr/lib -lgstbase-0.10 /usr/lib/libgstinterfaces-0.10.la -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0 -lm'

 

# Names of additional weak libraries provided by this library

weak_library_names=''

 

# Version information for libgstaudio-0.10.

current=21

age=21

revision=0

 

# Is this an already installed library?

installed=yes

 

# Should we warn about portability when linking against -modules?

shouldnotlink=no

 

# Files to dlopen/dlpreopen

dlopen=''

dlpreopen=''

 

# Directory that this library needs to be installed in:

libdir='/usr/lib'

 

 

 

Leonard Pimentel

CEO & CTO

Lotus Research, LLC.

Cell: (917) 834-7533

 

<div>
<div class="WordSection1">
<p class="MsoNormal"><span>Stuart Hughes,<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>Thank you. &nbsp;Several times the cross-compilation would interrupt with errors and I could not understand why the *.la file was important to the compilation.
<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>It was unforeseen that an innocuous statement would create cross-compilation build and install problems.<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>find $RPM_BUILD_ROOT%{pfx}%{_prefix}/lib/ -name &ldquo;*.la&rdquo; | xargs rm -f<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>After removing the above statement, warnings such &ldquo;file moved&rdquo; and the error &ldquo;no such file or directory found&rdquo; were commonplace.<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span><a href="http://lists.gnu.org/archive/html/ltib/2010-04/msg00127.html">http://lists.gnu.org/archive/html/ltib/2010-04/msg00127.html</a><p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<div>
<div>
<p class="MsoNormal">From: Leonard Pimentel <br>Sent: Wednesday, January 14, 2015 11:08 AM<br>To: 'ltib <at> nongnu.org'<br>Subject: Cross-compilation errors preventing build<p></p></p>
</div>
</div>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><span>General cross-compiling question<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>Are there two solutions (at minimum) to solve the following warning [file moved] and error [no such file]?&nbsp; I am running into build errors.&nbsp; Help is appreciated.<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>Error log snippet:<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>libtool: link: warning: library `/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rootfs/usr/lib/libgstvideo-0.10.la' was moved.<p></p></span></p>
<p class="MsoNormal"><span>/bin/sed: can't read /usr/lib/libgstinterfaces-0.10.la: No such file or directory<p></p></span></p>
<p class="MsoNormal"><span>libtool: link: `/usr/lib/libgstinterfaces-0.10.la' is not a valid libtool archive<p></p></span></p>
<p class="MsoNormal"><span>make[3]: *** [libgstaudiofx.la] Error 1<p></p></span></p>
<p class="MsoNormal"><span>make[3]: Leaving directory `/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rpm/BUILD/gst-plugins-good-0.10.25/gst/audiofx'<p></p></span></p>
<p class="MsoNormal"><span>make[2]: *** [audiofx] Error 2<p></p></span></p>
<p class="MsoNormal"><span>make[3]: Leaving directory `/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rpm/BUILD/gst-plugins-good-0.10.25/gst/debugutils'<p></p></span></p>
<p class="MsoNormal"><span>make[2]: Leaving directory `/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rpm/BUILD/gst-plugins-good-0.10.25/gst'<p></p></span></p>
<p class="MsoNormal"><span>make[1]: *** [all-recursive] Error 1<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>Snippets from spec file<p></p></span></p>
<p class="MsoNormal"><span><p><span>&nbsp;</span></p></span></p>
<p class="MsoNormal"><span>%define pfx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /opt/freescale/rootfs/%{_target_cpu}<p></p></span></p>
<p class="MsoNormal"><span>%define LOGICPD_DIR&nbsp; /home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>%Build<p></p></span></p>
<p class="MsoNormal"><span>export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:%LOGICPD_FS/usr/lib/pkconfig<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>lt_cv_path_NM=nm \<p></p></span></p>
<p class="MsoNormal"><span>./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} \<p></p></span></p>
<p class="MsoNormal"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; --with-pkg-config-path=$PKG_CONFIG_PATH \<p></p></span></p>
<p class="MsoNormal"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CPPFLAGS=-I%LOGICPD_DIR/rootfs/usr/include/gstreamer-0.10/gst \<p></p></span></p>
<p class="MsoNormal"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; LDFLAGS=-L%LOGICPD_DIR/rootfs/usr/lib \<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>%install<p></p></span></p>
<p class="MsoNormal"><span>rm &ndash;rf $RPM_BUILD_ROOT<p></p></span></p>
<p class="MsoNormal"><span>make install DESTDIR=${RPM_BUILD_ROOT}%{pfx}<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>The following comment from StackOverflow suggests setting the dependency_libs section.&nbsp;
<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>Have you looked inside the<span class="apple-converted-space">&nbsp;</span></span><span>libfreetype.la</span><span class="apple-converted-space"><span>&nbsp;</span></span><span>file?
 Libtool<span class="apple-converted-space">&nbsp;</span></span><span>.la</span><span class="apple-converted-space"><span>&nbsp;</span></span><span>files
 are just text files describing libraries. By default, they are commented. Search for the<span class="apple-converted-space">&nbsp;</span></span><span>libdir</span><span class="apple-converted-space"><span>&nbsp;</span></span><span>and<span class="apple-converted-space">&nbsp;</span></span><span>dependency_libs</span><span class="apple-converted-space"><span>&nbsp;</span></span><span>settings
 and check if they point to the right places.</span><span><p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>How can this be accomplished either in the configuration statement or via a libtool &ndash;finish command?<p></p></span></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Contents of two .la files.&nbsp; Note the libdir is referenced the file system directory path under the cross-compilied target.
<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"># libgstinterfaces-0.10.la - a libtool library file<p></p></p>
<p class="MsoNormal"># Generated by ltmain.sh (GNU libtool) 2.2.6b Debian-2.2.6b-2<p></p></p>
<p class="MsoNormal">#<p></p></p>
<p class="MsoNormal"># Please DO NOT delete this file!<p></p></p>
<p class="MsoNormal"># It is necessary for linking the library.<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"># The name that we can dlopen(3).<p></p></p>
<p class="MsoNormal">dlname='libgstinterfaces-0.10.so.0'<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"># Names of this library.<p></p></p>
<p class="MsoNormal">library_names='libgstinterfaces-0.10.so.0.21.0 libgstinterfaces-0.10.so.0 libgstinterfaces-0.10.so'<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"># The name of the static archive.<p></p></p>
<p class="MsoNormal">old_library='libgstinterfaces-0.10.a'<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"># Linker flags that can not go in dependency_libs.<p></p></p>
<p class="MsoNormal">inherited_linker_flags=' -pthread'<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"># Libraries that this one depends upon.<p></p></p>
<p class="MsoNormal">dependency_libs=' -L/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rootfs/usr/lib -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0 -lm'<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"># Names of additional weak libraries provided by this library<p></p></p>
<p class="MsoNormal">weak_library_names=''<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"># Version information for libgstinterfaces-0.10.<p></p></p>
<p class="MsoNormal">current=21<p></p></p>
<p class="MsoNormal">age=21<p></p></p>
<p class="MsoNormal">revision=0<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"># Is this an already installed library?<p></p></p>
<p class="MsoNormal">installed=yes<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"># Should we warn about portability when linking against -modules?<p></p></p>
<p class="MsoNormal">shouldnotlink=no<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"># Files to dlopen/dlpreopen<p></p></p>
<p class="MsoNormal">dlopen=''<p></p></p>
<p class="MsoNormal">dlpreopen=''<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"># Directory that this library needs to be installed in:<p></p></p>
<p class="MsoNormal">libdir='/usr/lib'<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">libgstaudio-0.10.la - a libtool library file<p></p></p>
<p class="MsoNormal"># Generated by ltmain.sh (GNU libtool) 2.2.6b Debian-2.2.6b-2<p></p></p>
<p class="MsoNormal">#<p></p></p>
<p class="MsoNormal"># Please DO NOT delete this file!<p></p></p>
<p class="MsoNormal"># It is necessary for linking the library.<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"># The name that we can dlopen(3).<p></p></p>
<p class="MsoNormal">dlname='libgstaudio-0.10.so.0'<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"># Names of this library.<p></p></p>
<p class="MsoNormal">library_names='libgstaudio-0.10.so.0.21.0 libgstaudio-0.10.so.0 libgstaudio-0.10.so'<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"># The name of the static archive.<p></p></p>
<p class="MsoNormal">old_library='libgstaudio-0.10.a'<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"># Linker flags that can not go in dependency_libs.<p></p></p>
<p class="MsoNormal">inherited_linker_flags=' -pthread'<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"># Libraries that this one depends upon.<p></p></p>
<p class="MsoNormal">dependency_libs=' -L/home/leo/logic/Logic_BSPs/Linux_3.0/1026167_LogicPD_Linux_BSP_2.4-3/rootfs/usr/lib -lgstbase-0.10 /usr/lib/libgstinterfaces-0.10.la -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0 -lm'<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"># Names of additional weak libraries provided by this library<p></p></p>
<p class="MsoNormal">weak_library_names=''<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"># Version information for libgstaudio-0.10.<p></p></p>
<p class="MsoNormal">current=21<p></p></p>
<p class="MsoNormal">age=21<p></p></p>
<p class="MsoNormal">revision=0<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"># Is this an already installed library?<p></p></p>
<p class="MsoNormal">installed=yes<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"># Should we warn about portability when linking against -modules?<p></p></p>
<p class="MsoNormal">shouldnotlink=no<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"># Files to dlopen/dlpreopen<p></p></p>
<p class="MsoNormal">dlopen=''<p></p></p>
<p class="MsoNormal">dlpreopen=''<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"># Directory that this library needs to be installed in:<p></p></p>
<p class="MsoNormal">libdir='/usr/lib'<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<div>
<p class="MsoNormal"><p>&nbsp;</p></p>
</div>
<p class="MsoNormal">Leonard Pimentel<p></p></p>
<p class="MsoNormal">CEO &amp; CTO<p></p></p>
<p class="MsoNormal">Lotus Research, LLC.<p></p></p>
<p class="MsoNormal">Cell: (917) 834-7533<p></p></p>
<p class="MsoNormal"><a href="http://www.linkedin.com/pub/leonard-pimentel/3/a0a/796"><span></span></a><p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
</div>
</div>

Gmane