Overview
Features
Download
Documentation
Community
Add-Ons & Services

Build scripts on 64-bit Linux

General discussion regarding the development of POCO for contributors.

Build scripts on 64-bit Linux

Postby alex » 26 Oct 2006, 17:09

I have a constant problem with build scripts on a 64-bit AMD Linux box (Gentoo).
The error message is 'bad interpreter'.
Apparently, it has to do with file format, because all I have to do is simply open the offending files (makedepend.gcc, projname and shlibln) and save them (without any modification).

This does not happen on 32-bit Linux.

Once you know it, it is a minor annoyance, but when encountered for the first time, it can consume a good chunk of time.

Does anyone have an idea why is this happening and how to fix it?

Alex
alex
 
Posts: 1104
Joined: 11 Jul 2006, 16:27
Location: United_States

Re: Build scripts on 64-bit Linux

Postby alex » 28 Oct 2006, 17:46

Correction/update:

Same thing just happened to me on a 32-bit Gentoo box.
Looks like a line-ending issue in the distribution archive scripts.

Here's a sample:

sh: /shared/poco/build/script/shlibln: /bin/sh^M: bad interpreter: No such file or directory
make[1]: *** [/shared/poco/lib/Linux/i686/libPocoFoundationd.so.2] Error 126
make[1]: Leaving directory `/shared/poco/Foundation'

Alex



alex
 
Posts: 1104
Joined: 11 Jul 2006, 16:27
Location: United_States

Re: Build scripts on 64-bit Linux

Postby peter » 31 Oct 2006, 11:31

Hi Alex,
definitely line ending problem. We actually thought we squished them with 1.2.5.
We'll look into it, fixed with the next version.

thx,
Peter

> I have a constant problem with build scripts on a 64-bit AMD Linux box (Gentoo).
> The error message is 'bad interpreter'.
> Apparently, it has to do with file format, because all I have to do is simply open the offending files (makedepend.gcc, projname and shlibln) and save them (without any modification).
>
> This does not happen on 32-bit Linux.
>
> Once you know it, it is a minor annoyance, but when encountered for the first time, it can consume a good chunk of time.
>
> Does anyone have an idea why is this happening and how to fix it?
>
> Alex
peter
 
Posts: 67
Joined: 11 Jul 2006, 16:26
Location: Austria

Re: Build scripts on 64-bit Linux

Postby peter » 31 Oct 2006, 11:32

Damn it,
I actually hoped we squished them with 1.2.5.

Will be fixed in the next release.
thx
Peter

> I have a constant problem with build scripts on a 64-bit AMD Linux box (Gentoo).
> The error message is 'bad interpreter'.
> Apparently, it has to do with file format, because all I have to do is simply open the offending files (makedepend.gcc, projname and shlibln) and save them (without any modification).
>
> This does not happen on 32-bit Linux.
>
> Once you know it, it is a minor annoyance, but when encountered for the first time, it can consume a good chunk of time.
>
> Does anyone have an idea why is this happening and how to fix it?
>
> Alex
peter
 
Posts: 67
Joined: 11 Jul 2006, 16:26
Location: Austria


Return to Contributors

Who is online

Users browsing this forum: No registered users and 1 guest