PDA

View Full Version : error: stropts.h: No such file or directory



sandwich
19th July 2008, 05:09 AM
mkdir gftp
cd gftp
wget http://gftp.seul.org/gftp-2.0.18.tar.bz2
wget http://www.teatime.com.tw/%7Etommy/linux/gftp_remote_charsets.patch
tar xjvf gftp-2.0.18.tar.bz2
patch -p0 < gftp_remote_charsets.patch
cd gftp-2.0.18
./configure
sudo make

pty.c:65:21: error: stropts.h: No such file or directory
make[3]: *** [pty.o] Error 1
make[3]: Leaving directory `/home/sandwich/Download/gftp-2.0.18/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/sandwich/Download/gftp-2.0.18/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/sandwich/Download/gftp-2.0.18'

how can I fix the problem :confused:

sandwich
19th July 2008, 05:20 AM
I search the Internet and find:

stropts.h: No such file or directory

If during compilation your compiler complains about missing "stropts.h", don't wary. Most probably you are running on MacOS X 10.3 or FreeBSD 6.0 or NetBSD 3.0 or OpenBSD 3.8 or Cygwin or mingw or BeOS... or Fedora 9 (probably all modern Linux'es).

Simply to say, your system doesn't support STREAMS.

Linux espesially:

Linux doesn't support STREAMS (many years ago it was available as a third party module, but it hasn't worked for years). stropts.h is part of a POSIX XSR option, which Linux now, matching reality, says it is not supported.

and here we have the POSIX recommended check:


#include <unistd.h>
#if defined _XOPEN_STREAMS && _XOPEN_STREAMS == -1
/* XSR option is not available, headers, data types etc. may not be available. */
#endif


But how I install gftp using the make????

marcrblevins
19th July 2008, 06:12 AM
Why are you making gftp? Check yum first before you waste your time building it.



[marc@kiriyamablevins ~]$ su -
Password:
[root@kiriyamablevins ~]# yum search gftp
kriehn | 951 B 00:00
livna | 2.1 kB 00:00
fedora | 2.4 kB 00:00
updates | 2.3 kB 00:00
primary.sqlite.bz2 | 1.9 MB 00:09
================================================== ===================== Matched: gftp ================================================== =====================
gftp.i386 : A multi-threaded FTP client for the X Window System
[root@kiriyamablevins ~]#

Use:


su -
yum install gftp

urkon
6th August 2009, 12:51 PM
I have the same issue "error: stropts.h: No such file or directory" on fedora 11 x86_64 when building some proprietary sw which I do not know in details, but it is purposed to communicate trough fifo-s.

This issue is not the case on OpenSuse 10.3.
Is it possible to get this header trough some yum package or is it safe to copy manually from other source (opensuse perhaps)?

Any help would be highly appreciated.

I can not help myself with yum.

leigh123linux
6th August 2009, 01:08 PM
I have the same issue "error: stropts.h: No such file or directory" on fedora 11 x86_64 when building some proprietary sw which I do not know in details, but it is purposed to communicate trough fifo-s.

This issue is not the case on OpenSuse 10.3.
Is it possible to get this header trough some yum package or is it safe to copy manually from other source (opensuse perhaps)?

Any help would be highly appreciated.

I can not help myself with yum.


Patch it

http://cvs.fedoraproject.org/viewvc/rpms/gftp/devel/gftp-stropts.patch?revision=1.2

urkon
6th August 2009, 01:49 PM
Patch it

http://cvs.fedoraproject.org/viewvc/rpms/gftp/devel/gftp-stropts.patch?revision=1.2

Thanx for no time replay.

But I do not have issue with gftp. I am working on code for which is meant to be running on arm. And it does because I compile it with cross compiler 3.2.
For development I am using PC with fedora where I have a lot friendlier environment, for testing too.
What I would like to do is, build this code to be able to run it on my PC with installed Fedora 11.

I would be happy if could change my environment to do so instead of changing unknown and working code.

Thanks again.

urkon
6th August 2009, 01:58 PM
Maybe I have something.

$ yum provides */stropts.h
...
arm-gp2x-linux-glibc-2.3.6-6.fc11.noarch : Cross Compiled GNU C Library targeted at arm-gp2x-linux
Repo : fedora
Matched from:
Filename : /usr/arm-gp2x-linux/include/stropts.h
Filename : /usr/arm-gp2x-linux/include/sys/stropts.h
Filename : /usr/arm-gp2x-linux/include/bits/stropts.h


xulrunner-devel-1.9.1.2-1.fc11.x86_64 : Development files for Gecko
Repo : updates
Matched from:
Filename : /usr/include/xulrunner-sdk-1.9.1/system_wrappers/stropts.h
Filename : /usr/include/xulrunner-sdk-1.9.1/system_wrappers_js/stropts.h

...

I am not sure yet how can that help me. But it is worth trying.

masch
13th October 2009, 03:33 AM
Hello, guys!.. I'm having the same issue during the compilation of ACE-5.4.4 TAO-1.4.4. Doing some
research I found some problems with the stream support in Linux, please take a look:

http://www.archivum.info/comp.soft-sys.ace/2008-04/00069/Re:_[tao-
users]_PRF:_Autobuild_on_Fedora_Rawhide_(GCC_4.3.0)_is_a _no-go

https://bugzilla.redhat.com/show_bug.cgi?id=439403

Is there any workaround to fix it? I have the header in Fedora Core 3, but I trying to make it work in Fedora 11, Is it possible?


Thanks and Regards!
Salu2...
masch...

markkuk
13th October 2009, 11:12 AM
You can get ACE+TAO RPM pacakges for Fedora 11 here: http://dist.bonsai.com/ken/ace_tao_rpm/

MALDATA
7th January 2014, 04:06 AM
This is an old thread, but I just ran into this problem with Fedora 20 and I'd like to log the solution somewhere.

I found this: https://github.com/timschmidt/repsnapper/issues/79 and it worked for me. In the code that included stropts.h, I simply commented out that include and replaced it with
#include <sys/ioctl.h>.

After that it compiled fine.