* Compiling cygwin
@ 2002-03-26 13:06 William Hubbard
2002-03-26 14:09 ` Peter Buckley
0 siblings, 1 reply; 5+ messages in thread
From: William Hubbard @ 2002-03-26 13:06 UTC (permalink / raw)
To: cygwin
I have installed the cygwin environment and source code and I want to
compile cygwin1.dll so I can instrument the code to troubleshoot a problem
I am having (which I believe is related to the com routines in cygwin). I
am not very familiar with this environment. How do I compile the DLL? I'm
running Windows 2000.
William Hubbard
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Compiling cygwin
2002-03-26 13:06 Compiling cygwin William Hubbard
@ 2002-03-26 14:09 ` Peter Buckley
2002-03-26 14:37 ` Gerrit P. Haase
0 siblings, 1 reply; 5+ messages in thread
From: Peter Buckley @ 2002-03-26 14:09 UTC (permalink / raw)
To: William Hubbard, cygwin
I actually asked this same question 29 October 2001. If you use google
to search the cygwin.com website (enter "compiling cygwin1.dll
site:cygwin.com" into google's search term box), the first three
messages are from the thread that answered this question for me. You'll
even see my name on one of them- I can't wait to tell my folks that I'm
famous!!! I have included one of the messages that was sent just to
me, and not to the list. Let us know if you have more questions.
HTH,
Peter
Courtesy of Gerrit P. Hasse>>>>>>>>>>.
Then you need to creat a parrallel build directory:
bash$ cd /winsup
bash$ mkdir build
bash$ cd build
Now run the cygwin-build script (below).
#!/bin/bash
export src=/winsup/src
export inst=/winsup/build/inst
build=i686-pc-cygwin
target=i686-pc-cygwin
case $1 in
conf*) ${src}/configure --build=${build} --target=${target} \
--srcdir=${src} --prefix=/usr \
--exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib \
--includedir=/nonexistent/include \
--with-included-gettext 2>&1 | tee log.configure
;;
build*) make CFLAGS=-O2 tooldir=/usr 2>&1 | tee log.make
make info CFLAGS=-O2 tooldir=/usr 2>&1 | tee log.make-info
;;
check*) make CFLAGS=-O2 tooldir=/usr check 2>&1 | tee log.check
;;
clean*) make CFLAGS=-O2 tooldir=/usr clean 2>&1 | tee log.clean
;;
install*) make install prefix=$inst/usr exec_prefix=$inst/usr \
bindir=$inst/usr/bin libdir=$inst/usr/lib \
sysconfdir=$inst/etc includedir=$inst/usr/include \
tooldir=$inst/usr 2>&1 | tee log.install
make install-info prefix=$inst/usr exec_prefix=$inst/usr \
bindir=$inst/usr/bin libdir=$inst/usr/lib \
sysconfdir=$inst/etc includedir=$inst/usr/include \
tooldir=$inst/usr 2>&1 | tee log.install-info
rm -rf $inst/usr/etc
rm -f $inst/usr/info/dir
;;
strip*) (cd ${inst} ; find . -name "*.exe" | xargs strip )
;;
package*) (cd ${inst} ;
rm usr/lib/lib[cgm].a
for i in c g m
do
ln -s libcygwin.a usr/lib/lib$i.a
done
tar cvjf ../mingw-new.tar.bz2 usr/bin/mingwm10.dll \
usr/include/mingw usr/lib/mingw ;
tar cvjf ../w32api-new.tar.bz2 usr/include/w32api \
usr/lib/w32api ;
tar cvjf ../cygwin-new.tar.bz2 usr --exclude='usr/bin/mingwm10.dll' \
--exclude='usr/include/mingw' --exclude='usr/lib/mingw' \
--exclude='usr/include/w32api' --exclude='usr/lib/w32api' \
--exclude='usr/bin/runtest'
--exclude='usr/info/dejagnu.info*' \
--exclude='usr/share/dejagnu' )
;;
packdeb*) (cd ${inst} ;
rm usr/lib/lib[cgm].a
for i in c g m
do
ln -s libcygwin.a usr/lib/lib$i.a
done
tar cvjf ../mingw-new-debug.tar.bz2 usr/bin/mingwm10.dll \
usr/include/mingw usr/lib/mingw ;
tar cvjf ../w32api-new-debug.tar.bz2 usr/include/w32api \
usr/lib/w32api ;
tar cvjf ../cygwin-new-debug.tar.bz2 usr
--exclude='usr/bin/mingwm10.dll' \
--exclude='usr/include/mingw' --exclude='usr/lib/mingw' \
--exclude='usr/include/w32api' --exclude='usr/lib/w32api' \
--exclude='usr/bin/runtest'
--exclude='usr/info/dejagnu.info*' \
--exclude='usr/share/dejagnu' )
;;
*) echo 'argument required: configure, build, install, strip,
package, packdebug'
echo ' [check, clean]'
;;
esac
William Hubbard wrote:
> I have installed the cygwin environment and source code and I want to
> compile cygwin1.dll so I can instrument the code to troubleshoot a
> problem I am having (which I believe is related to the com routines in
> cygwin). I am not very familiar with this environment. How do I
> compile the DLL? I'm running Windows 2000.
>
> William Hubbard
>
>
> --
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
>
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Compiling cygwin
2002-03-26 14:09 ` Peter Buckley
@ 2002-03-26 14:37 ` Gerrit P. Haase
0 siblings, 0 replies; 5+ messages in thread
From: Gerrit P. Haase @ 2002-03-26 14:37 UTC (permalink / raw)
To: Peter Buckley; +Cc: cygwin
Hallo Peter,
Am 2002-03-26 um 20:58 schriebst du:
> I actually asked this same question 29 October 2001. If you use google
> to search the cygwin.com website (enter "compiling cygwin1.dll
> site:cygwin.com" into google's search term box), the first three
> messages are from the thread that answered this question for me. You'll
> even see my name on one of them- I can't wait to tell my folks that I'm
> famous!!! I have included one of the messages that was sent just to
> me, and not to the list. Let us know if you have more questions.
> HTH,
> Peter
> Courtesy of Gerrit P. Hasse>>>>>>>>>>.
Please note that the script was written by Ch. Wilson who also
wrote other famous buildscripts which can be found in the source
tarballs of the packages he maintains (gdbm, zlib, ncurses, libpng
libtiff, readline, to mention only a few!).
Gerrit
--
=^..^=
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Compiling cygwin
@ 2002-04-20 22:46 Robert Collins
0 siblings, 0 replies; 5+ messages in thread
From: Robert Collins @ 2002-04-20 22:46 UTC (permalink / raw)
To: Dave Trollope, cygwin
Theres a bug in the cinstall directory which I will be resolving
shortly. For now, you can ignore that directories failure.
Rob
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Compiling cygwin
2002-04-20 14:38 ` Charles Wilson
@ 2002-04-20 22:05 ` Dave Trollope
0 siblings, 0 replies; 5+ messages in thread
From: Dave Trollope @ 2002-04-20 22:05 UTC (permalink / raw)
To: cygwin
Hi,
I'm tryong to compile cygwin for the first time and am getting the
following errors on my system. I was hoping someone could explain the
conflict here and why my system is failing when every other one in the
world works.
make[2]: Leaving directory
`/usr/src/cygwin/obj/i686-pc-cygwin/winsup/bz2lib'
make[2]: Entering directory
`/usr/src/cygwin/obj/i686-pc-cygwin/winsup/cinstall'
c++ -L/usr/src/cygwin/obj/i686-pc-cygwin/winsup
-L/usr/src/cygwin/obj/i686-pc-cy
gwin/winsup/cygwin -L/usr/src/cygwin/obj/i686-pc-cygwin/winsup/w32api/lib
-isyst
em /usr/src/cygwin/src/winsup/include -isystem
/usr/src/cygwin/src/winsup/cygwin
/include -isystem /usr/src/cygwin/src/winsup/w32api/include -isystem
/usr/src/cy
gwin/src/newlib/libc/sys/cygwin -isystem
/usr/src/cygwin/src/newlib/libc/sys/cyg
win32 -B/usr/src/cygwin/obj/i686-pc-cygwin/newlib/ -isystem
/usr/src/cygwin/obj/
i686-pc-cygwin/newlib/targ-include -isystem
/usr/src/cygwin/src/newlib/libc/incl
ude -L/usr/src/cygwin/obj/ld -MMD -g -O2 -mno-cygwin -I.
-I/usr/src/cygwin/src/w
insup/cinstall -I/usr/src/cygwin/src/winsup/mingw/include
-I/usr/src/cygwin/src
/winsup/bz2lib -mwindows -c -o mklink2.o
/usr/src/cygwin/src/winsup/cinstall/mkl
ink2.cc
/usr/src/cygwin/src/winsup/cinstall/mklink2.cc: In function `void
make_link_2(co
nst char *, const char *, const char *, const char *)':
/usr/src/cygwin/src/winsup/cinstall/mklink2.cc:24: cannot convert
`CLSID_ShellLi
nk' from type `const GUID' to type `const CLSID *'
/usr/src/cygwin/src/winsup/cinstall/mklink2.cc:25: cannot convert
`IID_IPersistF
ile' from type `_GUID' to type `const IID *'
make[2]: *** [mklink2.o] Error 1
make[2]: Leaving directory
`/usr/src/cygwin/obj/i686-pc-cygwin/winsup/cinstall'
make[1]: *** [cinstall] Error 1
make[1]: Leaving directory `/usr/src/cygwin/obj/i686-pc-cygwin/winsup'
make: *** [all-target-winsup] Error 2
mklink2.cc:
CoCreateInstance (CLSID_ShellLink, NULL,
CLSCTX_INPROC_SERVER, IID_IShellLink, (LPVOID *) &
sl);
win32/shlguid.h defines:
extern const GUID CLSID_ShellLink;
objbase.h defines:
WINOLEAPI CoCreateInstance(REFCLSID,LPUNKNOWN,DWORD,REFIID,PVOID*);
basetyps.h defines:
typedef struct _GUID
{
unsigned long Data1;
unsigned short Data2;
unsigned short Data3;
unsigned char Data4[8];
} GUID,*REFGUID,*LPGUID;
typedef CLSID *REFCLSID;
This is clearly an argument mismatch bug, but I'm curious why I'm the only
one seeing this.
Thanks
Dave
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-04-21 5:05 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-26 13:06 Compiling cygwin William Hubbard
2002-03-26 14:09 ` Peter Buckley
2002-03-26 14:37 ` Gerrit P. Haase
2002-04-20 0:02 I am not going to let Cygwin BSOD my Windows 2000 Server George Hester
2002-04-20 0:02 ` I am not going to let cygwin " Christopher Faylor
2002-04-20 0:21 ` George Hester
2002-04-20 9:36 ` Christopher Faylor
2002-04-20 11:02 ` George Hester
2002-04-20 14:28 ` Charles Wilson
2002-04-20 14:38 ` Charles Wilson
2002-04-20 22:05 ` Compiling cygwin Dave Trollope
2002-04-20 22:46 Robert Collins
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).