bug with Cygwin - ls .. within a link (directory)
Here is a bug with cygwin: r is a link to /cygdrive/c/robertbody and when I go into the link named r and I do ls .. it is incorrect, and inconsistent with cd ..; ls, because in fact Cygwin is mishandling the link.. inconsistently with any linux/unix On another note, I reported a bug with type ahead while running a script (within a script within a script), and nobody wrote that they will take action, or to confirm it, so i wrote to Corinna directly, because it doesn't look like all the bug reports are properly addressed. -Robert --- /home/Owner cd r /home/Owner/r pwd /home/Owner/r /home/Owner/r ls .. 1.bmp EPSONREG System Volume Information icewm-fix.txt robert2 /home/Owner/r cd .. /home/Owner ls 0 Desktop Recent cc f7 games-work hiya07 r utils 1 Favorites Start Menu f0 f77hi hiya207 save xpenguins.exe Application Data Local Settings bin f1 f9 hiSQL01 linux t zioio Cookies My Documentsc f2 games hiSQL02 my.tgz tmp --- -- 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/
type ahead bug report - so far not addressed
here is the bug report again, i tried emailing Corinna, but that didn't work Delivery to the following recipients failed. [EMAIL PROTECTED] From: Robert Body [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: bug with cygwin Date: Mon, 19 Dec 2005 19:53:48 -0700 Hi, I reported this bug over a week ago, but nobody replied to it properly, so I am writing to you directly. It is a bug with type ahead while scripts 3 deep are executing (a script within a script within a script). What happens I write something while it is doing an FTP and that something is echoed to the screen, but when the scripts complete, that action does not take place. This is inconsistent with any Linux/Unix the commands are just lost. Like i said I wrote about this a week ago, but nobody replied that yes we will investigate or yes we will fix it. I will also post to the mailing list right now another bug report, about ls .. within a link, which does not work consistent with unix/Linux -Robert -- 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/
traceroute command anywhere?
Hi, I looked in www.cygwin.com/packages that must be the best way to search for what's inside packages right? and I can't find traceroute which pings a website but also shows how it got there, with the 11 or so hits of IPs it does along the way is there a pre-built binary for traceroute out there? -Robert -- 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: traceroute command anywhere?
Thanks Brian, I tried traceroute in Windows, didn't work, but with your tracert command suggestion it works. I get this output: Tracing route to robertbody.com [206.53.60.7] over a maximum of 30 hops: 1 *** Request timed out. 2 8 ms 9 ms24 ms 68.86.105.109 3 9 ms 9 ms 9 ms 68.86.103.45 4 8 ms 9 ms10 ms 68.86.103.178 5 9 ms 7 ms10 ms 12.124.157.53 634 ms33 ms33 ms gbr1-p40.dvmco.ip.att.net [12.123.36.146] 733 ms32 ms74 ms tbr1-p013501.dvmco.ip.att.net [12.122.1.29] 834 ms36 ms35 ms 12.122.12.133 932 ms33 ms33 ms 12.122.81.137 1035 ms33 ms33 ms p5-0.core01.sjc03.atlas.cogentco.com [154.54.11.237] 1135 ms34 ms35 ms p3-0.core01.sjc01.atlas.cogentco.com [154.54.1.29] 1280 ms78 ms79 ms p14-0.core01.iah01.atlas.cogentco.com [66.28.4.237] 13 * 486 ms 517 ms p4-0.core01.dca01.atlas.cogentco.com [66.28.4.89] 14 643 ms * 487 ms p4-0.core01.phl01.atlas.cogentco.com [66.28.4.18] 15 488 ms 492 ms * p5-0.core02.jfk02.atlas.cogentco.com [66.28.4.1] 16 490 ms 483 ms 487 ms p15-0.core01.jfk02.atlas.cogentco.com [66.28.4.13] 17 487 ms 491 ms 491 ms p12-0.core01.jfk05.atlas.cogentco.com [154.54.1.26] 18 481 ms 481 ms 480 ms Velcom-1433965Ontario.demarc.cogentco.com [38.112.13.194] 19 486 ms 487 ms 490 ms b8000-core-ny.velcom.com [206.53.55.50] 20 ** 481 ms terra.velcom.com [206.53.60.7] Trace complete. if 486ms starts at entry 13, but is still at 20, can I say that 20 is playing a part in the horrible delay? If I run ping: Reply from 206.53.60.7: bytes=32 time=483ms TTL=46 Reply from 206.53.60.7: bytes=32 time=475ms TTL=42 Reply from 206.53.60.7: bytes=32 time=483ms TTL=42 Reply from 206.53.60.7: bytes=32 time=482ms TTL=42 I get 500ms almost ping, it should be 100 normally. Upload of data is at 4.2K, it should be 40K, and the website host company is telling me they're pinging my website at 80ms and all is good, but it's not. (host is Velcom) So can I say from the tracert that they are indeed slowing things down, them being the last in the chain at 20? Thanks -Robert From: Brian Dessent [EMAIL PROTECTED] Reply-To: cygwin@cygwin.com To: cygwin@cygwin.com Subject: Re: traceroute command anywhere? Date: Sun, 11 Dec 2005 09:40:50 -0800 Robert Body wrote: Hi, I looked in www.cygwin.com/packages that must be the best way to search for what's inside packages right? In all honesty it is the very best way, at least if you are only interested in finding official Cygwin packages. There are of course other repositories of non-official packages. If you are using a recent snapshot you can also use cygcheck -p query from the command line which queries the same list. and I can't find traceroute which pings a website but also shows how it got there, with the 11 or so hits of IPs it does along the way is there a pre-built binary for traceroute out there? The tracert command is part of windows and should be on any PC. While not a Cygwin app it should work fine from within Cygwin. Is there a reason this will not work for your needs? Alternatively, find the source tarballs of other implementations of the the various traceroute utilities (e.g. lft, mtr) and see if they will compile. See for example http://freshmeat.net/search/?q=traceroutesection=projectsGo.x=0Go.y=0 Brian -- 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/ -- 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: type ahead bug with cygwin
Yes Samuel, I am sure, I just tried it now, and it's been a couple of Cygwin restarts since last time. I type a command g geo which runs 3 scripts deep to accomplish TGZipping, FTPing and then SSHing as part of file upload process. During that time (which happens during FTPing, the longest process) i type another command g answers enter When g geo completes I even press enter (again), but nothing is present to take action, my up-key history confirms that indeed g answers never registered as a command, even though it echoed as I originally typed. It could be the 3 levels deep script mechanism that's losing the input, but i believe that a regular Unix/Linux would keep the info present and execute the new command upon first one's completion. This is not the first time it happened, it's 100% consistent to fail. -Robert From: Samuel Thibault [EMAIL PROTECTED] To: cygwin@cygwin.com Subject: Re: type ahead bug with cygwin Date: Sat, 10 Dec 2005 11:15:09 +0100 Robert Body, le Fri 09 Dec 2005 20:01:49 -0700, a écrit : During an ftp session, when the shell was tied up for 15 minutes, I typed something, and of course it was echoed, but when the ftp session completed, the commands I typed were lost, no action was taken. Mmm, are you sure? There is a little bug indeed, in that they aren't echoed on the next prompt, but if you type one character more, you'll see all of them (the previously typed and the one just typed) appear. Regards, Samuel -- 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/ -- 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: sftp progress showing ... 66% complete
Thanks for the input, Brian, I was trying to have the script re-direct output to a file (well actually just the final command of _time_ command was what mattered), but I guess that meant the sftp progress % went to a file too, but strange thing is, the other Stdout messages like Uploading... and chdir went to screen normally. So I got rid of of my 21 and tee in my 3 files deep script call, and I did this: start=`perl -e print time;` $mycommand end=`perl -e print time;` perl -e \$alpha=($end-$start); print \$alpha.\s\; $tempFileTime # end time - start time I don't know how to handle X-Y in shell itself (nor how to get clock-ticks since 1970/1/1), so i just send it to Perl and have it get clock-ticks at start, at the end and I get the difference, and that's like the output from _time_ (measuring how long $mycommand took) and this way by including progress in the input file to sftp i get to see the progress %percentage during transfer :-) -Robert From: Brian Dessent [EMAIL PROTECTED] Reply-To: cygwin@cygwin.com To: cygwin@cygwin.com Subject: Re: sftp progress showing ... 66% complete Date: Sat, 10 Dec 2005 01:33:50 -0800 Robert Body wrote: ok it appears my problem is with my script, not sftp: specifically with using tee or in the command: (time $mycommand) 21 | tee $tempFile The sftp program, like many others (e.g. scp) will only output status information if stdout is a tty. When you redirect to a file this is not the case. The reason it does this is that interactive progress meters like those used by most file transfer programs will look like gibberish when redirected to a file, because they usually print repeated status update lines every few seconds, using carriage returns to overwrite the prior output without advancing a row on the screen. You can get around this by using something like the 'script' utility, which will provide a pseudoterminal (pty) to the program so that it thinks it's being run interactively, but the output in fact goes to a file. However if you look at this output with something like 'less' it will probably look like garbage because of all these repeated lines. Again, these programs are not intended to log their interactive outputs to a file, so if you do this you will probably have to process the output in some way if you want something readable. However, if you simply 'cat' the output to a terminal it will look perfectly normal since in effect you are just playing back all these terminal sequences in fast-forward. Brian -- 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/ -- 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: Serious X problem, cannot start xterm.
Gerrit, did you try running the startxwin.bat file too from Windows? That's what I do, i run an icon from Windows XP desktop, and it runs XWin and then Ice so the first teminal window I see is rxvt (or xterm), not the Windows managed cmd.exe window -Robert From: René Berber [EMAIL PROTECTED] Reply-To: cygwin-xfree@cygwin.com To: cygwin-xfree@cygwin.com Subject: Re: Serious X problem, cannot start xterm. Date: Fri, 09 Dec 2005 20:17:02 -0600 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gerrit P. Haase wrote: I have no idea what is happening, IIRC I updated recently the package X-startup-scripts, however I use startxwin.sh and there no changes at all (why was the package updated?), all other X11 related package are current as before. Now when running the script I get this output when xterm should start: $ startxwin.sh [EMAIL PROTECTED] /perl $ _X11TransSocketOpenCOTSClient: Unable to open socket for tcp _X11TransOpen: transport open failed for tcp/127.0.0.1:0 xterm Xt error: Can't open display: 127.0.0.1:0.0 Welcome to the XWin X Server [...] This is on my notebook with XP installed. Also later after XWin strtup is finished (including the window manager twm) I cannot start xterm, getting the same error. Probably the same reason causes the issue I have with ssh here: $ ssh sourceware.org ssh: sourceware.org: no address associated with name lost connection Seems unrelated to the startup scripts. The problem should be with whatever cygminires.dll depends on to resolve names or with changed firewall settings (can't query DNS server because port 53 is not open), it could also be in /etc/hosts for the case where localhost is not defined as 127.0.0.1. HTH - -- René Berber -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iEYEARECAAYFAkOaOp4ACgkQL3NNweKTRgxn9gCg+72MMvfsOH0qF54WkQCmger1 H3MAoPTJgBAQBmoWzUomSRye+/jEc+2q =y5pj -END PGP SIGNATURE- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
type ahead bug with cygwin
Hi, I found something that I think is a fundamental issue with cygwin. During an ftp session, when the shell was tied up for 15 minutes, I typed something, and of course it was echoed, but when the ftp session completed, the commands I typed were lost, no action was taken. Of course a real linux/unix system would have carried out those actions after completing the ftp. This wasn't just a one command ftp call, it was an ftp call in a script called by another script, but I think this would happen if i just did ftp command from the command line. -Robert -- 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/
sftp progress showing ... 66% complete
Hi, I like seeing the percentage complete feedback while running sftp, but I can only get it if i type sftp [EMAIL PROTECTED] commandsFile if I put this line into a script.. no feeback of progress (like 66% complete) if I run sftp -b commandsFile [EMAIL PROTECTED] again, no feedback of progress. How can I get the feedback when I run sftp [EMAIL PROTECTED] commandsFile inside of a script? Anyone knows? My transfers are sometimes 5megs, sometimes 50megs, sometimes 90megs, it would be nice to see how much is left to upload. -Robert -- 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: sftp progress showing ... 66% complete
ok it appears my problem is with my script, not sftp: specifically with using tee or in the command: (time $mycommand) 21 | tee $tempFile I am trying to time $mycommand which is sftp [EMAIL PROTECTED] fileWithActions I need the output of _time_ and then i head and tail it and send to perl for formatting, then it's bannered and logged however using or tee prevents sftp from outputting progress only though, it tells me everything else like changing directory, enabling progress How can I use or tee and write output of _time_ to a file, yet still be able to see the progress inside of sftp ? -Robert - mycommand=$myftp [EMAIL PROTECTED] /home/Owner/bin/ftp/tgz (time $mycommand) 21 | tee $tempFile sleep 3 # delay ftp, due to ftpd running on velcom, to rename file change-title cygwin; #---Problem with FTP--- if [ -a $ftpProblemFile ]; then rm $ftpProblemFile touch $gtfProblemFile # report up to g echo $H ftp problem discovered ...exiting; exit; fi; #-- cat $tempFile | tail -3 | head -1 | awk {'print $2'} $tempFile2 $perl_time `cat $tempFile2` | tee $tempFile $my_banner `cat $tempFile`; - my logging lets me store something like this, the second time value is FTP transfer time: 2005-12-09 21:42:01 g-tgz [ 33,521,026] (20s, 12m 36s,11s, 13m 14s) cities things 2005-12-09 22:29:33 g-tgz [ 2,309,383] ( 2s, 58s, 4s, 1m 11s) map bw prog travels my_adventures 2005-12-09 22:31:10 g-tgz [ 25,496,750] ( 5s, 10m 13s, 6s, 10m 33s) slovakia ontario temagami greece 2005-12-09 22:48:50 g-tgz [ 90,072,496] ( 1m 24s, 35m 59s,36s, 38m 06s) animals answers arizona birds bw california cats cities colorado geo greece me misc -- 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/
backing up Cygwin
Hi, what is a good way to backup Cygwin? Through Cygwin, through Windows? Won't I lose the file permissions on files with Windows backup? And turn groups/owners all into how about TGZip or BZIP2 everything from cygwin, is that the best way? I have about 1gig of Cygwin stuff now. -Robert -- 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: How to add a title to xterm
Here is a script that works in bash or ksh for setting the title based on your current path, by setting up $PS1. I have also seen similar thing done by aliasing cd command I use bash mostly, but for ksh there is need for Perl in my script below to accomplish the passing of ESC characters to ksh. I could not figure out how to do it with awk -Robert case `echo _$0 | /usr/bin/tr '[:upper:]' '[:lower:]' | sed -e 's/^_//'` in # bash | -bash | */bash ) # echo ...running bash HOSTNAME=`hostname`; export HOSTNAME # Set a HOSTNAME variable # # 29=white,30=black,31=red,32=green,33=yellow, 34=blue,35=magenta,36=cyan # # Set a default prompt of: [EMAIL PROTECTED] and current_directory #PS1='\[\e]0;[EMAIL PROTECTED] \[\e[33m\]\w\[\e[0m\]\n\$ ' #PS1='\[\e]0;$HOSTNAME: $PWD\a\]\[\e[36m\]$PWD\[\e[0m\] '# (in title) HOST-$PWD ... $PATH PS1='\[\e]0;$ME: $PWD\a\]$PWD '# (in title) HOST-$PWD ... $PATH ;; # ksh* | -ksh* | */ksh* ) # echo ...running ksh typeset -l HOSTNAME # Set a HOSTNAME variable PS1=$(perl -e 'printf\033]0;$ARGV[0]: \$PWD\007\033[29m\$PWD\033[0m\ ' $ME) ;; esac From: Ehud Karni [EMAIL PROTECTED] Reply-To: cygwin-xfree@cygwin.com To: [EMAIL PROTECTED] CC: cygwin-xfree@cygwin.com Subject: Re: How to add a title to xterm Date: Wed, 7 Dec 2005 18:43:29 +0200 On Wed, 7 Dec 2005 06:54:41 -, fergus [EMAIL PROTECTED] wrote: How to add a title to xterm? I do not use startx: for me, it sets up unnecessary or inconvenient defaults. You can always set the xterm title by sending it the string: Esc ] 0 ; your title ^G . You can do it from the xterm application (writing to /dev/tty or stdout if its connected, or externally, by writing to /dev/ttyn [Cygwin] or /dev/pts/n [Linux]). Bellow is a small script that update the title if it is run on an interactive xterm (the 2nd is a tty emulator written here). Ehud #! /bin/sh -e # this script sets the TTY title to 1st argument # -- if [ -t 1 ] ; then # do only if stdout is terminal TTL=`echo $1 | sed -e s/ [ ]*/ /g` # any length of spaces to 1 space case $TERM in xter* ) echo \033]0;$TTL\a\c # write it to xterm window title ;; npc* ) DTTL=`echo $TTL\c | od -An -tu1 -v | tr \012 | sed -e s/ [ ]*/;/g` echo \033[=/${DTTL:1:999};253;t\c# For Mivtach Simon TTY ;; esac fi ## set_tty_title ## -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
error: undefined reference to [EMAIL PROTECTED]'
Hi, I saw the explanation to error: undefined reference to [EMAIL PROTECTED]' in http://sourceware.org/ml/cygwin/2005-10/msg01038.html but I don't understand how that would apply to my problem. I am trying to install Hermes-1.3.3 and I get the error about [EMAIL PROTECTED], but all I am trying to do is compile a graphics library Hermes, that is needed by ClanLib 0.6.5, that is needed by Pingus. Thank you for your help -Robert /usr/i686-pc-cygwin/bin/ld.exe -r -o .libs/libHermes.la-39.o .libs/x86p_i8.o .libs/libHermes.la-38.o /usr/i686-pc-cygwin/bin/ld.exe -r -o .libs/libHermes.la-40.o .libs/mmxp2_32.o .libs/libHermes.la-39.o if test x`sed 1q .libs/libHermes.exp` = xEXPORTS; then cp .libs/libHermes.exp .libs/cygHermes-1.dll-def; else echo EXPORTS .libs/cygHermes-1.dll-def; _lt_hint=1; cat .libs/libHermes.exp | while read symbol; do set dummy $symbol; case $# in 2) echo $2 @ $_lt_hint ; .libs/cygHermes-1.dll-def;; 4) echo $2 $3 $4 ; .libs/cygHermes-1.dll-def; _lt_hint=`expr $_lt_hint - 1`;; *) echo $2 @ $_lt_hint $3 ; .libs/cygHermes-1.dll-def;; esac; _lt_hint=`expr 1 + $_lt_hint`; done; fi gcc -Wl,--base-file,.libs/cygHermes-1.dll-base -Wl,-e,[EMAIL PROTECTED] -o .libs/cygHermes-1.dll .libs/libHermes.la-40.o /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libcygwin.a(libcmain.o):: undefined reference to [EMAIL PROTECTED]' collect2: ld returned 1 exit status make[2]: *** [libHermes.la] Error 1 make[2]: Leaving directory `/home/Owner/utils/herm/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/Owner/utils/herm/src' make: *** [all-recursive] Error 1 -- 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/
gzread, gzdopen, gzclose not found
Hi, I am trying to compile ClanLib, and I have zLib installed, I thought that's where these 3 gz function are from... but my Make does not find them -Robert (I have) zlib1.2.2-2 Cygwin DLL version info: DLL version: 1.5.18 DLL epoch: 19 DLL bad signal mask: 19005 DLL old termios: 5 DLL malloc env: 28 API major: 0 API minor: 132 Shared data: 4 DLL identifier: cygwin1 Mount registry: 2 Cygnus registry name: Cygnus Solutions Cygwin registry name: Cygwin Program options name: Program Options Cygwin mount registry name: mounts v2 Cygdrive flags: cygdrive flags Cygdrive prefix: cygdrive prefix Cygdrive default prefix: Build date: Sat Jul 2 20:30:04 EDT 2005 Shared id: cygwin1S4 --- Building Libs/libclanApp.so Libs/libclanCore.a(datafile_inputprovider.o): In function `_ZNSt11_Deque_baseI18CL_Zipped_PositionSaIS0_EED2Ev': /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/ext/new_allocator.h:(.text+0x65): undefined reference to `_gzread' Libs/libclanCore.a(datafile_inputprovider.o): In function `_ZN23CL_InputSource_Datafile4openEv': /home/Owner/utils/ClanLib-0.6.5/Sources/Core/IOData/Generic/datafile_inputprovider.cpp:199: undefined reference to `_gzdopen' Libs/libclanCore.a(datafile_inputprovider.o): In function `_ZN23CL_InputSource_Datafile5closeEv': /home/Owner/utils/ClanLib-0.6.5/Sources/Core/IOData/Generic/datafile_inputprovider.cpp:218: undefined reference to `_gzclose' collect2: ld returned 1 exit status make: *** [Libs/libclanApp.so] Error 1 -- 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: gzread, gzdopen, gzclose not found
Thanks for replying Brian, this is part of a 2 week effort of many failures, finally zooming on getting Pingus to work (or finding it's not possible, but at least getting the dependencies to work)... I run make, which seems to diverge into other directories. this is in the main Makefile: all: clanCore clanSignals clanApp clanDisplay clanSound clanGL clanGUI clanNetwork clanPNG clanJPEG clanSmallJPEG -- and this is the last failing command -- /home/Owner/utils/ClanLib-0.6.5 make Compile command .cpp = g++ -g -O2 -Wall -I Sources -I /usr/X11R6/include -I /usr/X11R6/include/X11 -I/usr/include/freetype2 -fPIC -DNOCONTROLS -D__int64=int64_t -DPACKAGE_NAME= -DPACKAGE_TARNAME= -DPACKAGE_VERSION= -DPACKAGE_STRING= -DPACKAGE_BUGREPORT= -DCL_SCANDIR=/usr/local/lib/ClanLib -DHAVE_LIBZ=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DUSE_X11=1 -DUSE_OPENGL=1 -DUSE_CLANSOUND=1 -DUSE_NETWORK=1 -DUSE_I386_ASSEMBLER=1 -DUSE_GUI=1 -DUSE_PNG=1 -DUSE_JPEG=1 -DUSE_SMALLJPEG=1 -DHAVE_LIBPTHREAD=1 -DDEBUG=1 -g3 -ggdb3 -c Compile command .c = gcc -g -O2 -Wall -I Sources -I /usr/X11R6/include -I /usr/X11R6/include/X11 -I/usr/include/freetype2 -fPIC -DNOCONTROLS -D__int64=int64_t -DPACKAGE_NAME= -DPACKAGE_TARNAME= -DPACKAGE_VERSION= -DPACKAGE_STRING= -DPACKAGE_BUGREPORT= -DCL_SCANDIR=/usr/local/lib/ClanLib -DHAVE_LIBZ=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DUSE_X11=1 -DUSE_OPENGL=1 -DUSE_CLANSOUND=1 -DUSE_NETWORK=1 -DUSE_I386_ASSEMBLER=1 -DUSE_GUI=1 -DUSE_PNG=1 -DUSE_JPEG=1 -DUSE_SMALLJPEG=1 -DHAVE_LIBPTHREAD=1 -DDEBUG=1 -g3 -ggdb3 Compile command .s = as Building Libs/libclanApp.so Libs/libclanCore.a(datafile_inputprovider.o): In function `_ZNSt11_Deque_baseI18CL_Zipped_PositionSaIS0_EED2Ev': /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/ext/new_allocator.h:(.text+0x65): undefined reference to `_gzread' Libs/libclanCore.a(datafile_inputprovider.o): In function `_ZN23CL_InputSource_Datafile4openEv': /home/Owner/utils/ClanLib-0.6.5/Sources/Core/IOData/Generic/datafile_inputprovider.cpp:199: undefined reference to `_gzdopen' Libs/libclanCore.a(datafile_inputprovider.o): In function `_ZN23CL_InputSource_Datafile5closeEv': /home/Owner/utils/ClanLib-0.6.5/Sources/Core/IOData/Generic/datafile_inputprovider.cpp:218: undefined reference to `_gzclose' collect2: ld returned 1 exit status make: *** [Libs/libclanApp.so] Error 1 -- 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: gzread, gzdopen, gzclose not found
This must be the specific Makefile (took me til now to figure it out :-) ) but i still don't know where the problem is... maybe include /usr/lib somewhere somehow? # # Makefile data for clanApp library. # clanApp: Libs/libclanApp.so Libs/libclanApp.a installApp: clanApp @for i in `find Sources/API/Application -type d | grep -v CVS | sed s/Sources\/API\///;`; do install -d $(INC_PREFIX)/ClanLib/$$i; done @for i in `find Sources/API/Application -type f | grep -v CVS | sed s/Sources\/API\///;`; do install -m 0644 Sources/API/$$i $(INC_PREFIX)/ClanLib/$$i; done @install -m 0644 Sources/API/application.h $(INC_PREFIX)/ClanLib/application.h @install -d $(LIB_PREFIX) @install Libs/libclanApp.so.$(D_VERSION_MINOR) $(LIB_PREFIX) @install Libs/libclanApp.a $(LIB_PREFIX) @ln -s -f libclanApp.so.$(D_VERSION_MINOR) $(LIB_PREFIX)/libclanApp.so.$(D_VERSION_MAJOR) @ln -s -f libclanApp.so.$(D_VERSION_MAJOR) $(LIB_PREFIX)/libclanApp.so OBJF_LIB_App = Libs/Intermediate/clanapp.o Libs/libclanApp.so: Libs/libclanCore.so $(OBJF_LIB_App) @echo Building Libs/libclanApp.so @$(LINK_COMMAND) -Wl,-soname=libclanApp.so.$(D_VERSION_MAJOR) -o Libs/libclanApp.so.$(D_VERSION_MINOR) $(OBJF_LIB_App) -L Libs -lclanCore @ln -s -f libclanApp.so.$(D_VERSION_MINOR) Libs/libclanApp.so.$(D_VERSION_MAJOR) @ln -s -f libclanApp.so.$(D_VERSION_MAJOR) Libs/libclanApp.so Libs/libclanApp.a: $(OBJF_LIB_App) @echo Building Libs/libclanApp.a [EMAIL PROTECTED] [ -e Libs/libclanApp.a ]; then rm -f Libs/libclanApp.a; fi @ar qc Libs/libclanApp.a $(OBJF_LIB_App) From: Brian Dessent [EMAIL PROTECTED] Reply-To: cygwin@cygwin.com To: cygwin@cygwin.com Subject: Re: gzread, gzdopen, gzclose not found Date: Sat, 03 Dec 2005 16:39:26 -0800 Robert Body wrote: Hi, I am trying to compile ClanLib, and I have zLib installed, I thought that's where these 3 gz function are from... but my Make does not find them You didn't include enough information, such as the actual command used to link. As a guess I'd say you're missing -lz or you have -lz in the wrong position in the order. Brian -- 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/ -- 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: gzread, gzdopen, gzclose not found
I have been asking on the clanlib mailing list... waiting... asking other questions... looking on internet, mailing list archives... from the last email which you might not have seen prior to your reply, I found this Libs/libclanApp.so.$(D_VERSION_MINOR) $(OBJF_LIB_App) -L Libs -lz -lclanCore @ln -s -f libclanApp.so.$(D_VERSION_MINOR) Libs/libclanApp.so.$(D_VERSION_MAJOR) @ln -s -f libclanApp.so.$(D_VERSION_MAJOR) Libs/libclanApp.so and now i just put the -lz there, but it's not the right spot and I don't know what a right spot is, and why is -lz enough? i would think to put /usr/lib somewhere -Robert # # Makefile data for clanApp library. # clanApp: Libs/libclanApp.so Libs/libclanApp.a installApp: clanApp @for i in `find Sources/API/Application -type d | grep -v CVS | sed s/Sources\/API\///;`; do install -d $(INC_PREFIX)/ClanLib/$$i; done @for i in `find Sources/API/Application -type f | grep -v CVS | sed s/Sources\/API\///;`; do install -m 0644 Sources/API/$$i $(INC_PREFIX)/ClanLib/$$i; done @install -m 0644 Sources/API/application.h $(INC_PREFIX)/ClanLib/application.h @install -d $(LIB_PREFIX) @install Libs/libclanApp.so.$(D_VERSION_MINOR) $(LIB_PREFIX) @install Libs/libclanApp.a $(LIB_PREFIX) @ln -s -f libclanApp.so.$(D_VERSION_MINOR) $(LIB_PREFIX)/libclanApp.so.$(D_VERSION_MAJOR) @ln -s -f libclanApp.so.$(D_VERSION_MAJOR) $(LIB_PREFIX)/libclanApp.so OBJF_LIB_App = Libs/Intermediate/clanapp.o Libs/libclanApp.so: Libs/libclanCore.so $(OBJF_LIB_App) @echo Building Libs/libclanApp.so @$(LINK_COMMAND) -Wl,-soname=libclanApp.so.$(D_VERSION_MAJOR) -o Libs/libclanApp.so.$(D_VERSION_MINOR) $(OBJF_LIB_App) -L Libs -lclanCore @ln -s -f libclanApp.so.$(D_VERSION_MINOR) Libs/libclanApp.so.$(D_VERSION_MAJOR) @ln -s -f libclanApp.so.$(D_VERSION_MAJOR) Libs/libclanApp.so Libs/libclanApp.a: $(OBJF_LIB_App) @echo Building Libs/libclanApp.a [EMAIL PROTECTED] [ -e Libs/libclanApp.a ]; then rm -f Libs/libclanApp.a; fi @ar qc Libs/libclanApp.a $(OBJF_LIB_App) From: Brian Dessent [EMAIL PROTECTED] Reply-To: cygwin@cygwin.com To: cygwin@cygwin.com Subject: Re: gzread, gzdopen, gzclose not found Date: Sat, 03 Dec 2005 17:10:09 -0800 Robert Body wrote: Building Libs/libclanApp.so Libs/libclanCore.a(datafile_inputprovider.o): In function `_ZNSt11_Deque_baseI18CL_Zipped_PositionSaIS0_EED2Ev': There's still not enough information. You need to find out what command this makefile is running that is causing the error. And then modify it to have -lz in the correct location. On cygwin the output file should be cygclanApp.dll, not libclanApp.so, so that right there tells me that this makefile probably hardcodes such things, which means that it is probably not portable and was likely hand written by someone who has no concept of any other *nix than linux. WHy can't people just use libtool? You should try asking these questions on the clanlib mailing list / forum / whatever. Brian -- 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/ -- 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/
IceWM v1.2.23 on Cygwin OK - was RE: compiling IceWM - immediate runtime core
I found the answer !!:-) on the IceWM mailing list this lets Cygwin users use IceWM the secret is ./configure step with 7 special instructions ./configure --disable-xinerama --disable-xfreetype --disable-nls --disable-shape --disable-xrandr --without-imlib --enable-corefonts that works just find to compile and run in IceWM v1.2.23 and v1.2.20 :-) I put my findings in a little area on my website: http://www.robertbody.com/prog/cygwin/setup.html and I'll put some other hard show-stopper findings there too ps. I read somewhere on IceWM website Sorry, Cygwin doesn't work the other day... but it does, it does, it does :-) ps2. With the help of Cygwin, I can automate the transfer of my whole website to a unix server in 1 hour (400megs uncompressed, 160megs compressed), not 6-8hours it used to take to transfer 20,000files one by one with Windows FTP application. and my Cygwin triggers Visual C++ code to run on Windows side and build HTML files from Database lookups, so it's one command case, not the do... wait... answer questions. wait kind of Windows interface :-) .. the biggest extreme case was 1hour for 2,000files in 8 megs (all text) which compresses to 300K and less than 1 minute of Cygwin power :-) (18 seconds FTP) -Robert From: Robert Body [EMAIL PROTECTED] Reply-To: cygwin-xfree@cygwin.com To: cygwin-xfree@cygwin.com Subject: compilining IceWM - immediate runtime coredump with v1.2.23 Date: Tue, 22 Nov 2005 20:50:50 -0700 Hi, I am using Ice Windows Manager v1.0.9-2 from several years ago, because compiling v1.2.23 causes this: /home/Owner/utils/wm/icewm-1.2.19/src icewm IceWM: using /home/Owner/.icewm for private configuration files IceWM: Warning: glyph not found: 24 IceWM: Warning: glyph not found: 24 IceWM: Warning: glyph not found: 24 IceWM: Warning: glyph not found: 24 IceWM: Warning: glyph not found: 115 [1]+ Aborted (core dumped) ./icewm /home/Owner/utils/wm/icewm-1.2.19/src I tried this 1.2.23, 1.2.21, 1.2.20 and 1.2.19 -- same thing happens in all. I got a prebuilt binary version of 1.0.9-2, so that's how that one worked. I use --disable-xinerama because I read that there is no Xinerama for cygwin. Make is ok with having everything it needs, but when it completes the executable coredumps. I think Ice WM is very very cool so a newer version than 4 years ago would be better -Robert -- I generated like this: -- /home/Owner/utils/wm/icewm-1.2.19 ./autogen.sh ; configure --disable-xinerama ; make /usr/share/aclocal/pstoedit.m4:7: warning: underquoted definition of AM_PATH_PSTOEDIT run info '(automake)Extending aclocal' or see http://sources.redhat.com/automake/automake.html#Extending-aclocal You can run `configure' now to create your Makefile. checking build system type... i686-pc-cygwin checking host system type... i686-pc-cygwin checking target system type... i686-pc-cygwin checking for g++... g++ checking for C++ compiler default output file name... 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 g++ accepts -g... yes checking whether the C++ compiler (g++) accepts no_rtti... yes checking whether the C++ compiler (g++) accepts no_exceptions... yes checking whether the C++ compiler (g++) accepts warn_xxx... yes checking whether the C++ compiler (g++) accepts permissive... yes checking for a BSD-compatible install... /usr/bin/install -c checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking for sys/wait.h that is POSIX.1 compatible... yes checking how to run the C++ preprocessor... g++ -E checking for egrep... grep -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 fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking for strings.h... (cached) yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for unistd.h... (cached) yes checking linux/threads.h usability... no checking linux/threads.h presence... no checking for linux/threads.h... no checking linux/tasks.h usability... no checking linux/tasks.h presence... no checking for linux/tasks.h... no checking sched.h usability... yes checking sched.h presence... yes
XInternAtom XRectInRegion ... not found ... problem with the make file?
Hi, I am getting errors about xlib components missing. Running find gives me this: / find * | grep XInternAtom usr/X11R6/lib/X11/doc/html/XInternAtom.3.html usr/X11R6/lib/X11/doc/html/XInternAtoms.3.html usr/X11R6/man/man3/XInternAtom.3 usr/X11R6/man/man3/XInternAtoms.3 so it finds the docs, but not the source files. Someone said that maybe my X lib specification might be wrong but this looks ok to me: gcc -Wall -L/usr/X11R6/lib -L/usr/local/lib -lX11 -lXpm -lXext xsimpsons.o toon.o -o xsimpsons I tried looking through Cygwin docs, on internet... and on internet i found out it belongs to XLIB group, but the closest Cygwin has is xorg-x11-libs-data-6.8.99.901-1.tar which doesn't contain those files This still happens after I manually downloaded the following and looked in there too -- no luck --- -rwx-- 1 Owner None 5500486 Nov 22 00:45 xorg-x11-base-6.8.99.901-1-src.tar -rwx-- 1 Owner None 2836895 Nov 22 00:45 xorg-x11-bin-dlls-6.8.99.901-1-src.tar -rwx-- 1 Owner None 1661595 Nov 22 00:45 xorg-x11-devel-6.8.99.901-1.tar -rwx-- 1 Owner None 536374 Nov 22 00:45 xorg-x11-etc-6.8.99.901-1.tar.tar -rwx-- 1 Owner None 195890 Nov 22 00:45 xorg-x11-libs-data-6.8.99.901-1.tar -rwx-- 1 Owner None 2754734 Nov 22 00:45 xorg-x11-xwin-6.8.99.901-1-src.tar --- --- This is the compiling errors: --- /home/Owner/games/simp make gcc -Wall -L/usr/X11R6/lib -L/usr/local/lib -lX11 -lXpm -lXext xsimpsons.o toon.o -o xsimpsons toon.o:toon.c:(.text+0x47): undefined reference to `_XInternAtom' toon.o:toon.c:(.text+0x7a): undefined reference to `_XQueryTree' toon.o:toon.c:(.text+0x105): undefined reference to `_XGetWindowProperty' toon.o:toon.c:(.text+0x136): undefined reference to `_XFree' toon.o:toon.c:(.text+0x1a3): undefined reference to `_XOpenDisplay' toon.o:toon.c:(.text+0x31c): undefined reference to `_XCreateGC' toon.o:toon.c:(.text+0x326): undefined reference to `_XCreateRegion' toon.o:toon.c:(.text+0x349): undefined reference to `_XSelectInput' toon.o:toon.c:(.text+0x548): undefined reference to `_XpmCreatePixmapFromData' toon.o:toon.c:(.text+0x625): undefined reference to `_XSetClipOrigin' toon.o:toon.c:(.text+0x653): undefined reference to `_XSetClipMask' toon.o:toon.c:(.text+0x6c7): undefined reference to `_XCopyArea' toon.o:toon.c:(.text+0x6e5): undefined reference to `_XSetClipMask' toon.o:toon.c:(.text+0x786): undefined reference to `_XClearArea' toon.o:toon.c:(.text+0x7a7): undefined reference to `_XFlush' toon.o:toon.c:(.text+0x8ef): undefined reference to `_XRectInRegion' toon.o:toon.c:(.text+0x94b): undefined reference to `_XRectInRegion' toon.o:toon.c:(.text+0x9ba): undefined reference to `_XRectInRegion' toon.o:toon.c:(.text+0xa16): undefined reference to `_XRectInRegion' toon.o:toon.c:(.text+0xa82): undefined reference to `_XRectInRegion' toon.o:toon.c:(.text+0xb88): more undefined references to `_XRectInRegion' follow toon.o:toon.c:(.text+0xbc4): undefined reference to `_XPending' toon.o:toon.c:(.text+0xbdc): undefined reference to `_XNextEvent' toon.o:toon.c:(.text+0x1021): undefined reference to `_XRectInRegion' toon.o:toon.c:(.text+0x1110): undefined reference to `_XRectInRegion' toon.o:toon.c:(.text+0x11c0): undefined reference to `_XRectInRegion' toon.o:toon.c:(.text+0x127f): undefined reference to `_XSetErrorHandler' toon.o:toon.c:(.text+0x128c): undefined reference to `_XDestroyRegion' toon.o:toon.c:(.text+0x1291): undefined reference to `_XCreateRegion' toon.o:toon.c:(.text+0x12d5): undefined reference to `_XQueryTree' toon.o:toon.c:(.text+0x13c1): undefined reference to `_XGetWindowAttributes' toon.o:toon.c:(.text+0x14ce): undefined reference to `_XUnionRectWithRegion' toon.o:toon.c:(.text+0x1512): undefined reference to `_XShapeGetRectangles' toon.o:toon.c:(.text+0x153e): undefined reference to `_XUnionRectWithRegion' toon.o:toon.c:(.text+0x15fc): undefined reference to `_XUnionRectWithRegion' toon.o:toon.c:(.text+0x1629): undefined reference to `_XFree' toon.o:toon.c:(.text+0x1640): undefined reference to `_XFree' toon.o:toon.c:(.text+0x164c): undefined reference to `_XSetErrorHandler' toon.o:toon.c:(.text+0x16d4): undefined reference to `_XDestroyRegion' toon.o:toon.c:(.text+0x16ea): undefined reference to `_XClearWindow' toon.o:toon.c:(.text+0x16f7): undefined reference to `_XCloseDisplay' collect2: ld returned 1 exit status make: *** [xsimpsons] Error 1 --- here is the Makefile --- # Makefile for XPENGUINS # Copyright (C) 1999, 2000 Robin Hogan CC = gcc RPM_OPT_FLAGS = CFLAGS = -Wall $(RPM_OPT_FLAGS) XLIBS = -lX11 -lXpm -lXext XLIBDIR = -L/usr/X11R6/lib -L/usr/local/lib XINCLUDEDIRS = -I/usr/X11R6/include -I/usr/local/include OBJS = xsimpsons.o toon.o PROGRAM = xsimpsons all: $(PROGRAM) $(PROGRAM): $(OBJS) $(CC) $(CFLAGS) $(XLIBDIR) $(XLIBS) $(OBJS) -o $(PROGRAM) %.o: %.c $(CC)
Re: XInternAtom XRectInRegion ... not found ... problem with the make file?
Yes that is the fix for it... and no it wasn't clear before. Now the problem is immediate and constant core-dumping, but at least it built fine. Thanks :-) Since this was a distrubuted software (and 5 years old) I thought the makefile would have been right. And I didn't know that OBJS before XLIBS would make a difference like that. -Robert From: Brian Dessent [EMAIL PROTECTED] Reply-To: cygwin-xfree@cygwin.com To: cygwin-xfree@cygwin.com Subject: Re: XInternAtom XRectInRegion ... not found ... problem with the make file? Date: Tue, 22 Nov 2005 01:22:05 -0800 Robert Body wrote: $(CC) $(CFLAGS) $(XLIBDIR) $(XLIBS) $(OBJS) -o $(PROGRAM) In case it wasn't clear in my first reply, this is wrong. You need OBJS before XLIBS, the order does matter. Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
compiling IceWM 1.2.23 - ld:cannot find -ljpeg
Hi, I am trying to compile IceWM 1.2.23 I got 1.0.9-2 to work on another computer and it's great (but the IceWM 1.0.9-2 is 4 years old at least) and this computer has issues with xterm (in IceWM and with Paste function in IceWM) so I want to get the latest IceWM. It's the coolest Windows Manager I have seen (but i haven't seen many, just twm and cde) after ./configure --disable-xinerama (which i heard is not available for cygwin) i run make, and it stops at: /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find -ljpeg I don't know what that is. I gotlibjpeg6band the otherlibjpeg too hoping it would help, but no (and I rebooted because it suggested it due to running applications have been replaced, please restart). I also got imlibbecause it asked for it Thank you -Robert -- here is the output of my make: -- /home/Owner/utils/wm/icewm-1.2.23 make make[1]: Entering directory `/home/Owner/utils/wm/icewm-1.2.23/src' CXXymsgbox.o CXXydialog.o CXXyurl.o CXXwmsession.o CXXwmwinlist.o CXXwmtaskbar.o CXXwmwinmenu.o CXXwmdialog.o CXXwmabout.o CXXwmswitch.o CXXwmstatus.o CXXwmoption.o CXXwmaction.o CXXwmcontainer.o CXXwmclient.o CXXwmmgr.o CXXwmapp.o CXXwmframe.o CXXwmbutton.o CXXwmminiicon.o CXXwmtitle.o CXXmovesize.o CXXthemes.o CXXdecorate.o CXXbrowse.o CXXwmprog.o CXXatasks.o CXXaworkspaces.o CXXamailbox.o CXXaclock.o CXXacpustatus.o CXXapppstatus.o CXXaaddressbar.o CXXobjbar.o CXXaapm.o CXXatray.o CXXysmapp.o CXXyxtray.o CXXymenu.o CXXylabel.o CXXyscrollview.o CXXymenuitem.o CXXyscrollbar.o CXXybutton.o CXXylistbox.o CXXyinput.o CXXwmconfig.o CXXyicon.o CXXref.o CXXyapp.o CXXyxapp.o CXXytimer.o CXXywindow.o ywindow.cc: In member function `int YDesktop::getScreenForRect(int, int, int, int)': ywindow.cc:1847: warning: unused variable 'screen' ywindow.cc:1848: warning: unused variable 'coverage' ywindow.cc: At global scope: ywindow.cc:1846: warning: unused parameter 'x' ywindow.cc:1846: warning: unused parameter 'y' ywindow.cc:1846: warning: unused parameter 'width' ywindow.cc:1846: warning: unused parameter 'height' ywindow.cc:1821: warning: unused parameter 'screen_no' CXXypaint.o CXXypopup.o CXXmisc.o CXXycursor.o CXXysocket.o CXXypaths.o CXXypixbuf.o CXXylocale.o ylocale.cc: In static member function `static YUChar* YLocale::unicodeString(const YLChar*, size_t, size_t)': ylocale.cc:155: warning: invalid conversion from `char**' to `const char**' ylocale.cc:155: warning: initializing argument 2 of `size_t libiconv(void*, const char**, size_t*, char**, size_t*)' CXXyarray.o CXXypipereader.o CXXyxembed.o CXXyconfig.o CXXyprefs.o CXXyfont.o yfont.cc:18: warning: unused parameter 'antialias' CXXyfontcore.o CXXyfontxft.o CXXyimage.o CXXytooltip.o LD icewm /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find -ljpeg collect2: ld returned 1 exit status make[1]: *** [icewm] Error 1 make[1]: Leaving directory `/home/Owner/utils/wm/icewm-1.2.23/src' make: *** [base] Error 2 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
XInternAtom XRectInRegion ... not found ... where to get these XLIB components
Hi, I am getting errors about xlib components missing. Running find gives me this: / find * | grep XInternAtom usr/X11R6/lib/X11/doc/html/XInternAtom.3.html usr/X11R6/lib/X11/doc/html/XInternAtoms.3.html usr/X11R6/man/man3/XInternAtom.3 usr/X11R6/man/man3/XInternAtoms.3 so it finds the docs, but not the source files. I tried looking through Cygwin docs, on internet... and on internet i found out it belongs to XLIB group, but the closest Cygwin has is xorg-x11-libs-data-6.8.99.901-1.tar which doesn't contain those files This still happens after I manually downloaded the following and looked in there too -- no luck --- -rwx-- 1 Owner None 5500486 Nov 22 00:45 xorg-x11-base-6.8.99.901-1-src.tar -rwx-- 1 Owner None 2836895 Nov 22 00:45 xorg-x11-bin-dlls-6.8.99.901-1-src.tar -rwx-- 1 Owner None 1661595 Nov 22 00:45 xorg-x11-devel-6.8.99.901-1.tar -rwx-- 1 Owner None 536374 Nov 22 00:45 xorg-x11-etc-6.8.99.901-1.tar.tar -rwx-- 1 Owner None 195890 Nov 22 00:45 xorg-x11-libs-data-6.8.99.901-1.tar -rwx-- 1 Owner None 2754734 Nov 22 00:45 xorg-x11-xwin-6.8.99.901-1-src.tar --- --- This is the compiling errors: --- /home/Owner/games/simp make gcc -Wall -L/usr/X11R6/lib -L/usr/local/lib -lX11 -lXpm -lXext xsimpsons.o toon.o -o xsimpsons toon.o:toon.c:(.text+0x47): undefined reference to `_XInternAtom' toon.o:toon.c:(.text+0x7a): undefined reference to `_XQueryTree' toon.o:toon.c:(.text+0x105): undefined reference to `_XGetWindowProperty' toon.o:toon.c:(.text+0x136): undefined reference to `_XFree' toon.o:toon.c:(.text+0x1a3): undefined reference to `_XOpenDisplay' toon.o:toon.c:(.text+0x31c): undefined reference to `_XCreateGC' toon.o:toon.c:(.text+0x326): undefined reference to `_XCreateRegion' toon.o:toon.c:(.text+0x349): undefined reference to `_XSelectInput' toon.o:toon.c:(.text+0x548): undefined reference to `_XpmCreatePixmapFromData' toon.o:toon.c:(.text+0x625): undefined reference to `_XSetClipOrigin' toon.o:toon.c:(.text+0x653): undefined reference to `_XSetClipMask' toon.o:toon.c:(.text+0x6c7): undefined reference to `_XCopyArea' toon.o:toon.c:(.text+0x6e5): undefined reference to `_XSetClipMask' toon.o:toon.c:(.text+0x786): undefined reference to `_XClearArea' toon.o:toon.c:(.text+0x7a7): undefined reference to `_XFlush' toon.o:toon.c:(.text+0x8ef): undefined reference to `_XRectInRegion' toon.o:toon.c:(.text+0x94b): undefined reference to `_XRectInRegion' toon.o:toon.c:(.text+0x9ba): undefined reference to `_XRectInRegion' toon.o:toon.c:(.text+0xa16): undefined reference to `_XRectInRegion' toon.o:toon.c:(.text+0xa82): undefined reference to `_XRectInRegion' toon.o:toon.c:(.text+0xb88): more undefined references to `_XRectInRegion' follow toon.o:toon.c:(.text+0xbc4): undefined reference to `_XPending' toon.o:toon.c:(.text+0xbdc): undefined reference to `_XNextEvent' toon.o:toon.c:(.text+0x1021): undefined reference to `_XRectInRegion' toon.o:toon.c:(.text+0x1110): undefined reference to `_XRectInRegion' toon.o:toon.c:(.text+0x11c0): undefined reference to `_XRectInRegion' toon.o:toon.c:(.text+0x127f): undefined reference to `_XSetErrorHandler' toon.o:toon.c:(.text+0x128c): undefined reference to `_XDestroyRegion' toon.o:toon.c:(.text+0x1291): undefined reference to `_XCreateRegion' toon.o:toon.c:(.text+0x12d5): undefined reference to `_XQueryTree' toon.o:toon.c:(.text+0x13c1): undefined reference to `_XGetWindowAttributes' toon.o:toon.c:(.text+0x14ce): undefined reference to `_XUnionRectWithRegion' toon.o:toon.c:(.text+0x1512): undefined reference to `_XShapeGetRectangles' toon.o:toon.c:(.text+0x153e): undefined reference to `_XUnionRectWithRegion' toon.o:toon.c:(.text+0x15fc): undefined reference to `_XUnionRectWithRegion' toon.o:toon.c:(.text+0x1629): undefined reference to `_XFree' toon.o:toon.c:(.text+0x1640): undefined reference to `_XFree' toon.o:toon.c:(.text+0x164c): undefined reference to `_XSetErrorHandler' toon.o:toon.c:(.text+0x16d4): undefined reference to `_XDestroyRegion' toon.o:toon.c:(.text+0x16ea): undefined reference to `_XClearWindow' toon.o:toon.c:(.text+0x16f7): undefined reference to `_XCloseDisplay' collect2: ld returned 1 exit status make: *** [xsimpsons] Error 1 thank you -Robert --- www.RobertBody.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/
Re: XInternAtom XRectInRegion ... not found ... where to get these XLIB components
Thanks Brian, that makes sense. I don't see anything wrong with the makefile specs, maybe someone in Xfree mailing list does, i put it there. And yes i should have posted to Xfree mailing list, my mistake -Robert From: Brian Dessent [EMAIL PROTECTED] Reply-To: cygwin@cygwin.com To: cygwin@cygwin.com Subject: Re: XInternAtom XRectInRegion ... not found ... where to get these XLIB components Date: Tue, 22 Nov 2005 00:47:41 -0800 Robert Body wrote: Hi, I am getting errors about xlib components missing. Running find gives me this: This is the wrong mailing list. X11 related topics go to cygwin-xfree (at) cygwin.com. /home/Owner/games/simp make gcc -Wall -L/usr/X11R6/lib -L/usr/local/lib -lX11 -lXpm -lXext xsimpsons.o toon.o -o xsimpsons toon.o:toon.c:(.text+0x47): undefined reference to `_XInternAtom' The import libraries for these X11 functions are in the x11-devel package which you presumably have installed, but since you didn't include cygcheck output as requested at http://cygwin.com/problems.html we can only speculate. However you would have gotten errors about not being able to find -lX11 if this were not the case, so you most likely have everything you need already. The problem is not that you're missing any libraries, it's that your link command line order is wrong. You cannot specify -lfoo before a dependent object which uses functions from libfoo. Brian -- 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/ -- 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/
mkpasswd, mkgroup - initial setup of group, home dir
Hi, I installed on a networked computer, but i don't want my cygwin to be part of that network as far as username/groups go (I don't want to add all the users to my group or passwd files) I was assigned robert.body as username and my group name is mkgroup-l-d I would like to change these to Owner and mygroup, and I would like my default home directory to be /home/Owner (which is really C:\cygwin\home\owner in windows). The system insists on making my home directory /cygdrive/u even if I modify /etc/passwd file I read about mkpasswd -d - well I don't want people on network added to my cygwin setup, I read about mkgroup -d - well I want to make my own group (I did a search through the mailing list archives, and lots of hits on mkpasswd, but nothing that I need during the many emails i went through) -Robert -- currently my /etc/groups is -- ... mkgroup-l-d:S-1-5-32-545:10545: -- currently my /etc/passwd is the following, but system just ignores my /home/Owner and just ALWAYS puts me into /cygdrive/u on startup -- ... tmersrvd:unused_by_nt/2000/xp:1018:513:tmersrvd,U-DPC6528\tmersrvd,S-1-5-21-2735870922-10702009508:/home/tmersrvd:/bin/bash robert.body:unused_by_nt/2000/xp:13550:10545:robert.body,U-DEN\robert.body,S-1-5-21-1659004503-4815-3550:/home/Owner:/bin/bash -- 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/
escape codes for ksh in /etc/profile ... was Re: mkpasswd, mkgroup - initial
** First, let me say... Cygwin is awesome, and the mailing lists are awesome. It looks like a lot of work has been done to make it match a real unix. :-) ** Brian, another great help, thank you, especially for thelink: --- http://cygwin.com/faq/faq.setup.html#faq.setup.home HOME is determined as follows in order of decreasing priority: 1. HOME from the Windows environment, translated to POSIX form. 2. The entry in /etc/passwd 3. HOMEDRIVE and HOMEPATH from the Windows environment 4. / - so, %HOME% variable set in Windows takes priority over /etc/passwd That has puzzled me for a few days because all the unix people say yup, change the user entry in /etc/passwd and that's your new home #--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#-- Actually, yes I can make my own group in cygwin :-) (just needs a little unix stuff) i called it local and set the group number of 10546 arbitrarily (a number not already used... and this is regular unix way of doing it) cat /etc/group ... local:S-1-5-32-545:10546:robert.body and then in /etc/passwd, the 4th field I set to my newly created local group cat /etc/group ... robert.body:unused_by_nt/2000/xp:13550:10546: robert.body,U-DEN\robert.body,S-1-5-21-1659004503-484061587-839522115-3550: /cygdrive/c/home/Owner:/bin/bash and then ... ta-d ... my own group of local /cygdrive/c/cygwin/home/Owner touch 1; ls -alp 1 -rw-r--r-- 1 robert.body local 0 Nov 22 12:17 1 /cygdrive/c/cygwin/home/Owner #--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#-- I don't suppose there is a way of NOT letting %HOME% take priority over /etc/passwd for my home directory? Brian,since you know about so many things, how come the following ksh doesn't work in 1) Linux xyz 2.4.7-10 #1 Thu Sep 6 17:27:27 EDT 2001 i686 unknown 2) HP-UX xyz B.11.00 U 9000/785 2004606272 unlimited-user license the PS1 line below puts path into the title of the xterm, and puts $PWD into prompt and this works fine in bash (different section of /etc/profile), but not in ksh -taken from cygwin's /etc/profile ... ksh* | -ksh* | */ksh* | \ ksh*.exe | -ksh*.exe | */ksh*.exe ) # Set a HOSTNAME variable typeset -l HOSTNAME # Set a default prompt of: [EMAIL PROTECTED] and current_directory PS1='^[]0;${PWD}^G [EMAIL PROTECTED] ^[[33m${PWD}^[[0m $ ' - Basically the escape codes are being ignored in ksh, but it came from cygwin's /etc/profile so it must be perfect right? (i set USER=me and HOSTNAME=myserver (I execute t2, copied cygwin file with the above): 1) cygwin-running pdksh from today's setup.exe--- $echo $0 ksh $. /etc/profile ^[]0;/cygdrive/u^G [EMAIL PROTECTED] ^[[33m/cygdrive/u^[[0m $ 2) linux--- $. t2 ^[]0;/tmp^G [EMAIL PROTECTED] ^[[33m/tmp^[[0m $ 3) hp--- $. t2 ^[]0;/OnSight/opscntl^G [EMAIL PROTECTED] ^[[33m/OnSight/opscntl^[[0m $ - -Robert -- 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: escape codes in ksh \033]0;\$PWD\007\$PWD
I have not been able to figure out how to send escape codes to ksh I saw a syntax for ksh on http://www.steveshilling.pwp.blueyonder.co.uk/scripts/xtermtitle.txt - PS1='^[]0;[EMAIL PROTECTED]: ${PWD}^Gksh$ ' - where ^[ is used instead of \033 and ^G instead of \007 but I tried 3 systems with ksh, no go, it doesn't understand escape characters, not with \032, not with \[\e and not with ^[ to signfy beginning of escape code... ksh just repeats them exactly like regular characters in bash it's easy PS1='\[\e]0;$PWD\a\]$PWD '# (in title) HOST-$PWD ... $PATH I came up with the following... needs perl, needs xterm but works in ksh, and bash too PS1=$(perl -e 'printf \033]0;\$PWD\007\$PWD ') but i just don't know how (and someone must know how) people get the escape codes into ksh that it works from command prompt or script with a one line solution (and without secondary help from something like c or perl code) Oh, the purpose of this escape sequence is to synchronize the title with PS1 to be the current directory on an xterm (but the question is about escape codes, not xterm ;-) ) -Robert -- 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/
compiling ClanLibs - errors
Hi, I get the following errors while trying to complie ClanLibs I heard that someone was able to accomplish that... I am using Windows XP thank you -Robert - www.RobertBody.com - first with ./configure ... checking libgen.h usability... no checking libgen.h presence... yes configure: WARNING: libgen.h: present but cannot be compiled configure: WARNING: libgen.h: check for missing prerequisite headers? configure: WARNING: libgen.h: see the Autoconf documentation configure: WARNING: libgen.h: section Present But Cannot Be Compiled configure: WARNING: libgen.h: proceeding with the preprocessor's result configure: WARNING: libgen.h: in the future, the compiler will take precedence configure: WARNING: ## -- ## configure: WARNING: ## Report this to the ClanLib lists. ## configure: WARNING: ## -- ## checking for libgen.h... yes checking for sys/types.h... (cached) yes checking sys/ipc.h usability... no checking sys/ipc.h presence... yes configure: WARNING: sys/ipc.h: present but cannot be compiled configure: WARNING: sys/ipc.h: check for missing prerequisite headers? configure: WARNING: sys/ipc.h: see the Autoconf documentation configure: WARNING: sys/ipc.h: section Present But Cannot Be Compiled configure: WARNING: sys/ipc.h: proceeding with the preprocessor's result configure: WARNING: sys/ipc.h: in the future, the compiler will take precedence configure: WARNING: ## -- ## configure: WARNING: ## Report this to the ClanLib lists. ## configure: WARNING: ## -- ## checking for sys/ipc.h... yes checking sys/shm.h usability... no checking sys/shm.h presence... yes configure: WARNING: sys/shm.h: present but cannot be compiled configure: WARNING: sys/shm.h: check for missing prerequisite headers? configure: WARNING: sys/shm.h: see the Autoconf documentation configure: WARNING: sys/shm.h: section Present But Cannot Be Compiled configure: WARNING: sys/shm.h: proceeding with the preprocessor's result configure: WARNING: sys/shm.h: in the future, the compiler will take precedence configure: WARNING: ## -- ## configure: WARNING: ## Report this to the ClanLib lists. ## configure: WARNING: ## -- ## checking for sys/shm.h... yes checking fstab.h usability... no checking fstab.h presence... no checking for fstab.h... no checking for main in -lz... yes ... configure: WARNING: *** clanSDL depends on clanDisplay. Disabling clanSDL configure: WARNING: *** clanGUI depends on clanDisplay. Disabling clanGUI configure: WARNING: *** clanGL depends on clanDisplay. Disabling clanGL Checking for clanSound stuff checking for dsound... no configure: WARNING: *** Cannot find directsound libs. Disabling clanSound configure: WARNING: *** clanMikMod depends on clanSound. Disabling clanMikMod configure: WARNING: *** clanVorbis depends on clanSound. Disabling clanVorbis Checking for clanNetwork stuff == checking for ws2_32... yes checking for getaddrinfo... no checking for GetAddr (ipv6) support... disabled Checking for Documentation stuff ... and then with make /home/Owner/software/utils/clan make Making all in Sources make[1]: Entering directory `/home/Owner/software/utils/clan/Sources' Making all in API make[2]: Entering directory `/home/Owner/software/utils/clan/Sources/API' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/Owner/software/utils/clan/Sources/API' Making all in Application make[2]: Entering directory `/home/Owner/software/utils/clan/Sources/Application' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/Owner/software/utils/clan/Sources/Application' Making all in Core make[2]: Entering directory `/home/Owner/software/utils/clan/Sources/Core' depbase=`echo core_iostream.lo | sed 's|[^/]*$|.deps/|;s|\.lo$||'`; \ if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\ClanLib\ -DPACKAGE_TARNAME=\clanlib\ -DPACKAGE_VERSION=\0.8.0\ -DPACKAGE_STRING=\ClanLib\ 0.8.0\ -DPACKAGE_BUGREPORT=\\ -DPACKAGE=\clanlib\ -DVERSION=\0.8.0\ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DUSE_I386_ASSEMBLER=1 -DHAVE_LIBZ=1 -I. -I. -g -O2 -mno-cygwin -DWIN32 -I../../Sources -MT core_iostream.lo -MD -MP -MF $depbase.Tpo -c -o core_iostream.lo core_iostream.cpp; \ then mv -f $depbase.Tpo $depbase.Plo; else rm -f $depbase.Tpo; exit 1; fi g++ -DPACKAGE_NAME=\ClanLib\ -DPACKAGE_TARNAME=\clanlib\ -DPACKAGE_VERSION=\0.8.0\ -DPACKAGE_STRING=\ClanLib 0.8.0\