public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Some first questions.
@ 2013-10-29 17:15 Gert Koefoed Andersen
  2013-10-29 18:13 ` Christopher Faylor
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Gert Koefoed Andersen @ 2013-10-29 17:15 UTC (permalink / raw)
  To: cygwin

Hello list.

I have some first questions for cygwin works on windows 7 by compile sources
I normally just fine compile on my linux systems but not like to compile
well and by cygwin.
The sources I trying to compile is been packed on linux with tar archiwing
program so I can get the sources over to windows 7 and cygwin.

So it is then this then.
1. where is the best place to unpack the sources for compile by cygwin.
   My windows cygwin is installed on c:\cygwin and by installing cygwin is
the cygwin download sources been put at k:\cygwinsrc.
2. if the extra sources is best to be places at k:\cygwin, then is it then
best to handle them for cygwin ?

3. Then is it that - the sources have makefiles .cyg and other compilers +
some main configs like Makefile and huskymak.cfg.
When I have copied the file makefile.cyg to makefile.cfg and then have this
file in the main home dir for example - \...\husky\smapi\ and then is got in
to \smapi source dir and then run make to compile the sources for smapi goes
it fine to I getting a error of gcc -mno-cygwin and then error 2 of it not
can find some file it should make and when I checking out for the file is it
where it should be by not compile to make a .o files for more compile
finish.

Regards,
Gert




--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Some first questions.
  2013-10-29 17:15 Some first questions Gert Koefoed Andersen
@ 2013-10-29 18:13 ` Christopher Faylor
  2013-10-30  7:05 ` Andrey Repin
  2013-11-03 19:05 ` D. Boland
  2 siblings, 0 replies; 9+ messages in thread
From: Christopher Faylor @ 2013-10-29 18:13 UTC (permalink / raw)
  To: cygwin

On Tue, Oct 29, 2013 at 05:23:50PM +0100, Gert Koefoed Andersen wrote:
>Hello list.
>
>I have some first questions for cygwin works on windows 7 by compile sources
>I normally just fine compile on my linux systems but not like to compile
>well and by cygwin.
>The sources I trying to compile is been packed on linux with tar archiwing
>program so I can get the sources over to windows 7 and cygwin.
>
>So it is then this then.
>1. where is the best place to unpack the sources for compile by cygwin.

That isn't really a question that is answerable.  Make a directory and
extract the files to it.  No one can tell you the name of a directory to
use.

You can create a directory in your home directory or, e.g., create a
/usr/src/foo directory and extract files there.  It's entirely up to
you.

>   My windows cygwin is installed on c:\cygwin and by installing cygwin is
>the cygwin download sources been put at k:\cygwinsrc.
>2. if the extra sources is best to be places at k:\cygwin, then is it then
>best to handle them for cygwin ?

Cygwin doesn't use paths like c:\cygwin.  If your cygwin installation is
c:\cygwin then that means that is your root directory: /.  k:/cygwin
would be referenced, by Cygwin, as /cygdrive/k/cygwin.  It's ok if you
want to put files there but you should use the Cygwin method for referencing
this location.

>3. Then is it that - the sources have makefiles .cyg and other compilers +
>some main configs like Makefile and huskymak.cfg.
>When I have copied the file makefile.cyg to makefile.cfg and then have this
>file in the main home dir for example - \...\husky\smapi\ and then is got in
>to \smapi source dir and then run make to compile the sources for smapi goes
>it fine to I getting a error of gcc -mno-cygwin and then error 2 of it not
>can find some file it should make and when I checking out for the file is it
>where it should be by not compile to make a .o files for more compile
>finish.

