RE: RE: Apache 2.2.6 building from source code

2008-03-11 Thread Anik Pal
I did append --prefix={APACHE_TARGET} directory in the apache2-2.2.6-1.sh
script. But it looks like the target location it doesn't take fom --prefix
option of configure. Rather when you run 
%apache2-2.2.6-1.sh install
it creates the binary in predefined location as defined in the
apache2-2.2.6-1.sh script install option.

regards
Anik Pal
Schlumberger


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



Apache 2.2.6 building from source code

2008-03-07 Thread Anik Pal
Hello all,
I'm trying to build apache from source code downloaded from cygwin mirror
site. I am following the sequence listed in "apache2-2.2.6-1.sh" for
building the source code. But it looks like it place the build binary of
apache in the default location, I want it to build and place the binary in
the my defined location. 
I know in the unix set up 
%Configure --prefix="Traget_directory" 
you can direct it to place the binary. But as I'm not directly running
configure rather running 
% apache2-2.2.6-1.sh conf (hope it will apply cygwin specific patches) 
so I can't input the prefix target directory.

So what changes to be required to redirect the binary in my defined
location?
Regards

Anik Pal
Vadodara, India



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



EXPAT 1.95.8 build error undefined reference to [EMAIL PROTECTED]'

2008-02-29 Thread Anik Pal
Hello,
I'm trying to build expat 1.95.8 source code downloaded from cygwin mirror
site in cygwin. When run make after running ./configure it gives following
error:


$ make
/bin/sh ./libtool --silent --mode=compile gcc -g -O2 -Wall
-Wmissing-prototypes
-Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H   -I./lib -I. -o
lib/xmlp
arse.lo -c lib/xmlparse.c
/bin/sh ./libtool --silent --mode=compile gcc -g -O2 -Wall
-Wmissing-prototypes
-Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H   -I./lib -I. -o
lib/xmlt
ok.lo -c lib/xmltok.c
/bin/sh ./libtool --silent --mode=compile gcc -g -O2 -Wall
-Wmissing-prototypes
-Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H   -I./lib -I. -o
lib/xmlr
ole.lo -c lib/xmlrole.c
/bin/sh ./libtool --silent --mode=link gcc -g -O2 -Wall -Wmissing-prototypes
-Ws
trict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H   -I./lib -I.
-no-undefined
-version-info 5:0:5 -rpath /usr/local/lib  -o libexpat.la lib/xmlparse.lo
lib/xm
ltok.lo lib/xmlrole.lo
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libcygwin.a(libcmain.o):(.text+0x
ab):
 undefined reference to [EMAIL PROTECTED]'
collect2: ld returned 1 exit status
make: *** [libexpat.la] Error 1

before running make ./configure gives me following output:


$ ./configure
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking for gcc... gcc
checking for C compiler default output... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for ld used by GCC... /usr/i686-pc-cygwin/bin/ld.exe
checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) is GNU ld..
checking for /usr/i686-pc-cygwin/bin/ld.exe option to reload object
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependant libraries... file_magic file fo
6(.*architecture: i386)?
checking command to parse /usr/bin/nm -B output... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -DDLL_EXPORT
checking if gcc PIC flag -DDLL_EXPORT works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/i686-pc-cygwin/bin/ld.exe) suppor
raries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... Win32 ld.exe
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
creating libtool
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether gcc accepts -fexceptions... yes
checking for ANSI C header files... (cached) yes
checking whether byte ordering is bigendian... no
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for memmove... yes
checking for bcopy... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking for off_t... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... no
checking check.h usability... no
checking check.h presence... no
checking for check.h... no
checking for check.h... (cached) no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating expat_config.h
config.status: expat_config.h is unchanged



Anik Pal
Schlumberger, Vadodara, India



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



undefined refernce symbol __chkstk

2008-02-05 Thread Anik Pal
I got the linking error message "undefined reference symbol __chkstk". When
I try to link my source code with a MSVC compiled library. From the
following url I got a workaround to remove this problem is to copy
CHKSTK.OBJ from MSVC library and rename it to chkstk.o and link with it.

http://eegeerg.blogspot.com/2008_01_01_archive.html#4158852069709002699
 
But that option remove this error message and create the executable, But
when run the executable it doesn't give anything just abort, no error
message

I'm also linking my code with cygwin/lib/mingw/libmsvcrt.a

Now I suspect that wither CHKSTK.OBJ MSVC object file or mingw libmsvcrt.a
library or both is causing this problem. But I'm not sure How to replace
them with equivalent lib if I want to remove dependency from Mingc and MSVC
both.
regard
Anik Pal
Schlumberger, Vadodara, India



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



RE: RE: undefined reference to `_msgDebug' in GCC

2008-02-05 Thread Anik Pal


-Original Message-
From: Anik Pal [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 05, 2008 8:17 PM
To: 'cygwin@cygwin.com'
Subject: RE: RE: undefined reference to `_msgDebug' in GCC 

 
 
