[prev in list] [next in list] [prev in thread] [next in thread] 

List:       microblaze-uclinux
Subject:    [microblaze-uclinux] error with proc
From:       Chris Enrique <microdevel () googlemail ! com>
Date:       2010-09-28 11:27:29
Message-ID: AANLkTikvStKZow5BL6QbbJqOaiWUNGbGB9vDPTt8ecR9 () mail ! gmail ! com
[Download RAW message or body]

---------- Forwarded message ----------
From: Chris Enrique <microdevel@googlemail.com>
Date: 2010/9/28
Subject: Re: [microblaze-uclinux] error with proc
To: Alex Belits <alexb@meyersound.com>


Problem solved. If i link it correctly against -lutil it works. So i can
report, i have working rshd, rlogind, rsh and rlogin for your linux system.
do you want to include it to your repository?
i would love to provide you the sources.

regards, chris

2010/9/27 Chris Enrique <microdevel@googlemail.com>

Hello Alex,
>
> rsh porting is almost done. rsh,rlogin and rshd are already running. i'm
> having some trouble with rlogind. it tries to use "openpty" function defined
> in pty.h. this should be provided by uclibc, right?
> unfortunately when compiling the openpty is not found:
>
> ucfront-gcc mb-gcc  -mno-xl-soft-mul -mxl-barrel-shift -mcpu=v7.20.a
> -Wl,-elf2flt -mno-xl-soft-mul -mxl-barrel-shift -mcpu=v7.20.a  -Wl,-elf2flt
> -lutil -o in.rlogind rlogind.o
> rlogind.o: In function `main':
> /loc/cn/projects/Spartan3A-DSP/mb-linux-msli/uClinux-dist/user/rsh-package/rlogind.c:217:
> undefined reference to `openpty'
> /loc/cn/projects/Spartan3A-DSP/mb-linux-msli/uClinux-dist/user/rsh-package/rlogind.c:369:
> undefined reference to `logout'
> /loc/cn/projects/Spartan3A-DSP/mb-linux-msli/uClinux-dist/user/rsh-package/rlogind.c:370:
> undefined reference to `logwtmp'
> /loc/cn/projects/Spartan3A-DSP/mb-linux-msli/uClinux-dist/user/rsh-package/rlogind.c:383:
> undefined reference to `login_tty'
> collect2: ld returned 1 exit status
>
> i read that this function is part of lutil, so i tried to link it against
> -lutil, but no success. uclibc is configured to have pseudo terminal
> support.
> what might be wrong in your opinion?
>
> thanks chris
>
> 2010/9/23 Alex Belits <alexb@meyersound.com>
>
>>  On 09/23/2010 08:39 AM, Chris Enrique wrote:
>>
>>  how did you develop apps like dmitripaneld or midiloopback for your
>>> board? did you set up some special makefile to build those apps under
>>> development independent from kernel (like the petalinux-user-app
>>> functionality) or did you just integrate it in the repo and build it by
>>> running the whole kernel/user make process?
>>>
>>
>> I integrated new applications into the build process by making a directory
>> under uClinux-dist/user with traditional Makefile and adding
>> application-specific options to uClinux-dist/user/Kconfig and
>> uClinux-dist/user/Makefile . To build applications independently, I
>> reproduced the environment at the time of the build and used it in a wrapper
>> script that runs build only for the current directory but with environment
>> that should be set at the build time. Unfortunately this local build
>> procedure is ridiculously ugly and should be replaced with something better
>> before I can recommend it for anyone else to use.
>>
>>
>> --
>> Alex
>>
>> NOTICE: This email may contain confidential information.  Please see
>> http://www.meyersound.com/confidential/ for our complete policy.
>>
>
>

[Attachment #3 (text/html)]

<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b \
class="gmail_sendername">Chris Enrique</b> <span dir="ltr">&lt;<a \
                href="mailto:microdevel@googlemail.com">microdevel@googlemail.com</a>&gt;</span><br>
                
Date: 2010/9/28<br>Subject: Re: [microblaze-uclinux] error with proc<br>To: Alex \
Belits &lt;<a href="mailto:alexb@meyersound.com">alexb@meyersound.com</a>&gt;<br><br><br>Problem \
solved. If i link it correctly against -lutil it works. So i can report, i have \
working rshd, rlogind, rsh and rlogin for your linux system. do you want to include \
it to your repository?<br> i would love to provide you the sources.<br>
<br>regards, chris<br><br><div class="gmail_quote">2010/9/27 Chris Enrique <span \
dir="ltr">&lt;<a href="mailto:microdevel@googlemail.com" \
target="_blank">microdevel@googlemail.com</a>&gt;</span><div><div></div><div \
class="h5"> <br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; \
border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> Hello \
Alex,<br><br>rsh porting is almost done. rsh,rlogin and rshd are already running. \
i&#39;m having some trouble with rlogind. it tries to use &quot;openpty&quot; \
function defined in pty.h. this should be provided by uclibc, right?<br>


unfortunately when compiling the openpty is not found:<br><br>
  


  
  
  ucfront-gcc mb-gcc  -mno-xl-soft-mul -mxl-barrel-shift -mcpu=v7.20.a  -Wl,-elf2flt \
-mno-xl-soft-mul -mxl-barrel-shift -mcpu=v7.20.a  -Wl,-elf2flt -lutil -o in.rlogind \
rlogind.o <br>rlogind.o: In function `main&#39;:<br>


