LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-04-2018, 08:56 AM   #1
galen
Member
 
Registered: Sep 2003
Location: Halifax, Nova Scotia, Canada
Distribution: MX, Xubuntu, Zorin. BOYCOTTING: Vector, Beatrix, BLAG, Slackware. Life banned from: Facebook, Yahoo!
Posts: 191
Blog Entries: 1

Rep: Reputation: Disabled
mini-httpd 1.30 not building on xubuntu 18.04


anyone have success building?
 
Old 11-04-2018, 09:10 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
I can build it on Ubuntu Xenial.

If you posted the precise symptoms, I or other people could make suggestions how to fix your problem.
 
Old 11-04-2018, 01:30 PM   #3
galen
Member
 
Registered: Sep 2003
Location: Halifax, Nova Scotia, Canada
Distribution: MX, Xubuntu, Zorin. BOYCOTTING: Vector, Beatrix, BLAG, Slackware. Life banned from: Facebook, Yahoo!
Posts: 191

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Code:
# make
cc -O   -ansi -pedantic -U__STRICT_ANSI__ -Wall -Wpointer-arith -Wshadow -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wno-long-long -c mini_httpd.c
mini_httpd.c:102:19: error: conflicting types for ‘int64_t’
 typedef long long int64_t;
                   ^~~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:156:0,
                 from /usr/include/stdlib.h:394,
                 from mini_httpd.c:32:
/usr/include/x86_64-linux-gnu/bits/stdint-intn.h:27:19: note: previous declaration of ‘int64_t’ was here
 typedef __int64_t int64_t;
                   ^~~~~~~
mini_httpd.c: In function ‘main’:
mini_httpd.c:497:31: warning: ISO C does not support the ‘%m’ gnu_printf format [-Wformat=]
      syslog( LOG_CRIT, "%s - %m", logfile );
                               ^
mini_httpd.c:513:43: warning: ISO C does not support the ‘%m’ gnu_printf format [-Wformat=]
   syslog( LOG_WARNING, "fchown logfile - %m" );
                                           ^
mini_httpd.c:598:33: warning: ISO C does not support the ‘%m’ gnu_printf format [-Wformat=]
      syslog( LOG_CRIT, "fork - %m" );
                                 ^
mini_httpd.c:625:31: warning: ISO C does not support the ‘%m’ gnu_printf format [-Wformat=]
      syslog( LOG_CRIT, "%s - %m", pidfile );
                               ^
mini_httpd.c:640:7: warning: implicit declaration of function ‘setgroups’; did you mean ‘getgroups’? [-Wimplicit-function-declaration]
  if ( setgroups( 0, (gid_t*) 0 ) < 0 )
       ^~~~~~~~~
       getgroups
mini_httpd.c:642:38: warning: ISO C does not support the ‘%m’ gnu_printf format [-Wformat=]
      syslog( LOG_CRIT, "setgroups - %m" );
                                      ^
mini_httpd.c:649:35: warning: ISO C does not support the ‘%m’ gnu_printf format [-Wformat=]
      syslog( LOG_CRIT, "setgid - %m" );
                                   ^
mini_httpd.c:654:7: warning: implicit declaration of function ‘initgroups’; did you mean ‘getgroups’? [-Wimplicit-function-declaration]
  if ( initgroups( user, gid ) < 0 )
       ^~~~~~~~~~
       getgroups
mini_httpd.c:656:38: warning: ISO C does not support the ‘%m’ gnu_printf format [-Wformat=]
      syslog( LOG_ERR, "initgroups - %m" );
                                      ^
mini_httpd.c:670:34: warning: ISO C does not support the ‘%m’ gnu_printf format [-Wformat=]
      syslog( LOG_CRIT, "chdir - %m" );
                                  ^
mini_httpd.c:686:35: warning: ISO C does not support the ‘%m’ gnu_printf format [-Wformat=]
      syslog( LOG_CRIT, "chroot - %m" );
                                   ^
mini_httpd.c:715:41: warning: ISO C does not support the ‘%m’ gnu_printf format [-Wformat=]
      syslog( LOG_CRIT, "chroot chdir - %m" );
                                         ^
mini_httpd.c:727:43: warning: ISO C does not support the ‘%m’ gnu_printf format [-Wformat=]
      syslog( LOG_CRIT, "data_dir chdir - %m" );
                                           ^
mini_httpd.c:739:35: warning: ISO C does not support the ‘%m’ gnu_printf format [-Wformat=]
      syslog( LOG_CRIT, "setuid - %m" );
                                   ^
mini_httpd.c:819:35: warning: ISO C does not support the ‘%m’ gnu_printf format [-Wformat=]
      syslog( LOG_CRIT, "select - %m" );
                                   ^
mini_httpd.c:844:35: warning: ISO C does not support the ‘%m’ gnu_printf format [-Wformat=]
      syslog( LOG_CRIT, "accept - %m" );
                                   ^