-Original Message-----
From: Anik Pal [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 05, 2008 8:17 PM
To: '[EMAIL PROTECTED]'
Subject: RE: RE: undefined reference to `_msgDebug' in GCC 
 
Phil,
Thanks for the info you provided. I’m not conversant with GCC.  
I remove the path for regular library like libm.a, and all the paths
specified in posix , now my linker option is as follows
 
-L/cygdrive/f/geolog6.6.1/lib -lcgg -llicence -llogs_dll -lPGILc_dll
-lPGILcTool_dll -lcgs  -lgeolog6 -L/cygdrive/D/cygwin/lib/mingw -lmsvcrt
-Bstatic -lm
But I’m not sure how to remove the dependency on libmsvcrt.a (that comes
with mingw lib in cygwin). What is the equivalent lib in cygwin/lib?
Moreover I followed the solution stated in the following url to get rid of
linking “undefined reference symbol __chkstk”
http://eegeerg.blogspot.com/2008_01_01_archive.html#4158852069709002699 
which actually states to copy chkstk.OBJ from MSVC/lib and rename to
chkstk.o and link with this.
Now linking error goes but when try to execute this exe, it doesn’t gives
any error message but terminate unexpectedly.
Regards
Anik Pal
India
From: "Phil Betts"  
• To:  
• Date: Mon, 4 Feb 2008 15:41:43 - 
• Subject: RE: undefined reference to `_msgDebug' in GCC 

Anik Pal wrote on Saturday, February 02, 2008 9:05 AM::
 
> I am trying to using a library in my code whose default compiler is
> MSVCRT. When I try to compile that code in cygwin GCC environment I
> get the following errors
> 
>
F:/geolog6.6.1/lib/libgeolog6.a(fileprintf.o):C:/development/ptc:(.text+
0x9)
>> undefined reference to `__chkstk'
[snip]
>> more undefined references to `_msgDebug' follow
> 
> Can anyone tell me which cygwin-mingw library to be added to get rid
> of this linking error?
> 
> My make file linking option I'm providing as follows
> 
> -LF:/geolog6.6.1/lib -lcgg -lgeolog6  -llicence -llogs_dll -lPGILc_dll
> -lPGILcTool_dll -lcgs -llmgr9a -LD:/cygwin/lib -lcygwin
> -LD:/cygwin/lib/mingw -lmsvcrt -Bstatic -LD:/cygwin/lib -lm
> 
 
First, don't use windows pathnames.  Cygwin is a POSIX environment,
so use POSIX pathnames (I.e. "/cygdrive/f/" instead of "F:/")
 
Second, you're linking with cygwin AND msvcrt and potentially also
mixing cygwin and mingw libraries.  Don't do that.
The cygwin, msvcrt and mingw are fundamentally incompatible.  
[Although it is possible under very specific circumstances to mix
cygwin and msvcrt, it requires knowledge of the internals of both
libraries, and if you had that knowledge, you wouldn't have posted 
your question, so the advice stands]
 
Make your mind up whether you want to write a POSIX program or a
Windows program and stick to your decision.
 
Third, let the compiler choose the C runtime library.  You don't
specify -lcygwin, nor the path to the standard library locations,
so the only -L you need is "-L/cygdrive/f/geolog6.6.1/lib"
 
Fourth, libm is integral to cygwin1.dll, so you don't need -lm.
The math library supplied with cygwin is only a stub to support 
makefiles such as yours that assume it's necessary.
 
 
Anik Pal
Schlumberger, Vadodara, India
 


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



undefined reference to `_msgDebug' in GCC

2008-02-02 Thread Anik Pal
I am trying to using a library in my code whose default compiler is MSVCRT.
When I try to compile that code in cygwin GCC environment I get the
following errors

F:/geolog6.6.1/lib/libgeolog6.a(fileprintf.o):C:/development/ptc:(.text+0x9)
: undefined reference to `__chkstk'
F:/geolog6.6.1/lib/libgeolog6.a(specyacc.o):C:/development/ptc:(.text+0x118)
: undefined reference to `__alloca_probe'
F:/geolog6.6.1/lib/liblicence.a(licence.o):C:/development/ptc:(.text+0x41):
undefined reference to `_dateInit'
F:/geolog6.6.1/lib/liblicence.a(licence.o):C:/development/ptc:(.text+0x89):
undefined reference to `_msgInit'
F:/geolog6.6.1/lib/liblicence.a(licence.o):C:/development/ptc:(.text+0x147):
undefined reference to `_dateTerm'
F:/geolog6.6.1/lib/liblicence.a(licence.o):C:/development/ptc:(.text+0x177):
undefined reference to `_msgTerm'
F:/geolog6.6.1/lib/liblicence.a(licflexapi.o):C:/development/ptc:(.text+0x72
b): undefined reference to `_fileDtm'
F:/geolog6.6.1/lib/liblicence.a(licflexapi.o):C:/development/ptc:(.text+0x74
2): undefined reference to `_fileDtm'
F:/geolog6.6.1/lib/liblicence.a(licflexapi.o):C:/development/ptc:(.text+0x74
d): undefined reference to `_dateCurrent'
F:/geolog6.6.1/lib/liblicence.a(licflexapi.o):C:/development/ptc:(.text+0x7d
d): undefined reference to `_fileDtm'
F:/geolog6.6.1/lib/liblicence.a(licflexapi.o):C:/development/ptc:(.text+0x81
5): undefined reference to `_msgDebug'
F:/geolog6.6.1/lib/liblicence.a(licflexapi.o):C:/development/ptc:(.text+0x9a
6): undefined reference to `_msgDebug'
F:/geolog6.6.1/lib/liblicence.a(licflexapi.o):C:/development/ptc:(.text+0x9e
d): undefined reference to `_msgBrief'
F:/geolog6.6.1/lib/liblicence.a(licflexapi.o):C:/development/ptc:(.text+0xaa
b): undefined reference to `_msgDebug'
F:/geolog6.6.1/lib/liblicence.a(licflexapi.o):C:/development/ptc:(.text+0xad
8): undefined reference to `_msgDebug'
F:/geolog6.6.1/lib/liblicence.a(licflexapi.o):C:/development/ptc:(.text+0xb4
b): undefined reference to `_dateUserid'
F:/geolog6.6.1/lib/liblicence.a(licflexapi.o):C:/development/ptc:(.text+0xbe
5): undefined reference to `_msgDebug'
F:/geolog6.6.1/lib/liblicence.a(licflexapi.o):C:/development/ptc:(.text+0xc3
3): undefined reference to `_msgDebug'
F:/geolog6.6.1/lib/liblicence.a(licence_c.o):C:/development/ptc:(.text+0x56)
: undefined reference to `_msgDebug'
F:/geolog6.6.1/lib/liblicence.a(licence_c.o):C:/development/ptc:(.text+0x71)
: undefined reference to `_msgDebug'
F:/geolog6.6.1/lib/liblicence.a(licence_c.o):C:/development/ptc:(.text+0x80)
: undefined reference to `_msgDebug'
F:/geolog6.6.1/lib/liblicence.a(licence_c.o):C:/development/ptc:(.text+0xb4)
: more undefined references to `_msgDebug' follow

Can anyone tell me which cygwin-mingw library to be added to get rid of this
linking error?

My make file linking option I'm providing as follows

-LF:/geolog6.6.1/lib -lcgg -lgeolog6  -llicence -llogs_dll -lPGILc_dll
-lPGILcTool_dll -lcgs -llmgr9a -LD:/cygwin/lib -lcygwin
-LD:/cygwin/lib/mingw -lmsvcrt -Bstatic -LD:/cygwin/lib -lm




Anik Pal
Schlumberger, Vadodara, India



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



Using msvcrt.lib from cygwin gcc

2008-02-01 Thread Anik Pal
What will be the make file syntax to use msvcrt.lib to compile my source
code in cygwin gcc?

Anik Pal
Vadodara, India



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



where to find cygwin equivalent of libCrun.so.1

2008-01-31 Thread Anik Pal
er'

F:/geolog6.6.1/lib/omnithread.lib(nt.o):nt.cc:([EMAIL PROTECTED]@@SA
[EMAIL PROTECTED]@[EMAIL PROTECTED]@@Z]+0x9): undefined reference to
`__except_list'

F:/geolog6.6.1/lib/omnithread.lib(nt.o):nt.cc:([EMAIL PROTECTED]@@SA
[EMAIL PROTECTED]@[EMAIL PROTECTED]@@Z]+0x11): undefined reference to
`__except_list'

F:/geolog6.6.1/lib/omnithread.lib(nt.o):nt.cc:([EMAIL PROTECTED]@@SA
[EMAIL PROTECTED]@[EMAIL PROTECTED]@@Z]+0x1a): undefined reference to
[EMAIL PROTECTED]@Z'

F:/geolog6.6.1/lib/omnithread.lib(nt.o):nt.cc:([EMAIL PROTECTED]@@SA
[EMAIL PROTECTED]@[EMAIL PROTECTED]@@Z]+0x60): undefined reference to
`__except_list'

