Share

POCO C++ Libraries

Tracker: Bugs

5 Configure errors - ID: 2713848
Last Update: Comment added ( aleksf )

Hi all,

I encountered this error message while trying to configure the program.

Any idea why?

Thank you.
regards,
Cornelius


$ ./configure
./configure: line 11: $'\r': command not found
./configure: line 12: syntax error near unexpected token `$'\r''
'/configure: line 12: `showhelp()


Cornelius Lee ( corneliuslee ) - 2009-03-26 08:18

5

Deleted

Invalid

Nobody/Anonymous

Build System

None

Public


Comments ( 11 )

Date: 2009-03-31 10:03
Sender: aleksfProject Admin

> any ideas?

Yes:

Makefile:30: *** No ODBC library found. Please install unixODBC or iODBC.

Cornelius, we are glad to help people, but you have to help us help you.
First, this is not a bug, so I am going to close and delete it here and you
can move discussion to the mailing list or forum. Second, before asking
questions, please put forth a little bit of effort and do your homework. It
is obvious from the error message what your problem currently is. If you do
not need data access, then consult configure help on how to build without
data support. As for how to install an ODBC manager library, consult their
respective documentation.



Date: 2009-03-31 07:55
Sender: corneliuslee

Hey Jiang,

Thank you so much for your guidance and advice.
I'll try this out and get back to you on the verdict.
Hopefully people will be able to learn from my experience. =-)

regards,
Cornelius



Date: 2009-03-31 05:56
Sender: pasorobo

Hey Cornelius

Glad to hear it works now.

As for the ODBC build error, as I said in my last post, you need necessary
dependencies to build the Poco.Data component. And the build error message
shows you should install unixODBC or iODBC to your Cygwin environment.

However, it seems that you do not really need the Data component. If this
is true then you can just remove it from Makefile by

1. Open Makefile in the PocoRoot
2. Find "Data" related definitions in "Components" and comment out them
3. run "make; make install" again.

Actually, from your error message, I see the other components had already
been built successfully. You can verify this by check your bin and lib
directories. If "make install" does not work for you, you can just use Poco
libraries by copying the *.dll in bin directory to your cygwin path
(usually /usr/local/bin) and the library/include files can be put in your
favorite places (usually /usr/local/include/Poco, /usr/local/lib ).

HTH & enjoy Pocoing :-)

Jiang


Date: 2009-03-31 02:59
Sender: corneliuslee

Hi Jiang,

Yeah! Configure works fine now. =-)
You're right,..I did what you instructed but forgot to d2u the rest of the
mentioned files in their directories. Sorry about that. =-)

I finally managed to do that and have encountered this little error which
i am not sure what it is all about.

"make[1]: Entering directory
`/home/Cornelius/poco-1.3.3p1-all/poco-1.3.3p1-all/Data/ODBC'
Makefile:30: *** No ODBC library found. Please install unixODBC or iODBC
and try again. Stop.
make[1]: Leaving directory
`/home/Cornelius/poco-1.3.3p1-all/poco-1.3.3p1-all/Data/ODBC'
make: *** [Data/ODBC-libexec] Error 2"

any ideas?

regards,
Cornelius




Date: 2009-03-30 14:08
Sender: pasorobo

Hey Cornelius

At least you got your "configure" work now. :-)

The first thing I want to say is, well, POCO can be built by cgywin. I
build it from time to time and everything works just fine.

Your build script errors are caused by the same line-ending problem in my
mind. In my previous post, I said all the build scripts should also be
converted, did you do that ?

IMHO, you can build POCO in cygwin by

0. Convert "configure" to unix line-ending (From your previous post seems
you did it already)
1. Move to PocoRoot/build/scripts
2. d2u *
(that is, convert all the scripts to unix line-ending, maybe you
forget this step)
3. Return to PocoRoot/
4. make
(Make sure you have all dependencies installed. Of course you can
choose the desired components by edit this makefile)

If this does not work, please download a new/fresh POCO package and try
again. Or, you can check out the latest revision from POCO's svn sever.

If you still can not make it work, let us know please. It can be solved
and don't worry too much about it. :-)

Regards,

Jiang




Date: 2009-03-30 10:24
Sender: aleksfProject Admin

Where did you get the sources from, zip or gz archive? Scripts in zip
archive have windows line endings, so that may be causing you trouble.


Date: 2009-03-30 02:52
Sender: corneliuslee

Hi Jiang,

Thank you so much for your kind and helpful advice.
I did what you instructed but I seem to encounter more problems.
I can't find the complete gmake log of the errors so I decided to copy a
short version of it.

Here is a SHORT list of the errors after I have typed: gmake -s

I hope you can help me on this, please.

Thank you.

regards,
Cornelius


