-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Never mind, I am an idiot.
I need to RTFM a little closer next time.
Mike Watters wrote:
> Hello list,
> I am new to the list so please bear with me for my first post.
>
> background on my problem:
> I am currently trying to compile gnupg for OpenCSW.
> I have the latest version of gpg-error, libksba, gnu pth and libassuan.
>
> I have compiled all with 64bit support. but when I try to compile gnupg
> 64bit I get an error that states libassuan using gnu pth is required to
> build this software.
>
> now for the relevant part for this list:
> When I try to compile libassuan 64bit and force it to use gnu pth.
> I get the error "FD_SETSIZE is larger than what GNU Pth can handle."
> I tracked this down to the code below from /use/include/sys/select.h
>
> --- code ---
>
> #ifndef FD_SETSIZE
> #ifdef _LP64
> #define FD_SETSIZE 65536
> #else
> #define FD_SETSIZE 1024
> #endif /* _LP64 */
> #elif FD_SETSIZE > 1024 && !defined(_LP64)
> #ifdef __PRAGMA_REDEFINE_EXTNAME
> #pragma redefine_extname select select_large_fdset
> #if !defined(__XOPEN_OR_POSIX) || defined(_XPG6) || defined(__EXTENSIONS__)
> #pragma redefine_extname pselect pselect_large_fdset
> #endif
> #else /* __PRAGMA_REDEFINE_EXTNAME */
> #define select select_large_fdset
> #if !defined(__XOPEN_OR_POSIX) || defined(_XPG6) || defined(__EXTENSIONS__)
> #define pselect pselect_large_fdset
> #endif
> #endif /* __PRAGMA_REDEFINE_EXTNAME */
> #endif /* FD_SETSIZE */
>
> --- code ---
> My question is can I patch pth.h to allow fd_setsize of 65536 for 64bit
> compiles without breaking gnu pth or opening up any vulnerabilities?
>
> I have searched the bugs and the archives for this list to no avail. any
> information you could give me would be greatly appreciated.
>
- --
Thanks,
Mike
"Any intelligent fool can make things bigger, more complex,
and more violent. It takes a touch of genius -- and a lot of courage --
to move in the opposite direction."
* Albert Einstein 1879 - 1955
US German-born Theoretical Physicist
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iEYEARECAAYFAkmKa7oACgkQW3VzXti4wcoFrACfcD+WI04UMudWkSnmMQzuPMU2
AZwAn06UQTHkojDsGPfZvWW+2YvOntN5
=THap
-----END PGP SIGNATURE-----
______________________________________________________________________
GNU Portable Threads (Pth) http://www.gnu.org/software/pth/
Development Site http://www.ossp.org/pkg/lib/pth/
Distribution Files ftp://ftp.gnu.org/gnu/pth/
Distribution Snapshots ftp://ftp.ossp.org/pkg/lib/pth/
User Support Mailing List [email protected]
Automated List Manager (Majordomo) [email protected]