F:/geolog6.6.1/lib/omnithread.lib(nt.o):nt.cc:(.text$x+0x5): undefined
reference to [EMAIL PROTECTED]@Z'

F:/geolog6.6.1/lib/omnithread.lib(nt.o):nt.cc:(.text$x+0x11): undefined
reference to `___CxxFrameHandler'

F:/geolog6.6.1/lib/omnithread.lib(nt.o):nt.cc:([EMAIL PROTECTED]@@SA
[EMAIL PROTECTED]@[EMAIL PROTECTED]@@Z]+0x9): undefined reference to
`__except_list'

F:/geolog6.6.1/lib/omnithread.lib(nt.o):nt.cc:([EMAIL PROTECTED]@@SA
[EMAIL PROTECTED]@[EMAIL PROTECTED]@@Z]+0x11): undefined reference to
`__except_list'

F:/geolog6.6.1/lib/omnithread.lib(nt.o):nt.cc:([EMAIL PROTECTED]@@SA
[EMAIL PROTECTED]@[EMAIL PROTECTED]@@Z]+0x1a): undefined reference to
[EMAIL PROTECTED]@Z'

F:/geolog6.6.1/lib/omnithread.lib(nt.o):nt.cc:([EMAIL PROTECTED]@@SA
[EMAIL PROTECTED]@[EMAIL PROTECTED]@@Z]+0x60): undefined reference to
`__except_list'