-mno-cygwin is an ancient option that is no longer supported (it only
took me 10 years or so to get rid of it).  If you are building binaries
which don't use Cygwin then you should use a mingw compiler, installed
from setup.exe.  Or, you should just be using MinGW directly from
mingw.org.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Some first questions.
  2013-10-29 17:15 Some first questions Gert Koefoed Andersen
  2013-10-29 18:13 ` Christopher Faylor
@ 2013-10-30  7:05 ` Andrey Repin
  2013-11-03 19:05 ` D. Boland
  2 siblings, 0 replies; 9+ messages in thread
From: Andrey Repin @ 2013-10-30  7:05 UTC (permalink / raw)
  To: Gert Koefoed Andersen, cygwin

Greetings, Gert Koefoed Andersen!

> I have some first questions for cygwin works on windows 7 by compile sources
> I normally just fine compile on my linux systems but not like to compile
> well and by cygwin.
> The sources I trying to compile is been packed on linux with tar archiwing
> program so I can get the sources over to windows 7 and cygwin.

> So it is then this then.
> 1. where is the best place to unpack the sources for compile by cygwin.
>    My windows cygwin is installed on c:\cygwin and by installing cygwin is
> the cygwin download sources been put at k:\cygwinsrc.
Place them wherever you want. It is no different from any other system, and
change nothing. 

> 2. if the extra sources is best to be places at k:\cygwin, then is it then
> best to handle them for cygwin ?

Meaningless in the light of #1.

> 3. Then is it that - the sources have makefiles .cyg and other compilers +
> some main configs like Makefile and huskymak.cfg.
> When I have copied the file makefile.cyg to makefile.cfg and then have this
> file in the main home dir for example - \...\husky\smapi\ and then is got in
> to \smapi source dir and then run make to compile the sources for smapi goes
> it fine to I getting a error of gcc -mno-cygwin

-mno-cygwin was removed AGES ago...
What EXACTLY you're trying to compile?

> and then error 2 of it not
> can find some file it should make and when I checking out for the file is it
> where it should be by not compile to make a .o files for more compile
> finish.


--
WBR,
Andrey Repin (anrdaemon@yandex.ru) 30.10.2013, <10:49>

Sorry for my terrible english...


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Some first questions.
  2013-10-29 17:15 Some first questions Gert Koefoed Andersen
  2013-10-29 18:13 ` Christopher Faylor
  2013-10-30  7:05 ` Andrey Repin
@ 2013-11-03 19:05 ` D. Boland
  2013-11-04 10:02   ` SV: " Gert Koefoed Andersen
  2 siblings, 1 reply; 9+ messages in thread
From: D. Boland @ 2013-11-03 19:05 UTC (permalink / raw)
  To: cygwin

Gert Koefoed Andersen wrote:
> 
> Hello list.
> 
> I have some first questions for cygwin works on windows 7 by compile sources
> I normally just fine compile on my linux systems but not like to compile
> well and by cygwin.
> The sources I trying to compile is been packed on linux with tar archiwing
> program so I can get the sources over to windows 7 and cygwin.
> 
> So it is then this then.
> 1. where is the best place to unpack the sources for compile by cygwin.
>    My windows cygwin is installed on c:\cygwin and by installing cygwin is
> the cygwin download sources been put at k:\cygwinsrc.
> 2. if the extra sources is best to be places at k:\cygwin, then is it then
> best to handle them for cygwin ?
> 
> 3. Then is it that - the sources have makefiles .cyg and other compilers +
> some main configs like Makefile and huskymak.cfg.
> When I have copied the file makefile.cyg to makefile.cfg and then have this
> file in the main home dir for example - \...\husky\smapi\ and then is got in
> to \smapi source dir and then run make to compile the sources for smapi goes
> it fine to I getting a error of gcc -mno-cygwin and then error 2 of it not
> can find some file it should make and when I checking out for the file is it
> where it should be by not compile to make a .o files for more compile
> finish.
> 
> Regards,
> Gert

There is a standard location for sources, as is for libraries and includes. In
Cygwin it's /usr/src. In some other Linuxes it's /usr/local/src.

I have been compiling lots of source distributions over the years. I am not aware
that you have to move or copy Makefiles. As far as I know you just need to:

cd /usr/src/yournewapp
./configure
make
make install

With the last command, all configuration files are automatically put in the right
folders.

HTH,
Daniel


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 9+ messages in thread

* SV: Some first questions.
  2013-11-03 19:05 ` D. Boland
@ 2013-11-04 10:02   ` Gert Koefoed Andersen
  2013-11-04 17:03     ` D. Boland
  0 siblings, 1 reply; 9+ messages in thread
From: Gert Koefoed Andersen @ 2013-11-04 10:02 UTC (permalink / raw)
  To: 'D. Boland'; +Cc: 'D. Boland'

