View Issue Details

IDProjectCategoryView StatusLast Update
0004663unrealircdpublic2016-04-24 10:53
Reporterunrealircd1671Assigned Tosyzop 
PrioritynormalSeveritytweakReproducibilityalways
Status resolvedResolutionfixed 
PlatformBSD/Unix amd64OSOpenBSDOS Version5.9
Product Version4.0.3 
Target VersionFixed in Version4.0.3.1 
Summary0004663: Compile problem on OpenBSD (missing include in crashreport.c)
Description4.0.3 fails to compile on OpenBSD 5.9 (RELEASE)

make exits at

/opt/unrealircd-4.0.3/src/crashreport.c:240: undefined reference to `WEXITSTATUS'
collect2: ld returned 1 exit status
*** Error 1 in src (Makefile:67 'ircd')
*** Error 1 in /opt/unrealircd-4.0.3 (Makefile:147 'build')

Steps To ReproduceInstall a stock OpenBSD 4.9/amd64 (RELEASE -- not a snapshot etc)
Untar the unrealircd tar.gz.
./Config
make
Additional InformationPatching /opt/unrealircd-4.0.3/src/crashreport.c with the line

#include <sys/wait.h>

allows the make to end with only the usual warnings...

--- unrealircd-4.0.3/src/crashreport.c Sat Apr 16 06:23:45 2016
+++ unrealircd-4.0.3-patched/src/crashreport.c Fri Apr 22 20:20:04 2016
@@ -11,6 +11,7 @@
 #endif

 #include "version.h"
+#include <sys/wait.h>

 extern char *getosname(void);


TagsNo tags attached.
3rd party modules

Relationships

related to 0004666 resolvedsyzop Unable to run make 

Activities

syzop

2016-04-23 09:58

administrator   ~0019214

Thanks for the report. I've added a configure check for sys/wait.h and it will now be included if present. This is now in latest git and should fix the OpenBSD problem.

If you encounter any further issues, please let us know. Thanks!

https://github.com/unrealircd/unrealircd/commit/a886c1ebc61c02005461700bfa79b643b539ae5d

syzop

2016-04-24 10:53

administrator   ~0019218

4.0.3.1 release for OpenBSD/FreeBSD users: https://forums.unrealircd.org/viewtopic.php?f=1&t=8526

Issue History

Date Modified Username Field Change
2016-04-23 02:47 unrealircd1671 New Issue
2016-04-23 09:47 syzop Assigned To => syzop
2016-04-23 09:47 syzop Status new => acknowledged
2016-04-23 09:58 syzop Note Added: 0019214
2016-04-23 09:58 syzop Status acknowledged => resolved
2016-04-23 09:58 syzop Fixed in Version => 4.0.3.1
2016-04-23 09:58 syzop Resolution open => fixed
2016-04-24 10:52 syzop Summary missing include in crashreport.c => Compile problem on OpenBSD (missing include in crashreport.c)
2016-04-24 10:52 syzop Relationship added related to 0004666
2016-04-24 10:53 syzop Note Added: 0019218