Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  09 Mar 2008, Exaos Lee, Suggestion, New Makefile for building MIDAS Makefile-by-EL
    Reply  09 Mar 2008, Stefan Ritt, Suggestion, New Makefile for building MIDAS 
    Reply  10 Mar 2008, Stefan Ritt, Suggestion, New Makefile for building MIDAS 
       Reply  10 Mar 2008, Exaos Lee, Suggestion, New Makefile for building MIDAS 
    Reply  10 Mar 2008, Konstantin Olchanski, Suggestion, New Makefile for building MIDAS 
       Reply  10 Mar 2008, Exaos Lee, Suggestion, New Makefile for building MIDAS 
          Reply  12 Mar 2008, Konstantin Olchanski, Suggestion, New Makefile for building MIDAS 
       Reply  10 Mar 2008, Exaos Lee, Suggestion, "Makefile-by-EL" updated Makefile-by-EL
          Reply  10 Mar 2008, Exaos Lee, Suggestion, "Makefile-by-EL" updated 
          Reply  11 Mar 2008, Stefan Ritt, Suggestion, "Makefile-by-EL" updated 
             Reply  11 Mar 2008, Exaos Lee, Suggestion, "Makefile-by-EL" updated 
Message ID: 468     Entry time: 11 Mar 2008     In reply to: 466     Reply to this: 469
Author: Stefan Ritt 
Topic: Suggestion 
Subject: "Makefile-by-EL" updated 
The linking of mhttpd misses a "-lm":

cc -g -O3 -Wall -Wuninitialized -DINCLUDE_FTPLIB -D_LARGEFILE64_SOURCE -DOS_LINUX
-fPIC -Wno-unused-function   -DHAVE_ZLIB -Iinclude -Idrivers -I../mxml -o
linux/bin/mhttpd linux/lib/mhttpd.o linux/lib/mgd.o linux/lib/libmidas.a -lutil
-lpthread -lz
linux/lib/mhttpd.o(.text+0xe08f): In function `show_custom_gif':
src/mhttpd.c:5058: undefined reference to `log'
linux/lib/mhttpd.o(.text+0xe0a8):src/mhttpd.c:5058: undefined reference to `log'

The header of the makefile should contain a short description, the author(s), an
$Id:$ tag for SVN, some explanation what "icc", "ifort" means, a note about the
CFLAGS and a clear statement what can be modified by the user and why and what not.
ELOG V3.1.4-2e1708b5