Apache OpenOffice (AOO) Bugzilla – Issue 13058
no error message when /bin/domainname not there
Last modified: 2003-05-22 13:18:08 UTC
After installing OOo 1.1Beta, starting it resulted only in big silence, after a few seconds all activity ceased and nothing happened any more. The only thing to get the prompt back was to kill the top OOo process from another window....! After tedius debugging, I have found the cause of this. My debian system does not have /bin/domainname, here its is called /bin/dnsdomainname ..... After linking /bin/domainname to /bin/dnsdomainname startup is OK. I have looked at the code surrounding this and I think an error message explaining the fact /bin/domainname is not found would be in order. Currently it just exits without any indication why! sal/osl/unx/socket.c:868 Simply replacing 'execvp ("/bin/domainname", argv)' with 'execv ("/bin/sh", argv)' and changing argv to char *argv[] = { "/bin/sh", "-c", "/bin/domainname", NULL }; would get us an appropriate error message. Or replace the complete code forking and execing '/bin/domainname' with a call to popen("/bin/domainnane", "r") and pclose(fd) would achieve the same.
Hi, I'm impressed that you managed to get to the bottom of this error - Philipp Lohmann & I went through the same ordeal at OOoCon and it wasn't easy! But this problem already is logged in issuezilla, together with a workaround. I also announced the problem to the debian-openoffice and debian-user mailing lists when the beta was released. Sorry for your wasted time, Chris *** This issue has been marked as a duplicate of 11777 ***
Closing resolved duplicates.
Closing resolved duplicates. Please re-open, if you think this decision is wrong.