Compiling Xfree86/kdrive/tinyx with uclibc

Gianluca Moro <[email protected]>
Newsgroups gmane.comp.xfree86.devel
Message-ID <[email protected]>
Hi all, I'm compiling tiny-X from Xfree86 4.5.0
on a MIPS machine with uclibc.

I compiled Xfbdev, but I get some strange errors,
such as

LinuxInit: Cannot open * (No such file or directory)

this comes from

  sprintf(vtname,"/dev/tty%d",vtno); /* /dev/tty1-64 */

  if ((LinuxConsoleFd = open(vtname, O_RDWR|O_NDELAY, 0)) < 0)
    {
        FatalError("LinuxInit: Cannot open %s (%s)\n",
                   vtname, strerror(errno));
    }

in file xc/programs/Xserver/hw/tinyx/linux/linux.c

it seems that the sprintf do not write correctly the string vtname.

In simple test programs, sprintf is working correctly!

Any idea what is going on?

thanks
giammy 


--
Gianluca Moro          http://groups.yahoo.com/group/embeddeditalia/
ISCRIVITI alla         Mailing List Italiana su LINUX EMBEDDED
[email protected]   Visit http://ilpinguino.altervista.org/


		
___________________________________ 
Yahoo! Messenger: chiamate gratuite in tutto il mondo 
http://it.messenger.yahoo.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.