> > Hello list.
> >
> > I have some first questions for cygwin works on windows 7 by compile
> > sources I normally just fine compile on my linux systems but not like
> > to compile well and by cygwin.
> > The sources I trying to compile is been packed on linux with tar
> > archiwing program so I can get the sources over to windows 7 and
> cygwin.
> >
> > So it is then this then.
> > 1. where is the best place to unpack the sources for compile by
> cygwin.
> >    My windows cygwin is installed on c:\cygwin and by installing
> > cygwin is the cygwin download sources been put at k:\cygwinsrc.
> > 2. if the extra sources is best to be places at k:\cygwin, then is it
> > then best to handle them for cygwin ?
> >
> > 3. Then is it that - the sources have makefiles .cyg and other
> > compilers + some main configs like Makefile and huskymak.cfg.
> > When I have copied the file makefile.cyg to makefile.cfg and then
> have
> > this file in the main home dir for example - \...\husky\smapi\ and
> > then is got in to \smapi source dir and then run make to compile the
> > sources for smapi goes it fine to I getting a error of gcc -mno-
> cygwin
> > and then error 2 of it not can find some file it should make and when
> > I checking out for the file is it where it should be by not compile
> to
> > make a .o files for more compile finish.
> >
> > Regards,
> > Gert
> 
> There is a standard location for sources, as is for libraries and
> includes. In Cygwin it's /usr/src. In some other Linuxes it's
> /usr/local/src.
> 
> I have been compiling lots of source distributions over the years. I am
> not aware that you have to move or copy Makefiles. As far as I know you
> just need to:
> 
> cd /usr/src/yournewapp
> ./configure
> make
> make install
> 
> With the last command, all configuration files are automatically put in
> the right folders.
> 
I have compiled lot of sources on linux systems and got now errors here but
on cygwin on my windows 7 32bit things not like to work for me.
What I ever I have done for it, like:
Cd /cygdrive/k/huskysrc/smapi
Or copied it to /src/src/huskysrc
Cd /usr/src/huskysrc/smapi
Make 
Make install
And it ends by error for ld not found some files and others.
Output from cygwin terminal by the error:
gcc   1stchar.o   -o 1stchar
/usr/lib/gcc/i686-pc-cygwin/4.7.3/../../../libcygwin.a(libcmain.o): I
funktionen "main":
/usr/src/debug/cygwin-1.7.25-1/winsup/cygwin/lib/libcmain.c:39: undefined
reference to `WinMain@16'
collect2: fejl: ld returnerede afslutningskoden 1
<builtin>: recipe for target '1stchar' failed
make: *** [1stchar] Error 1

And it look like error in some cygwin files.

Regards,
Gert Andersen


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: SV: Some first questions.
  2013-11-04 10:02   ` SV: " Gert Koefoed Andersen
@ 2013-11-04 17:03     ` D. Boland
  2013-11-08 17:04       ` D. Boland
  0 siblings, 1 reply; 9+ messages in thread
From: D. Boland @ 2013-11-04 17:03 UTC (permalink / raw)
  To: cygwin

Gert Koefoed Andersen wrote:
> 
> I have compiled lot of sources on linux systems and got now errors here but
> on cygwin on my windows 7 32bit things not like to work for me.
> What I ever I have done for it, like:
> Cd /cygdrive/k/huskysrc/smapi
> Or copied it to /src/src/huskysrc
> Cd /usr/src/huskysrc/smapi
> Make
> Make install
> And it ends by error for ld not found some files and others.
> Output from cygwin terminal by the error:
> gcc   1stchar.o   -o 1stchar
> /usr/lib/gcc/i686-pc-cygwin/4.7.3/../../../libcygwin.a(libcmain.o): I
> funktionen "main":
> /usr/src/debug/cygwin-1.7.25-1/winsup/cygwin/lib/libcmain.c:39: undefined
> reference to `WinMain@16'
> collect2: fejl: ld returnerede afslutningskoden 1
> <builtin>: recipe for target '1stchar' failed
> make: *** [1stchar] Error 1

I know this error (unknown reference to WinMain). You get it when you try to compile
a module. A module has no "main" function (like a program has). You need to compile
it with option -c. Like:

gcc -c lstchar.o -o lstchar

Maybe you can add the extra option in the Makefile? I must say, this kind of error
occurs only in poorly made distributions, so this will be a difficult build...

HTH,
Daniel


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: SV: Some first questions.
  2013-11-04 17:03     ` D. Boland
@ 2013-11-08 17:04       ` D. Boland
  2013-11-08 18:03         ` SV: " Gert Koefoed Andersen
  0 siblings, 1 reply; 9+ messages in thread
From: D. Boland @ 2013-11-08 17:04 UTC (permalink / raw)
  To: cygwin

Mr. Anderson,

Sorry, I couldn't resist. I saw the Matrix movie recently ;-)

Thanks for the extended output you sent me privately, but maybe it's better to keep
this public, because others want to know of your progress, too.

I wanted to try to compile the Husky software myself. So I went to the Husky
sourcefourge page. I downloaded the 1.9-current file:

husky-all-1.9-w32mvcdll-20131030.zip

