How to run 32 bit FreeBSD compiled apps on 64 bit
I have a simple program say Hello world , i have compiled it on 32 bit FreeBSD and it dynamically links to libraries(I cannot make it statically linked due to some requirements), now when i run it on AMD64 i get ELF interpreter /libexec/ld-elf32.so.1 not found. How to fix it, i searched and found out i shud install lib32 on my 64 bit machine. How to install lib32's and from where ?? Thanks, Navneet ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Recursive mutex safe on FreeBSD 6.2
can we use recursive mutex on 6.2 freebsd ?? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
32 bit and 64 bit freebsd binary compatiblty
Binary compiled on 32 bit not running on 64 bit machine. Actually i am using *sysctl* call and the *kinfo_proc* structure from user.hin include/sys , size of structure on 32bit is 768 and on 64 bit is around 1180 and thats why the call is failing and application coredumping. Can anyone tell how do we handle this situation??? Is there any way or i have to compile my code on 64 bit machine?? Keep in mind there can be many such structure.. Thanks, Navneet On 2/19/08, Dominic Fandrey [EMAIL PROTECTED] wrote: navneet Upadhyay wrote: On 2/18/08, Dominic Fandrey [EMAIL PROTECTED] wrote: navneet Upadhyay wrote: On 2/18/08, Dominic Fandrey [EMAIL PROTECTED] wrote: navneet Upadhyay wrote: Hi , For our product we generally compile the binaries on 32 bit systems and use them for both 32 and 64 bit systems. like we have same binaries for 32 bit and 64 bit RHEL. We are porting the product to FreeBSD and when we tried the same, i.erunning binaries compiled on 32 bit FreeBSD 6.2 on 64 bit FreeBSD system they produce *core dump.* Any known reasons, do we have to compile binaries on 64 bit machine. This should not happen. I would blindly guess at a linking problem. Are you using any shared libraries that do not belong to the base system? Yes i am using few libs not built on FreeBSD but they work fine on 32 bit freeBSD , so in principle they shud have the same behavior on 64 one. I suppose you are aware that they have to be 32-Bit libraries as well, for your 32-Bit application to work? I didnt get what do you mean. Do you mean : I should install lib32 on freeBSD and then rebuild my applications in order to make it work on 32 and 64 bit systems . rite now I have built my app on 32 bit system (which is not having lib32 installed), it works on 32 bit freebsd but fails on 64 bit system. The app needs 32-Bit libraries tu run on 64 Bit. I suggest you link your program statically against libraries that are not part of the base system. That way everything should run just fine. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 32 bit and 64 bit freebsd binary compatiblty
a machine will be required (always) , i think i figured it out , ineed to compile them using *amd64 *instead of i386 . On 2/19/08, Wojciech Puchar [EMAIL PROTECTED] wrote: Can anyone tell how do we handle this situation??? Is there any way or i have to compile my code on 64 bit machine?? what's a problem to compile on 64-bit machine? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
32 bit and 64 bit freebsd binary compatiblty
Hi , For our product we generally compile the binaries on 32 bit systems and use them for both 32 and 64 bit systems. like we have same binaries for 32 bit and 64 bit RHEL. We are porting the product to FreeBSD and when we tried the same, i.erunning binaries compiled on 32 bit FreeBSD 6.2 on 64 bit FreeBSD system they produce *core dump.* Any known reasons, do we have to compile binaries on 64 bit machine. Thanks, Navneet ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
make not working gmake works
Hi, I have a Makefile . It works well with Linux versions when i use make command.The make command fails on FreeBSD but gmake works fine. Any clues on this behavior? Thanks, Navneet ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 32 bit and 64 bit freebsd binary compatiblty
I checked in usr/local/ and didnt find the lib32 folder, so i guess they are nt installed . Why do i need them ? can u put some light on it ? On 2/18/08, Norman Maurer [EMAIL PROTECTED] wrote: Am Montag, den 18.02.2008, 20:42 +0530 schrieb navneet Upadhyay: it and 64 bit RHEL. We are porting the product to FreeBSD and when we tried the same, i.erunning binaries compiled on 32 bit FreeBSD 6.2 on 64 bit FreeBSD system they produce *core dump.* Any known reasons, do we have to compile binaries on 64 bit machine. Thanks, Do you have the lib32's installed ? bye Norman ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 32 bit and 64 bit freebsd binary compatiblty
Yes i am using few libs not built on FreeBSD but they work fine on 32 bit freeBSD , so in principle they shud have the same behavior on 64 one. On 2/18/08, Dominic Fandrey [EMAIL PROTECTED] wrote: navneet Upadhyay wrote: Hi , For our product we generally compile the binaries on 32 bit systems and use them for both 32 and 64 bit systems. like we have same binaries for 32 bit and 64 bit RHEL. We are porting the product to FreeBSD and when we tried the same, i.erunning binaries compiled on 32 bit FreeBSD 6.2 on 64 bit FreeBSD system they produce *core dump.* Any known reasons, do we have to compile binaries on 64 bit machine. This should not happen. I would blindly guess at a linking problem. Are you using any shared libraries that do not belong to the base system? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 32 bit and 64 bit freebsd binary compatiblty
I didnt get what do you mean. Do you mean : I should install lib32 on freeBSD and then rebuild my applications in order to make it work on 32 and 64 bit systems . rite now I have built my app on 32 bit system (which is not having lib32 installed), it works on 32 bit freebsd but fails on 64 bit system. On 2/18/08, Dominic Fandrey [EMAIL PROTECTED] wrote: navneet Upadhyay wrote: On 2/18/08, Dominic Fandrey [EMAIL PROTECTED] wrote: navneet Upadhyay wrote: Hi , For our product we generally compile the binaries on 32 bit systems and use them for both 32 and 64 bit systems. like we have same binaries for 32 bit and 64 bit RHEL. We are porting the product to FreeBSD and when we tried the same, i.erunning binaries compiled on 32 bit FreeBSD 6.2 on 64 bit FreeBSD system they produce *core dump.* Any known reasons, do we have to compile binaries on 64 bit machine. This should not happen. I would blindly guess at a linking problem. Are you using any shared libraries that do not belong to the base system? Yes i am using few libs not built on FreeBSD but they work fine on 32 bit freeBSD , so in principle they shud have the same behavior on 64 one. I suppose you are aware that they have to be 32-Bit libraries as well, for your 32-Bit application to work? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: script to be executed on system startup.
Hi, After putting my script to /etc/rc.d , it gets executed at startup and the parameter passed to the script is *faststart .* *I want the same script to be executed when system shuts down , how can i do that.* ** *i want to do something like this in script :- * ** *if [$1 = faststart]; then* *start my executables* *elif * *stop my executables* *fi* ** *question is :-* ** *How to excute a script when system comes up and shuts down with differnt parameter.* ** *Thanks,* *navneet* On 2/6/08, Dominic Fandrey [EMAIL PROTECTED] wrote: navneet Upadhyay wrote: Hi, I have a script file, i want that script to be executed on system startup. I am doing this on Linux in following two steps : - 1. Copying the script to /etc/rc.d directory. 2. /sbin/chkconfig --add scriptname I want to achieve the same on FreeBSD chckconfig file is not present, documentation says i have to add it to rc.conf file. How can i add it to rc.conf file, is there any command? There have been a lot of suggestions here and the thread contains all the valid information, but some people have given you deprecated advice. So I'll try to clarify what can be done and how it's meant to be done. 1. Your own scripts belong int /usr/local/etc/rc.d, if you update your system it will suggest to delete all custom scripts from /etc/rc.d, because it's only for scripts from the base system. Remember that path will not be set when your script is called at startup. The usual approach is to only use fully qualified filenames. 2. All executable scripts in /usr/local/etc/rc.d are executed at startup and given the parameter start. Upon shutdown the parameter stop is given. The name of the script does not matter. 3. To this point you have all the functionality you asked for and there is no need for you to look further. However you are at liberty to instead build a compliant rc.d script, which brings you the advantages of controlling the execute order by defining dependencies and being able to activate/deactivate scripts and additional parameters in the file /etc/rc.conf. If you wish to exploit these advanced features it's a good way to look at existing scripts in /usr/local/etc/rc.d and read the rc(8) manual page. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
script to be executed on system startup.
Hi, I have a script file, i want that script to be executed on system startup. I am doing this on Linux in following two steps : - 1. Copying the script to /etc/rc.d directory. 2. /sbin/chkconfig --add scriptname I want to achieve the same on FreeBSD chckconfig file is not present, documentation says i have to add it to rc.conf file. How can i add it to rc.conf file, is there any command? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: script to be executed on system startup.
i dont want to go with the rename option, as if tomorrow i want to add more scripts to run at startup i will be in a mess. I will tell in detail so that it would be easy for you to understand my problem :- Intention is that the script file should be called at both startup and shutdown. In Linux after doing :- 1. Copying the script to /etc/rc.d directory. 2. /sbin/chkconfig --add scriptname While startup scriptfile is called with parameter *start* and while shutdown it is called with parameter *stop.* So i check the parameter value in the script and if it is start , i run my executables and if it is stop i gracefully exit from my executables. I want to achie same thing in FreeBSD. Thanks, Navneet On 2/6/08, Derek Ragona [EMAIL PROTECTED] wrote: At 08:09 AM 2/6/2008, navneet Upadhyay wrote: Hi, I have a script file, i want that script to be executed on system startup. I am doing this on Linux in following two steps : - 1. Copying the script to /etc/rc.d directory. 2. /sbin/chkconfig --add scriptname I want to achieve the same on FreeBSD chckconfig file is not present, documentation says i have to add it to rc.conf file. How can i add it to rc.conf file, is there any command? You don't need any command. Depending on the version of FreeBSD, put your script in /usr/local/etc/rc.d and if you are using earlier than 6.XFreeBSD name the script chckconfig.sh You can name it in the same in 6.X and 7.X and it will work. Be sure the script is chmod'd (usually 755) to execute. Since your script runs without a known environment be sure to either use full pathnames for executables or set the path in your script. -Derek -- This message has been scanned for viruses and dangerous content by *MailScanner* http://www.mailscanner.info/, and is believed to be clean. MailScanner thanks transtec Computers http://www.transtec.co.uk/ for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Upgrading the Installed package
Hi, I have two binary packages of an application of version 1.1 and 1.2. *The 1.1 is already installed, how can i upgrade it to 1.2* ? Do i have to uninstall 1.1 and then install 1.2 ? I would prefer a way by which i can upgrade an wxisting package without uninstalling. Thanks, Navneet ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Endianness of freeBSD
1. Is FreeBSD little Endian like windows? 2. Linux is Big endian? wrote a code int i = 1;if((i 1) == 0) little else big got little on all platforms bsd,linux,windows. *Does endianness depends on OS or the hardware?* ** ** *Thanks,* *navneet* ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Latest Stable FreeBSD version and its Dell 2950 Compatiblity
Hi, I need to know which is the latest stable FreeBSD release(6.2 ?) and does it goes well with Dell 2950 ? Thanks Navneet ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Trying to support my product on FreeBSD
Hi , My product is successfully running on Linux( all most all versions) and HP- UX and Windows . *It is 100 % C++ code*. I am planning to support it on FreeBSD, i have two queries : 1. *How to build my code into binaries* on FreeBSD , i have my unix make files. Just to give an idea i have around 200 cpp files and they complile to 5 binaries . I am using multithreading(posix on linux) and sockets heavily. I dont want to run my application in linux mode, i have clear cut instructions to have BSD specific binaries.I have to see what is the difference between Linux and Free BSD in terms of file management, their structure, threading model etc. 2.* How to package the binaries*(RPM sort of thing). Idea is to provide a package to user who can install them binaries using this package by issuing single command. Please let me know if there is anyother forum where i can get answers to my queries, as i will be needing lot of help in near future. *Help will be appreciated.* Thanks, Navneet ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]