Been trying to get UOAMHub for Linux to work. Have all necessary software in my linux box, but I am getting these errors ------

Code:
uoamhub.c:1343:9: error: overflow in implicit constant conversion [-Werror=overflow]                                                         
        client->should_destroy = 1;                                                                                                         
        ^                                                                                                                                   
uoamhub.c:1353:13: error: overflow in implicit constant conversion [-Werror=overflow]                                                       
            client->should_destroy = 1;                                                                                                     
            ^                                                                                                                               
uoamhub.c:1361:13: error: overflow in implicit constant conversion [-Werror=overflow]                                                       
            client->should_destroy = 1;                                                                                                     
            ^                                                                                                                               
uoamhub.c:1368:9: error: overflow in implicit constant conversion [-Werror=overflow]                                                         
        client->should_destroy = 1;                                                                                                         
        ^                                                                                                                                   
uoamhub.c:1374:5: error: overflow in implicit constant conversion [-Werror=overflow]                                                         
    client->authorized = 1;                                                                                                                 
    ^                                                                                                                                       
uoamhub.c: In function ‘handle_packet’:                                                                                                     
uoamhub.c:1433:17: error: overflow in implicit constant conversion [-Werror=overflow]                                                       
                client->should_destroy = 1;                                                                                                 
                ^                                                                                                                           
uoamhub.c:1448:21: error: overflow in implicit constant conversion [-Werror=overflow]                                                       
                    client->should_destroy = 1;                                                                                             
                    ^                                                                                                                       
uoamhub.c:1457:21: error: overflow in implicit constant conversion [-Werror=overflow]                                                       
                    client->should_destroy = 1;                                                                                             
                    ^                                                                                                                       
uoamhub.c:1465:9: error: overflow in implicit constant conversion [-Werror=overflow]                                                         
        client->handshake = 1;                                                                                                             
        ^                                                                                                                                   
uoamhub.c:1480:9: error: overflow in implicit constant conversion [-Werror=overflow]                                                         
        client->should_destroy = 1;                                                                                                         
        ^                                                                                                                                   
uoamhub.c:1498:9: error: overflow in implicit constant conversion [-Werror=overflow]                                                         
        client->should_destroy = 1;                                                                                                         
        ^                                                                                                                                   
uoamhub.c:1504:9: error: overflow in implicit constant conversion [-Werror=overflow]                                                         
        client->should_destroy = 1;                                                                                                         
        ^                                                                                                                                   
uoamhub.c:1525:9: error: overflow in implicit constant conversion [-Werror=overflow]                                                         
        client->should_destroy = 1;                                                                                                         
        ^                                                                                                                                   
uoamhub.c: In function ‘client_data_available’:                                                                                             
uoamhub.c:1645:13: error: overflow in implicit constant conversion [-Werror=overflow]                                                       
            client->should_destroy = 1;                                                                                                     
            ^                                                                                                                               
uoamhub.c:1654:13: error: overflow in implicit constant conversion [-Werror=overflow]                                                       
            client->should_destroy = 1;                                                                                                     
            ^                                                                                                                               
uoamhub.c:1664:13: error: overflow in implicit constant conversion [-Werror=overflow]                                                       
            client->should_destroy = 1;
 
I know this is extremely old, but I figured I'd answer this for anyone else trying to run uoamhub.

Instructions:

Open src/Makefile with your text editor (vi, nano, etc)

On the line that starts with "WARNING_CFLAGS" find "-Werror" and remove it. This will tell the compiler not to treat warnings as errors.

Save the file and exit the text editor.

Type: make

You will still get a similar output as before, but this time they are warnings but it will compile the executable for you.
 
Back