Difference between revisions of "AOLserver Bugs and Problems"

From AOLserver Wiki
Jump to navigation Jump to search
(Build problem with aolserver-4.5.0)
Line 1: Line 1:
 
'''Bugs should be reported using the [http://sourceforge.net/tracker/?atid=103152&group_id=3152 SourceForge Bug Tracker] for the AOLserver project.'''
 
'''Bugs should be reported using the [http://sourceforge.net/tracker/?atid=103152&group_id=3152 SourceForge Bug Tracker] for the AOLserver project.'''
 +
 +
----
 +
 +
12 Jul, 2006
 +
 +
Hi,
 +
 +
I'm having a compilation error when trying to build AOLserver-4.5.0. It's the first time I use AOLserver, so its probably a silly problem. Can anyone help me?
 +
 +
    cl /EHsc /W3 /nologo /c /MD /O2  /D "_WINDOWS" /D "TCL_THREADS=1" /D "WIN32"
 +
        /D "FD_SETSIZE=128" /D "NO_CONST=1" /D "_MBCS" /D "NDEBUG"
 +
        /I "C:\Pruebas\src\aolserver-4.5.0-src\include"
 +
        /I "C:\Pruebas\Tcl8.4.13\include" /c /Fodns.o
 +
    dns.c
 +
    dns.c
 +
    dns.c(258) : error C2065: 'NI_MAXHOST' : undeclared identifier
 +
    dns.c(258) : error C2057: expected constant expression
 +
    dns.c(258) : error C2466: cannot allocate an array of constant size 0
 +
    dns.c(258) : error C2133: 'buf' : unknown size
 +
    dns.c(278) : warning C4013: 'getnameinfo' undefined; assuming extern returning
 +
                int
 +
    dns.c(279) : warning C4034: sizeof returns 0
 +
    dns.c(280) : error C2065: 'NI_NAMEREQD' : undeclared identifier
 +
    dns.c(282) : warning C4013: 'gai_strerror' undefined; assuming extern                                                   
 +
                returning int
 +
    dns.c(325) : error C2079: 'hints' uses undefined struct 'addrinfo'
 +
    dns.c(331) : error C2224: left of '.ai_family' must have struct/union type
 +
    dns.c(332) : error C2224: left of '.ai_socktype' must have struct/union type
 +
    dns.c(333) : warning C4013: 'getaddrinfo' undefined; assuming extern returning
 +
                int
 +
    dns.c(340) : error C2037: left of 'ai_addr' specifies undefined struct/union
 +
                'addrinfo'
 +
    dns.c(340) : error C2198: 'ns_inet_ntoa' : too few actual parameters
 +
    dns.c(341) : error C2037: left of 'ai_next' specifies undefined struct/union
 +
                'addrinfo'
 +
    dns.c(343) : warning C4013: 'freeaddrinfo' undefined; assuming extern
 +
                returning int
 +
    NMAKE : fatal error U1077: 'cl' : return code '0x2'
 +
    Stop.
 +
    NMAKE : fatal error U1077: 'C:\Pruebas\Tcl8.4.13\bin\tclsh84t.exe' : return
 +
            code '0x1'
 +
    Stop.
 +
   
 +
I'm using aolserver-4.5.0 with Tcl8.4.13 in Windows XP. I compiled Tcl with the options threads and thrdalloc.
 +
 +
Thanks,
 +
 +
Miguel
  
 
----
 
----

Revision as of 17:31, 12 July 2006

Bugs should be reported using the SourceForge Bug Tracker for the AOLserver project.


12 Jul, 2006

Hi,

I'm having a compilation error when trying to build AOLserver-4.5.0. It's the first time I use AOLserver, so its probably a silly problem. Can anyone help me?

   cl /EHsc /W3 /nologo /c /MD /O2  /D "_WINDOWS" /D "TCL_THREADS=1" /D "WIN32"
       /D "FD_SETSIZE=128" /D "NO_CONST=1" /D "_MBCS" /D "NDEBUG" 
       /I "C:\Pruebas\src\aolserver-4.5.0-src\include" 
       /I "C:\Pruebas\Tcl8.4.13\include" /c /Fodns.o 
   dns.c
   dns.c
   dns.c(258) : error C2065: 'NI_MAXHOST' : undeclared identifier
   dns.c(258) : error C2057: expected constant expression
   dns.c(258) : error C2466: cannot allocate an array of constant size 0
   dns.c(258) : error C2133: 'buf' : unknown size
   dns.c(278) : warning C4013: 'getnameinfo' undefined; assuming extern returning 
                int
   dns.c(279) : warning C4034: sizeof returns 0
   dns.c(280) : error C2065: 'NI_NAMEREQD' : undeclared identifier
   dns.c(282) : warning C4013: 'gai_strerror' undefined; assuming extern                                                    
                returning int
   dns.c(325) : error C2079: 'hints' uses undefined struct 'addrinfo'
   dns.c(331) : error C2224: left of '.ai_family' must have struct/union type
   dns.c(332) : error C2224: left of '.ai_socktype' must have struct/union type
   dns.c(333) : warning C4013: 'getaddrinfo' undefined; assuming extern returning 
                int
   dns.c(340) : error C2037: left of 'ai_addr' specifies undefined struct/union 
                'addrinfo'
   dns.c(340) : error C2198: 'ns_inet_ntoa' : too few actual parameters
   dns.c(341) : error C2037: left of 'ai_next' specifies undefined struct/union 
                'addrinfo'
   dns.c(343) : warning C4013: 'freeaddrinfo' undefined; assuming extern 
                returning int
   NMAKE : fatal error U1077: 'cl' : return code '0x2'
   Stop.
   NMAKE : fatal error U1077: 'C:\Pruebas\Tcl8.4.13\bin\tclsh84t.exe' : return 
           code '0x1'
   Stop.
   

I'm using aolserver-4.5.0 with Tcl8.4.13 in Windows XP. I compiled Tcl with the options threads and thrdalloc.

Thanks,

Miguel


Has anyone succesfully run 4.0.7 (or any other version) on SuSE 8 for AMD64? It appears to build OK (built against 64 bit build of Tcl 8.4.5) but when run throws a

   NsTclInitObjs: sizeof(int) < sizeof(long)
   Aborted

error

Thanks

Damien

Dossy 27jul2004 - Damien, Tomasz Kosiak asked the same question on the AOLserver mailing list and Jim Davidson responded that commenting out the failing check you experienced may be safe. Tomasz then replied that he'd followed Jim's advice, and it seems to be working just fine. Once I get some time on a AMD64 system, I'll do some testing and commit the change. For now, you can either make the same change Tomasz did, or wait.

---

I am having problems with ns_sha1 returning sha1 hashes that differ from all other library implementations. -Caveman

  • Can you provide a short snippet of sample code (incl. sample data, and what you get as output) from ns_sha1 as well as one other library implementation, so we might be able to identify where the difference is coming from? -- Dossy 07:10, 3 December 2005 (EST)
    • Such information is on the linked ns_sha1 page. --Caveman 09:27, 3 December 2005 (EST)