mini_httpd.c:853:33: warning: ISO C does not support the ‘%m’ gnu_printf format [-Wformat=]
      syslog( LOG_CRIT, "fork - %m" );
                                 ^
mini_httpd.c: In function ‘read_config’:
mini_httpd.c:897:27: warning: ISO C does not support the ‘%m’ gnu_printf format [-Wformat=]
  syslog( LOG_CRIT, "%s - %m", filename );
                           ^
mini_httpd.c: In function ‘initialize_listen_socket’:
mini_httpd.c:1097:37: warning: ISO C does not support the ‘%m’ gnu_printf format [-Wformat=]
  syslog( LOG_CRIT, "socket %.80s - %m", ntoa( usaP ) );
                                     ^
mini_httpd.c:1107:48: warning: ISO C does not support the ‘%m’ gnu_printf format [-Wformat=]
  syslog( LOG_CRIT, "setsockopt SO_REUSEADDR - %m" );
                                                ^
mini_httpd.c:1114:35: warning: ISO C does not support the ‘%m’ gnu_printf format [-Wformat=]
  syslog( LOG_CRIT, "bind %.80s - %m", ntoa( usaP ) );
                                   ^
mini_httpd.c:1121:31: warning: ISO C does not support the ‘%m’ gnu_printf format [-Wformat=]
  syslog( LOG_CRIT, "listen - %m" );
                               ^
mini_httpd.c: In function ‘auth_check’:
mini_httpd.c:2383:61: warning: ISO C does not support the ‘%m’ gnu_printf format [-Wformat=]
      LOG_ERR, "%.80s auth file %.80s could not be opened - %m",
                                                             ^
mini_httpd.c:2406:19: warning: implicit declaration of function ‘crypt’; did you mean ‘creat’? [-Wimplicit-function-declaration]
      if ( strcmp( crypt( authpass, cryp ), cryp ) == 0 )
                   ^~~~~
                   creat
mini_httpd.c:2406:19: warning: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
In file included from mini_httpd.c:35:0:
/usr/include/string.h:136:12: note: expected ‘const char *’ but argument is of type ‘int’
 extern int strcmp (const char *__s1, const char *__s2)
            ^~~~~~
mini_httpd.c: In function ‘send_via_sendfile’:
mini_httpd.c:2812:14: warning: implicit declaration of function ‘my_sendfile’ [-Wimplicit-function-declaration]
  ssize_t r = my_sendfile( fd, s, off, buf_size );
              ^~~~~~~~~~~
mini_httpd.c: In function ‘handle_sigchld’:
mini_httpd.c:3315:35: warning: ISO C does not support the ‘%m’ gnu_printf format [-Wformat=]
   syslog( LOG_ERR, "child wait - %m" );
                                   ^
mini_httpd.c: In function ‘re_open_logfile’:
mini_httpd.c:3341:31: warning: ISO C does not support the ‘%m’ gnu_printf format [-Wformat=]
      syslog( LOG_CRIT, "%s - %m", logfile );
                               ^
mini_httpd.c: In function ‘main’:
mini_httpd.c:677:5: warning: ignoring return value of ‘getcwd’, declared with attribute warn_unused_result [-Wunused-result]
     (void) getcwd( cwd, sizeof(cwd) - 1 );
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mini_httpd.c: In function ‘do_cgi’:
mini_httpd.c:1925:5: warning: ignoring return value of ‘nice’, declared with attribute warn_unused_result [-Wunused-result]
     (void) nice( CGI_NICE );
     ^~~~~~~~~~~~~~~~~~~~~~~
mini_httpd.c:1938:2: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result]
  (void) chdir( directory ); /* ignore errors */
  ^~~~~~~~~~~~~~~~~~~~~~~~~
mini_httpd.c: In function ‘post_post_garbage_hack’:
mini_httpd.c:2035:5: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result]
     (void) read( conn_fd, buf, sizeof(buf) );
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
At top level:
mini_httpd.c:2797:1: warning: ‘send_via_sendfile’ defined but not used [-Wunused-function]
 send_via_sendfile( int fd, int s, off_t size )
 ^~~~~~~~~~~~~~~~~
Makefile:37: recipe for target 'mini_httpd.o' failed
make: *** [mini_httpd.o] Error 1
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Trying to build up xubuntu from ubuntu mini, need help with indicator app slacker_ Ubuntu 2 02-09-2015 03:44 PM
[mini-httpd] Couple of questions littlebigman Linux - Embedded & Single-board computer 0 04-30-2014 02:44 PM
Running mini-httpd on Debian Squeeze mahathi Linux - Server 1 07-06-2011 09:25 AM
LXer: Xubuntu 10.10 RC 1 Mini Review LXer Syndicated Linux News 0 10-07-2010 02:00 PM
Building A Mini Dachstein indienick Linux - Hardware 2 10-06-2006 09:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration