Code: Select all
# /usr/Motif-2.1/lib/mksymlinks
That one actually helps, and gXipmsg compiles. thanks.
Code: Select all
# /usr/Motif-2.1/lib/mksymlinks
Yes! this is it! thanks kubatyszko!!kubatyszko wrote: Per Motif 2.1 porting guide:
Code:
If you need to change the default environment to 2.1, enter (as root) the following command:
# /usr/Motif-2.1/lib/mksymlinks
To return the default environment to 1.2, enter:
# /usr/Motif-1.2/lib/mksymlinks
Worked for me like a charm.
ok! will add this to the next release. so which one is more preferable, should the makefile check what version used then echo a message to run the script? or should i run the script automatic thru makefile?kubatyszko wrote: Geo, on a sidenote, you can create a Makefile.irix with the contents you suggested, and ask the user to run
Code:
make -f Makefile.irix
- this way you keep the project closer to original
hmm thanks for this report, i will find a way to replicate this here.kubatyszko wrote: Btw, it doesn't work on my Freebsd 8.1-release, I log into by bsd box from OSX over SSH (with X-forwarding) - it does compile flawlessly, launches (on my remote X session in the OSX) with the docked icon, but when I click on the icon I get :
thanks too for the confirmation canavan!canavan wrote: Code:
# /usr/Motif-2.1/lib/mksymlinks
That one actually helps, and gXipmsg compiles. thanks.
hi duck! hmm i think so coz im testing this here in our office. but if so, how come if i run this same application under cygwin, solaris, ubuntu, and winxp on the same PC, they all are fine, so maybe there something about configuration needed on freebsd? yes i read about extracting broadcast address and i tried that option, but this will limit me compared of using 255.255.255.255duck wrote: Is there a router inbetween? 255.255.255.255 is link-local and will not be passed through routers. You'll need to extract the network broadcast address if you want to broadcast to an amorphous network.
geo wrote:hi duck! hmm i think so coz im testing this here in our office. but if so, how come if i run this same application under cygwin, solaris, ubuntu, and winxp on the same PC, they all are fine, so maybe there something about configuration needed on freebsd? yes i read about extracting broadcast address and i tried that option, but this will limit me compared of using 255.255.255.255duck wrote: Is there a router inbetween? 255.255.255.255 is link-local and will not be passed through routers. You'll need to extract the network broadcast address if you want to broadcast to an amorphous network.
wow! this one i didn't hear hehe but hmmm i think im sure i use root account as always on all my test machines, but ok will verify this tomorrow coz i don't have FreeBSD here in my room, thanks for this info!duck wrote: Some OSes only allow root to send broadcast messages, perhaps that's it?
wow! i think this is perfect match on my case, thanks for this great find! but hmm as mentioned inside, he resolve it by using the networks broadcast address instead of 255.255.255.255, in which i already tried and will affect the area of my broadcasting. unlike using 255.255.255.255, this can still go to other subnets. i wonder how windows handled this...duck wrote: Googled around for a bit and found this tidbit... still extant perhaps? http://lists.freebsd.org/pipermail/free ... 08626.html
geo wrote:wow! i think this is perfect match on my case, thanks for this great find! but hmm as mentioned inside, he resolve it by using the networks broadcast address instead of 255.255.255.255, in which i already tried and will affect the area of my broadcasting. unlike using 255.255.255.255, this can still go to other subnets. i wonder how windows handled this...duck wrote: Googled around for a bit and found this tidbit... still extant perhaps? http://lists.freebsd.org/pipermail/free ... 08626.html
oh! wait! i read you link again and now i realize i missed something on his resolution, its the MAC address! so i guess i need to hard code so that when i broadcast to 255.255.255.255, i will send it to MAC address ff:ff:ff:ff:ff:ff, right?
geeez if this works, i owe you much duck! btw, the rotating cube logo still on queue for you
oh! ok thanks for confirming, then not all BSD have this flaw then hehe time to download NetBSD and OpenBSD and give them a try tomorrow to see which is which for my BSD makefileduck wrote: I just had a friend ping 255.255.255.255 on his FreeBSD 9.0-RELEASE, it seems to have the same flaw. My NetBSD system does not. (obviously, netbsd rocks
hmm im not sure what you mean here but what i thought at first is i just need to fill some items on the struct sockaddr_in that will contain the MAC address? but when checking the structure it doesn't have, my wrong assumption aboutduck wrote: I guess sending to the right MAC will work, but you'll be assembling raw packets by then...
so how does the encapsulation done? btw, no problem with assembling raw packets here, i guess already done this insideencapsulates the packet using the MAC address
hmm so this indeed a flaw.. why did they ignore this? tsk3.. anyway thanks for this infos duck really help, so i guess will try the encapsulation of MAC just for FreeBSD then, will see tomorrowduck wrote: More on this, an official, ignored, bug report: http://lists.freebsd.org/pipermail/free ... 19201.html
geo wrote:oh! ok thanks for confirming, then not all BSD have this flaw then hehe time to download NetBSD and OpenBSD and give them a try tomorrow to see which is which for my BSD makefileduck wrote: I just had a friend ping 255.255.255.255 on his FreeBSD 9.0-RELEASE, it seems to have the same flaw. My NetBSD system does not. (obviously, netbsd rocks
hmm im not sure what you mean here but what i thought at first is i just need to fill some items on the struct sockaddr_in that will contain the MAC address? but when checking the structure it doesn't have, my wrong assumption aboutduck wrote: I guess sending to the right MAC will work, but you'll be assembling raw packets by then...so how does the encapsulation done? btw, no problem with assembling raw packets here, i guess already done this insideencapsulates the packet using the MAC address
hmm so this indeed a flaw.. why did they ignore this? tsk3.. anyway thanks for this infos duck really help, so i guess will try the encapsulation of MAC just for FreeBSD then, will see tomorrowduck wrote: More on this, an official, ignored, bug report: http://lists.freebsd.org/pipermail/free ... 19201.html
aha! this is more detailed now hmm did a quick read and it seems this can be considered a quick fix? will try to absorb this again tomorrow, a bit late here already thanks for this digging duck! these info somehow teach me somethingduck wrote: Seems like I was a little hasty, there was some discussion about it (actual PR here: http://www.freebsd.org/cgi/query-pr.cgi?pr=99558&cat= ), however I'm not really sure how they can call it fixed if it isn't
ah i see, thanks for this clarification. ok2 will try this tomorrow on my FreeBSD and see the outcome, will feedback soon hmm i wonder if this IP_ONESCAST can be aslo used to other OS? so that no need to do a uname inside my code hehe but anyway, not so big deal. ok duck, thanks again for the help! will feedback tomorrow ciao!!duck wrote: As for sockaddr_in, no you can't just set the target MAC there, you will have to assemble IP packets and use a raw socket to work around it that way. It might however be possible with some freebsd specific option, that IP_ONESCAST Thing they talk about to make undirected broadcasts work properly.
Code: Select all
If the IP_ONESBCAST option is enabled on a SOCK_DGRAM or a SOCK_RAW
socket, the destination address of outgoing broadcast datagrams on that
socket will be forced to the undirected broadcast address,
INADDR_BROADCAST, before transmission. This is in contrast to the
default behavior of the system, which is to transmit undirected broad-
casts via the first network interface with the IFF_BROADCAST flag set.
This option allows applications to choose which interface is used to
transmit an undirected broadcast datagram. For example, the following
code would force an undirected broadcast to be transmitted via the inter-
face configured with the broadcast address 192.168.2.255:
char msg[512];
struct sockaddr_in sin;
u_char onesbcast = 1; /* 0 = disable (default), 1 = enable */
setsockopt(s, IPPROTO_IP, IP_ONESBCAST, &onesbcast, sizeof(onesbcast));
sin.sin_addr.s_addr = inet_addr("192.168.2.255");
sin.sin_port = htons(1234);
sendto(s, msg, sizeof(msg), 0, &sin, sizeof(sin));
It is the application's responsibility to set the IP_TTL option to an
appropriate value in order to prevent broadcast storms. The application
must have sufficient credentials to set the SO_BROADCAST socket level
option, otherwise the IP_ONESBCAST option has no effect.
guess what? IT WORK!!! you're the man duck!! i even think this approach on FreeBSD did better than the others? coz when i try it, it even got a response to more deeper subnets that the other OS can't, but will investigate more maybe i can also use the IP_ONESBCAST option for other OS, or its just for FreeBSD, lets see..duck wrote: It lives here
duck wrote: dirname(realpath(argv[0])) should be a handy enough trick to get the path, at least on unix.
geo wrote: hi everyone! just can't wait to announce this one hehe so before i sleep, behold: BETA 1.0 is here!
this includes:
* more stable
* enhanced UI
* most anticipated: VERY FAST download of unlimited files from any Windows that runs IPMsg
So who needs USB, SFU/NFS, SAMBA, FTP to transfer your files like pictures, CAD drawings, MP3s, movies from modern machines to our beloved UNIX if we have this very light tool
As of the moment, this version only can accept files. Coming soon are:
* download folders
* sending files
* sending folders