Issue 13058 - no error message when /bin/domainname not there
Summary: no error message when /bin/domainname not there
Status: CLOSED DUPLICATE of issue 11777
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: OOo 1.1 Beta
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: Martin Hollmichel
QA Contact: issues@porting
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-05 09:44 UTC by mmelchior
Modified: 2003-05-22 13:18 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description mmelchior 2003-04-05 09:44:12 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.
Comment 1 chris 2003-04-08 10:31:46 UTC
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 ***
Comment 2 michael.bemmer 2003-05-22 13:17:13 UTC
Closing resolved duplicates. 
Comment 3 michael.bemmer 2003-05-22 13:18:08 UTC
Closing resolved duplicates. Please re-open, if you think this decision is wrong.