gcc: /home/Cornelius/poco-1.3.3p1-all//.dep/CYGWIN/i686/AsyncChannel.d: No
such file or directory
: No such file or directory
** Creating dependency info for src/ASCIIEncoding.cpp
/home/Cornelius/poco-1.3.3p1-all/build/script/makedepend.gcc: line 10:
$'\r': command not found
/home/Cornelius/poco-1.3.3p1-all/build/script/makedepend.gcc: line 12:
$'shift\r': command not found
/home/Cornelius/poco-1.3.3p1-all/build/script/makedepend.gcc: line 14:
$'shift\r': command not found
/home/Cornelius/poco-1.3.3p1-all/build/script/makedepend.gcc: line 16:
$'shift\r': command not found
/home/Cornelius/poco-1.3.3p1-all/build/script/makedepend.gcc: line 18:
$'shift\r': command not found
/home/Cornelius/poco-1.3.3p1-all/build/script/makedepend.gcc: line 20:
$'shift\r': command not found
/home/Cornelius/poco-1.3.3p1-all/build/script/makedepend.gcc: line 22:
$'shift\r': command not found
/home/Cornelius/poco-1.3.3p1-all/build/script/makedepend.gcc: line 23:
$'\r': command not found
: No such file or directory1-all/build/script/makedepend.gcc: line 24:
src/ASCIIEncoding.cpp
gcc: /home/Cornelius/poco-1.3.3p1-all//.dep/CYGWIN/i686/ASCIIEncoding.d:
No such file or directory
: No such file or directory
** Creating dependency info for src/ArchiveStrategy.cpp
/home/Cornelius/poco-1.3.3p1-all/build/script/makedepend.gcc: line 10:
$'\r': command not found
/home/Cornelius/poco-1.3.3p1-all/build/script/makedepend.gcc: line 12:
$'shift\r': command not found
/home/Cornelius/poco-1.3.3p1-all/build/script/makedepend.gcc: line 14:
$'shift\r': command not found
/home/Cornelius/poco-1.3.3p1-all/build/script/makedepend.gcc: line 16:
$'shift\r': command not found
/home/Cornelius/poco-1.3.3p1-all/build/script/makedepend.gcc: line 18:
$'shift\r': command not found
/home/Cornelius/poco-1.3.3p1-all/build/script/makedepend.gcc: line 20:
$'shift\r': command not found
/home/Cornelius/poco-1.3.3p1-all/build/script/makedepend.gcc: line 22:
$'shift\r': command not found
/home/Cornelius/poco-1.3.3p1-all/build/script/makedepend.gcc: line 23:
$'\r': command not found
: No such file or directory1-all/build/script/makedepend.gcc: line 24:
src/ArchiveStrategy.cpp
gcc: /home/Cornelius/poco-1.3.3p1-all//.dep/CYGWIN/i686/ArchiveStrategy.d:
No such file or directory
: No such file or directoryp
gmake[1]: *** No rule to make target
`/home/Cornelius/poco-1.3.3p1-all//.dep/CYGWIN/i686/ArchiveStrategy.d',
needed by
`/home/Cornelius/poco-1.3.3p1-all//obj/CYGWIN/i686/debug_shared/ArchiveStrategy.o'.
Stop.
gmake: *** [Foundation-libexec] Error 2



Date: 2009-03-27 08:34
Sender: pasorobo

Hey Cornelius

I think this is not really a POCO's bug, for me it seems that this problem
is caused by your Cygwin's mount mode, which changes the file line-ending.
What is the mount mode for your drives(text or bin)? You can check this by


$ mount


BTW, the fast way to fix this problem is using line-ending conversion
tools like d2u. For example, you can

1. Move to the Poco's Root directory
2. Change the line-ending for "configure"

$ d2u configure

Also please note some necessary configuration scripts in Root/build should
also be converted if you get same line-ending errors. If you do not have
d2u utility, install it please. This utility is a must for Cgywin :-)

HTH, and if it does not solve your problem please post here, together
with your error message.

Jiang


Date: 2009-03-26 09:19
Sender: corneliuslee

Hi obiltschnig,

I am using Cygwin and POCO version 1.3.3p1-all



Date: 2009-03-26 09:08
Sender: corneliuslee

Hi obiltschnig,

I am using Cygwin.




Date: 2009-03-26 08:28
Sender: obiltschnigProject Admin

What platform? What POCO version?


Attached File

No Files Currently Attached

Changes ( 6 )

Field Old Value Date By
status_id Open 2009-03-31 10:03 aleksf
resolution_id None 2009-03-31 10:03 aleksf
allow_comments 1 2009-03-31 10:03 aleksf
close_date - 2009-03-31 10:03 aleksf
category_id None 2009-03-26 08:29 obiltschnig
data_type 725709 2009-03-26 08:28 obiltschnig