Problems During BOA Transplantation

Source: Internet
Author: User

1>. Error 1: gethostbyname: no such file or directory

Solution: Modify boa. conf to remove the annotator (#) before servername www.your.org. Here (#)

 

2>. error 1: util. c: 100: 1: Error: pasting "T" and "->" does not give a valid preprocessing token make: *** [util. o]


Solution: Modify src/compat. h.

Find

# Definetimezone_offset (FOO) Foo #-> tm_gmtoff

Modify

# Definetimezone_offset (FOO)-> tm_gmtoff

 

3>. Error 2: boa. C: 211-getpwuid: no such file or directory

Solution: Modify src/boa. c

Comment out the following program:

If (passwdbuf = NULL ){

Die ("getpwuid ");

}

If (initgroups (passwdbuf-> pw_name, passwdbuf-> pw_gid) =-1 ){

Die ("initgroups ");

}

To:

# If 0

If (passwdbuf = NULL ){

Die ("getpwuid ");

}

If (initgroups (passwdbuf-> pw_name, passwdbuf-> pw_gid) =-1 ){

Die ("initgroups ");

}

# Endif

 

4>. Error 3: boa. C: 228-Icky Linux kernel bug! : No such file or directory

Solution: Modify src/boa. c

Comment out the following statement:

If (setuid (0 )! =-1 ){

Die ("icky Linux kernel bug !");

}

To:

# If 0

If (setuid (0 )! =-1 ){

Die ("icky Linux kernel bug !");

}

# Endif

 

5>. Error 4: log. C: 73 unable to dup2 the Error Log: Bad file descriptor

Solution:

Method 1> determine whether the log directory has the read/write permissions for all users.

Method 2> modify src/log. C (method 1 is recommended)

Comment out

If (dup2 (error_log, stderr_fileno) =-1 ){

Die ("unableto dup2 the error log ");

}

To:

# If 0

If (dup2 (error_log, stderr_fileno) =-1 ){

Die ("unable to dup2 the error log ");

}

# Endif

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.