View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001438 | unreal | ircd | public | 2003-12-18 15:38 | 2007-06-17 16:44 |
Reporter | Mouse | Assigned To | aquanight | ||
Priority | normal | Severity | tweak | Reproducibility | N/A |
Status | resolved | Resolution | fixed | ||
Platform | bsd | OS | FreeBSD 4.7-RELEASE | OS Version | 4.7-RELEASE |
Product Version | 3.2-beta19 | ||||
Fixed in Version | 3.3-alpha0 | ||||
Summary | 0001438: uname() vs uname ? | ||||
Description | I have done many ircds on all of my boxes. I just did this on my friend's box I would appericate a fix. here is ssh log: -bash-2.05b$ make Building src gcc -I../include -pipe -g -O2 -funsigned-char -I/usr/include -DZIP_LINKS -export-dynamic -L/usr/lib -DFD_SETSIZE=5000 -c auth.c In file included from ../include/config.h:25, from ../include/struct.h:26, from auth.c:21: ../include/setup.h:209: unterminated string or character constant ../include/setup.h:191: possible real start of unterminated constant In file included from ../include/sys.h:33, from ../include/common.h:47, from ../include/struct.h:41, from auth.c:21: ../include/setup.h:209: unterminated string or character constant ../include/setup.h:191: possible real start of unterminated constant *** Error code 1 Stop in /usr/home/GlobalD/Unreal3.2/src. *** Error code 1 Stop in /usr/home/GlobalD/Unreal3.2. -bash-2.05b$ | ||||
Steps To Reproduce | wget ircd tar xzvf Un* cd Un* ./Config make try on freebsd4.7-RELEASE | ||||
Tags | No tags attached. | ||||
3rd party modules | |||||
|
Can you send the output of these commands below? cd Un* cat include/setup.h | head -n 191 | tail -n 1 edited on: 12-18-03 18:22 |
|
exactly, I was just going to ask you to attach include/setup.h ;p. setup.h is generated from a template by ./Config, so partially from user input... seems like something went wrong there. |
|
-bash-2.05b$ cat include/setup.h | head -n 191 | tail -n 1 #define MYOSNAME "Linux server1.b2netsolutions.com 2.4.2 FreeBSD 4.7-RELEASE #0: Wed Oct 9 15:08:34 GMT 2002 -bash-2.05b$ |
|
Great. Here's a reference (actually not for 4.7-RELEASE, but this should help to find out the problem): http://lists.freebsd.org/pipermail/freebsd-emulation/2003-June/000095.html edited on: 12-19-03 08:50 |
|
In reality, Unreal shouldn't even be setting that information at compile time imho. For things such as rpm's and whatnot, the system the software is running on may very likely be different than the system the software was compiled on. I think a better solution is to determine this a runtime using the uname() function. |
|
-bash-2.05b$ uname -a FreeBSD server1.b2netsolutions.com 4.7-RELEASE FreeBSD 4.7-RELEASE #0: Wed Oct 9 15:08:34 GMT 2002 [email protected]:/usr/obj/usr/src/sys/GENERIC i386 -bash-2.05b$ |
|
Bump. Still an issue? (syzop/codemastr) comment |
|
I'd be ok with using uname(), provided that we be careful with portability, after all.. this isn't exactly important... |
|
Task: Write a portable uname() (that gives along the same lines of uname -a) alike the one we have for Win32. |
|
Fixed in CVS .2442 (devel branch) 1.1.1.1.2.1.2.1.2.2442 (aquanigh 17-Jun-07): - 0001438 reported by Mouse, to use uname() syscall on ircd start instead of 1.1.1.1.2.1.2.1.2.2442 (aquanigh 17-Jun-07): uname tool at Config/configure to fill in MYOSNAME. As with the 0003363 patch 1.1.1.1.2.1.2.1.2.2442 (aquanigh 17-Jun-07): this will make binary packages a bit more reasonable. As a side effect, the 1.1.1.1.2.1.2.1.2.2442 (aquanigh 17-Jun-07): amount of information in /version has been reduced to just the OS name (eg: Linux, 1.1.1.1.2.1.2.1.2.2442 (aquanigh 17-Jun-07): FreeBSD, etc) and release (2.6.17, 6.0-RELEASE, etc), which is about the same amount 1.1.1.1.2.1.2.1.2.2442 (aquanigh 17-Jun-07): of information given by Win32 IRCds. If for some reason uname() can't get this 1.1.1.1.2.1.2.1.2.2442 (aquanigh 17-Jun-07): info, we just config_warn and set MYOSNAME to "POSIX" as this data is only ever 1.1.1.1.2.1.2.1.2.2442 (aquanigh 17-Jun-07): used in /version. |
Date Modified | Username | Field | Change |
---|---|---|---|
2003-12-18 15:38 | Mouse | New Issue | |
2003-12-18 18:21 | AngryWolf | Note Added: 0004374 | |
2003-12-18 18:22 | AngryWolf | Note Edited: 0004374 | |
2003-12-18 19:31 | syzop | Note Added: 0004375 | |
2003-12-19 08:21 | Mouse | Note Added: 0004380 | |
2003-12-19 08:48 | AngryWolf | Note Added: 0004382 | |
2003-12-19 08:50 | AngryWolf | Note Edited: 0004382 | |
2003-12-19 19:52 |
|
Note Added: 0004387 | |
2003-12-20 14:05 | Mouse | Note Added: 0004388 | |
2005-12-10 17:32 | syzop | Severity | major => tweak |
2005-12-10 17:32 | syzop | Summary | the ircd wont make on my friend's box. => uname() vs uname ? |
2007-04-27 05:52 |
|
Note Added: 0013845 | |
2007-04-27 05:52 |
|
Status | new => feedback |
2007-05-07 12:41 | syzop | Note Added: 0014020 | |
2007-05-07 12:41 | syzop | Status | feedback => acknowledged |
2007-05-07 12:41 | syzop | Category | documentation => ircd |
2007-05-08 13:38 | syzop | Relationship added | related to 0003320 |
2007-06-12 15:48 |
|
Note Added: 0014350 | |
2007-06-17 16:22 | aquanight | Status | acknowledged => assigned |
2007-06-17 16:22 | aquanight | Assigned To | => aquanight |
2007-06-17 16:44 | aquanight | Note Added: 0014385 | |
2007-06-17 16:44 | aquanight | Status | assigned => resolved |
2007-06-17 16:44 | aquanight | Resolution | open => fixed |
2007-06-17 16:44 | aquanight | Fixed in Version | => 3.3-alpha0 |