F:/geolog6.6.1/lib/omnithread.lib(nt.o):nt.cc:(.text$x+0x5): undefined
reference to [EMAIL PROTECTED]@Z'

F:/geolog6.6.1/lib/omnithread.lib(nt.o):nt.cc:(.text$x+0x11): undefined
reference to `___CxxFrameHandler'

F:/geolog6.6.1/lib/omnithread.lib(nt.o):nt.cc:([EMAIL PROTECTED]@@SAXP
[EMAIL PROTECTED]): undefined reference to `__endthreadex'

F:/geolog6.6.1/lib/omnithread.lib(nt.o):nt.cc:([EMAIL PROTECTED]@@SAXP
[EMAIL PROTECTED]): undefined reference to `__endthreadex'

F:/geolog6.6.1/lib/omnithread.lib(nt.o):nt.cc:([EMAIL PROTECTED]
d@@[EMAIL PROTECTED]@@Z]+0x22): undefined reference to
[EMAIL PROTECTED]'

F:/geolog6.6.1/lib/liblicence.a(licflexapi.o):C:/development/ptc:(.text+0x47
): undefined reference to `__setjmp3'

F:/geolog6.6.1/lib/liblicence.a(licflexapi.o):C:/development/ptc:(.text+0xc8
): undefined reference to `__setjmp3'

F:/geolog6.6.1/lib/liblicence.a(licflexapi.o):C:/development/ptc:(.text+0x24
9): undefined reference to `__setjmp3'

F:/geolog6.6.1/lib/liblicence.a(licflexapi.o):C:/development/ptc:(.text+0x69
6): undefined reference to `__imp___stricmp'

F:/geolog6.6.1/lib/liblicence.a(licflexapi.o):C:/development/ptc:(.text+0x96
4): undefined reference to `__setjmp3'

F:/geolog6.6.1/lib/liblicence.a(licflexapi.o):C:/development/ptc:(.text+0xa4
e): undefined reference to `__setjmp3'

F:/geolog6.6.1/lib/liblicence.a(licflexapi.o):C:/development/ptc:(.text+0xb4
b): undefined reference to `_dateUserid'

F:/geolog6.6.1/lib/liblicence.a(licence_c.o):C:/development/ptc:(.text+0x337
): undefined reference to `__imp___errno'

collect2: ld returned 1 exit status

make: *** [example2] Error 1

 

can anyone help me how to handle the situation

 

Anik Pal

Vadodara, India



Anik Pal
Schlumberger, Vadodara, India



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



Undefined reference to _regcmp and _regex

2007-11-21 Thread Anik Pal
Hello All,
I was porting my application code to windows from solaris  environment using
cygwin, while compiling goes ok at linking phase I get the following error. 

 

/home/Administrator/glds/build/Sgl/tables.c:1744: undefined reference to
`_regcmp'

/home/Administrator/glds/build/Sgl/tables.c:1757: undefined reference to
`_regex'

 

Where to get related libraries  for "_regcmp" and "_regex" can anyone tell
me?

 

Thanks in advance!

Regards

Anik Pal

Vadodara, India



Anik Pal
Schlumberger, Vadodara, India



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



GCC compiler -m64 option in cygwin

2007-10-30 Thread anik pal
Hello,

I’m quite new in cygwin environment. I have c source
code of a product which I build in solaris environment
with  gcc compiler –m64 option to create 64 bit
executable in solaris 9 environment. 

Now I’ve to do the same task for win environment,
because the library available for my client is in
windows environment and the library is 64 bit. I
attempt to use cygwin for this job. Now my question
are as follows

 

1 . using cygwin gcc compiler can I link my source
code building with the win environment lib? 
2. is gcc 64 bit option available in cygwin? 
Regards

 

 

Anik Pal

Vadodara, India



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


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