When I unzipped it to my /usr/src/husky-all-1.9 folder, I saw that it where all
precompiled win32 binaries. Why do you need to compile the sources?

Greetings,
Daniel


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 9+ messages in thread

* SV: SV: Some first questions.
  2013-11-08 17:04       ` D. Boland
@ 2013-11-08 18:03         ` Gert Koefoed Andersen
  2013-11-09  9:12           ` D. Boland
  0 siblings, 1 reply; 9+ messages in thread
From: Gert Koefoed Andersen @ 2013-11-08 18:03 UTC (permalink / raw)
  To: 'D. Boland'

Hi Daniel,

> Sorry, I couldn't resist. I saw the Matrix movie recently ;-)
> 
> Thanks for the extended output you sent me privately, but maybe it's
> better to keep this public, because others want to know of your
> progress, too.
> 
> I wanted to try to compile the Husky software myself. So I went to the
> Husky sourcefourge page. I downloaded the 1.9-current file:
> 
> husky-all-1.9-w32mvcdll-20131030.zip
> 
There 2 versions of this system 1.9-current and 1.4-stable.
To get the sources is to click on upper choice codes for each of the
version.
There is too the way to use cvs to files.
This can be done by cygwin terminal
Make a directory like \husky\
Cvs -d:pserver:anonymous@husky.cvs.sourceforge.net:/cvsroot/husky login
Cvs -z9 -d:pserver:anonymous@husky.cvs.sourceforge.net:/cvsroot/husky co .
Or
Cvs -z9 -d:pserver:anonymous@husky.cvs.sourceforge.net:/cvsroot/husky co -r
smapi-2_4-stable smapi
Cvs -z9 -d:pserver:anonymous@husky.cvs.sourceforge.net:/cvsroot/husky co -r
huskybse-1_4-stable huskybse (huskybase)
Cvs -z9 -d:pserver:anonymous@husky.cvs.sourceforge.net:/cvsroot/husky co -r
fidoconf-1_4-stable fidoconf
Cvs -z9 -d:pserver:anonymous@husky.cvs.sourceforge.net:/cvsroot/husky co -r
htick-1_4-stable htick
Cvs -z9 -d:pserver:anonymous@husky.cvs.sourceforge.net:/cvsroot/husky co -r
nltools-1_4-stable nltools
Etc. for each program, this way will file be the latest sources.

> When I unzipped it to my /usr/src/husky-all-1.9 folder, I saw that it
> where all precompiled win32 binaries. Why do you need to compile the
> sources?
> 
The most used version is the stable version as the 1.9 current is more for
testing and is been worked with.
The version I have tried to self to compile is v. 1.4 as some it is not
working fine on a windows 7 pc system as some of the files do win7 not like
to run without stopping an ask for some question on win 7 and not working.
So I like them to be updated to another name so all is working fine on
windows 7.
Version 1.9 is more updated than 1.4 is. But version 1.4 have a file named
nlupdate where it on version 1.9 has changed name to nlupd but still saying
nlupdate.
This is the reason that I for windows like make a fresh compile and own
compile of the programs.

The way to make it function by compiling and install is:
Smapi
Fidoconf
This 2 first and then the others
Htick
Hpt
Nltools

The smapi and fidoconf must be done before any of the other utils as smapi
and fidoconf is been used of the other programs utils while they being
compile and installed.

Regards,
Gert

> 
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: SV: SV: Some first questions.
  2013-11-08 18:03         ` SV: " Gert Koefoed Andersen
@ 2013-11-09  9:12           ` D. Boland
  0 siblings, 0 replies; 9+ messages in thread
From: D. Boland @ 2013-11-09  9:12 UTC (permalink / raw)
  To: cygwin

Dear Gert,

I'm sorry, but this is too much for me. I don't have that much time.

I suspect that the build script for Cygwin contains a bug, because of the "undefined
reference to `WinMain@16'" error. Impossible to solve without changing it.

What about contacting the author of the build scripts?

Daniel


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-11-09  9:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-29 17:15 Some first questions Gert Koefoed Andersen
2013-10-29 18:13 ` Christopher Faylor
2013-10-30  7:05 ` Andrey Repin
2013-11-03 19:05 ` D. Boland
2013-11-04 10:02   ` SV: " Gert Koefoed Andersen
2013-11-04 17:03     ` D. Boland
2013-11-08 17:04       ` D. Boland
2013-11-08 18:03         ` SV: " Gert Koefoed Andersen
2013-11-09  9:12           ` D. Boland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).