Hi,
It's been years since we last built this at DLS (2015) so Freddie's github repo is probably the most up-to-date. https://github.com/ISISComputingGroup/EPICS-nullhttpd
Its a bit of a strange setup: It seems the nullhttpd module doesn't have to be built as the sources are pulled into ffmpegServer at build time and rebuilt there. See https://github.com/areaDetector/ffmpegServer/blob/master/ffmpegServerApp/src/Makefile#L27
Also there are some comments in that makefile about nullhttpd requires win32 mode (-DWIN32)...
Cheers,
Ulrik
________________________________
From: [email protected] <[email protected]> on behalf of Freddie Akeroyd - UKRI STFC <[email protected]>
Sent: 17 May 2018 00:19
To: 'Andrew Johnson'; '[email protected]'
Subject: RE: Error LNK2005 building Diamond's nullhttpd module on Windows
Hi,
There are some fixes for these issue pushed to https://github.com/ISISComputingGroup/EPICS-nullhttpd
Regards,
Freddie
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Andrew Johnson
Sent: 16 May 2018 22:59
To: [email protected]
Subject: Re: Error LNK2005 building Diamond's nullhttpd module on Windows
Hi Lewis,
I know nothing about nullhttpd, but...
On 05/16/2018 04:41 PM, J. Lewis Muir wrote:
> Now I'm getting the following error (the full output is at the end of
> this email):
>
> ===
> link -nologo -subsystem:windows -dll -LTCG -incremental:no -opt:ref -release /NODEFAULTLIB:LIBCMT.lib -implib:nullhttpd.lib -out:nullhttpd.dll cgi.obj files.obj http.obj win32.obj config.obj format.obj server.obj main.obj
> server.obj : error LNK2001: unresolved external symbol
> __imp__MessageBoxA@16 ===
>
> Ideas?
MessageBoxA() is a MS Windows call to bring up an alert box, and is found in user32.dll. You could try linking to that library.
> cl -c -nologo -D__STDC__=0 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -Ox -GL -Oy- -W3 -DWIN32 -MD -I. -I..\\O.Common -I. -I.. -I..\\..\\include\\os\\WIN32 -I..\\..\\include -IC:\opt\epics-base\\include\\os\\WIN32 -IC:\opt\epics-base\\include ..\\server.c
> server.c
> ..\server.c(46) : warning C4133: 'function' : incompatible types - from 'long *' to 'const time_t *'
> ..\server.c(70) : warning C4133: 'function' : incompatible types - from 'long *' to 'const time_t *'
> ..\server.c(447) : warning C4244: '=' : conversion from 'time_t' to
> 'int', possible loss of data
Those warnings look rather ominous, I would suggest investigating them to make sure they aren't going to cause problems. The time_t type on Windows may have changed from 32 to 64-bit since this code was written.
HTH,
- Andrew
--
Arguing for surveillance because you have nothing to hide is no different than making the claim, "I don't care about freedom of speech because I have nothing to say." -- Edward Snowdon
--
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
- References:
- Error LNK2005 building Diamond's nullhttpd module on Windows J. Lewis Muir
- Re: Error LNK2005 building Diamond's nullhttpd module on Windows J. Lewis Muir
- Re: Error LNK2005 building Diamond's nullhttpd module on Windows Andrew Johnson
- RE: Error LNK2005 building Diamond's nullhttpd module on Windows Freddie Akeroyd - UKRI STFC
- Navigate by Date:
- Prev:
Re: EPICS control of an Edwards STP turbomolecular pump kurt goetze
- Next:
Store 64-bit integer in asyn parameter library? J. Lewis Muir
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
<2018>
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
RE: Error LNK2005 building Diamond's nullhttpd module on Windows Freddie Akeroyd - UKRI STFC
- Next:
Re: Error LNK2005 building Diamond's nullhttpd module on Windows J. Lewis Muir
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
<2018>
2019
2020
2021
2022
2023
2024
|