/loc/cn/projects/Spartan3A-DSP/mb-linux-msli/uClinux-dist/user/rsh-package/rlogind.c:217: \
undefined reference to \
`openpty&#39;<br>/loc/cn/projects/Spartan3A-DSP/mb-linux-msli/uClinux-dist/user/rsh-package/rlogind.c:369: \
undefined reference to `logout&#39;<br>


/loc/cn/projects/Spartan3A-DSP/mb-linux-msli/uClinux-dist/user/rsh-package/rlogind.c:370: \
undefined reference to \
`logwtmp&#39;<br>/loc/cn/projects/Spartan3A-DSP/mb-linux-msli/uClinux-dist/user/rsh-package/rlogind.c:383: \
undefined reference to `login_tty&#39;<br>


collect2: ld returned 1 exit status<br><br>i read that this function is part of \
lutil, so i tried to link it against -lutil, but no success. uclibc is configured to \
have pseudo terminal support.<br>what might be wrong in your opinion?<br>


<br>thanks chris<br><br><div class="gmail_quote"><div>2010/9/23 Alex Belits <span \
dir="ltr">&lt;<a href="mailto:alexb@meyersound.com" \
target="_blank">alexb@meyersound.com</a>&gt;</span><br></div><blockquote \
class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, \
204, 204); padding-left: 1ex;">


<div> On 09/23/2010 08:39 AM, Chris Enrique wrote:<div><div></div><div><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px \
solid rgb(204, 204, 204); padding-left: 1ex;"> how did you develop apps like \
dmitripaneld or midiloopback for your board? did you set up some special makefile to \
build those apps under development independent from kernel (like the \
petalinux-user-app functionality) or did you just integrate it in the repo and build \
it by running the whole kernel/user make process?<br>



</blockquote>
<br></div></div></div><div><div></div><div>
I integrated new applications into the build process by making a directory under \
uClinux-dist/user with traditional Makefile and adding application-specific options \
to uClinux-dist/user/Kconfig and uClinux-dist/user/Makefile . To build applications \
independently, I reproduced the environment at the time of the build and used it in a \
wrapper script that runs build only for the current directory but with environment \
that should be set at the build time. Unfortunately this local build procedure is \
ridiculously ugly and should be replaced with something better before I can recommend \
it for anyone else to use.<div>


<div></div><div><br>
<br>
-- <br>
Alex<br>
<br>
NOTICE: This email may contain confidential information.  Please see <a \
href="http://www.meyersound.com/confidential/" \
target="_blank">http://www.meyersound.com/confidential/</a> for our complete \
policy.<br> </div></div></div></div></blockquote></div><br>
</blockquote></div></div></div><br>
</div><br>


___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic