Bug#226509: apt: FTBFS when configured with --disable-nls
clone 226509 -1
retitle -1 pid_t and int used interchangeably
tags 226509 pending
thanks
On Wed, Jan 07, 2004 at 12:10:19PM -0800, Eric Wong wrote:
> Thank you. It builds fine with --disable-nls on i386 now. I've attached a
> diff for all the affected files with your fix.
Applied, thanks.
> In addition, the following fix was needed to compile under
> sparc-sun-solaris2.8:
>
> --- ftparchive/multicompress.cc.orig 2004-01-07 11:03:51.000000000 -0800
> +++ ftparchive/multicompress.cc 2004-01-07 11:04:36.000000000 -0800
> @@ -377,7 +377,7 @@
> // Start the compression children.
> for (Files *I = Outputs; I != 0; I = I->Next)
> {
> - if (OpenCompress(I->CompressProg,I->CompressProc,I->TmpFile.Fd(),
> + if (OpenCompress(I->CompressProg,(int)I->CompressProc,I->TmpFile.Fd(),
> I->Fd,true) == false)
> return false;
> }
Unfortunately, there are a lot of places which will have similar problems,
due to int and pid_t being used interchangeably. For example, ExecFork
returns int, even though in many places the result is stored in a pid_t.
This needs to be cleaned up across the board.
> Everything seems to build fine under Solaris 8, but I keep getting when
> I run apt-get and apt-cache:
>
> E: Unable to determine a suitable system type
>
> I fiddled with the buildlib/*table files, but keep getting this. Any
> ideas?
The problem is in selecting the packaging system, not the system type. You
could try -o APT::System="Debian dpkg interface".
--
- mdz
Reply to: