[AWS] "setsockopt" - problem AWS on Wndows2K, GPL-Edition 2008
Tillmann Eid
t.eid at gmx.de
Thu Jul 17 19:35:31 CEST 2008
Hi,
I installed the new GNAT GPL 2008 although I remember the troubles to
get AWS on GNAT GPL 2007 running.
And that's right there where I got stuck!
I use CYGWIN and removed all Cygwin-Ada-stuff to avoid any interference
when building AWS.
1) I managed to install ASIS, AUnit, XMLAda, GTKAda
2) I installed everything under C:\GNAT\2008
3) I wanted to create AWS with
INSTALL = /cygdrive/c/GNAT/2008
SHARED = true
XMLADA = true
ASIS = true
IPv6 = false
SOCKET = std
LDAP = true
DEBUG = false
4) Setup works fine - no error
5) Build finally crashes with >>>>>
building relocatable library for project src
c:\GNAT\2008\bin\gcc.exe -shared -o
C:\GNAT\AWS-gpl-2.5.0w\.build\release\reloca
table\lib\src\libaws.dll
-Lc:/GNAT/2008/lib/gcc/pentium-mingw32msv/4.1.3/adalib/
C:\GNAT\AWS-gpl-2.5.0w\.build\release\relocatable\obj\src\aws-attachments.o
...
-laws_win32 -lwsock32 -lws2_32 -lldap
-LC:\GNAT\AWS-gpl-2.5.0w\.build\release\r
elocatable\lib\win32 -laws_win32
-LC:\GNAT\AWS-gpl-2.5.0w\.build\release\relocat
able\lib\ssl -laws_ssl
-LC:\GNAT\AWS-gpl-2.5.0w\.build\release\relocatable\lib\i
nclude -laws_include
-LC:\GNAT\AWS-gpl-2.5.0w\.build\release\relocatable\lib\zli
b -lz -LC:\GNAT\2008\lib\xmlada\relocatable -lxmlada_schema
-LC:\GNAT\2008\lib\x
mlada\relocatable -lxmlada_dom -LC:\GNAT\2008\lib\xmlada\relocatable
-lxmlada_sa
x -LC:\GNAT\2008\lib\xmlada\relocatable -lxmlada_input_sources
-LC:\GNAT\2008\li
b\xmlada\relocatable -lxmlada_unicode
-Lc:/GNAT/2008/lib/gcc/pentium-mingw32msv/
4.1.3/adalib/ -lgnarl-6.2 -lgnat-6.2
C:\GNAT\AWS-gpl-2.5.0w\.build\release\relocatable\obj\src\aws-net.o:aws-net.adb:
(.text+0x13bb): undefined reference to `setsockopt'
collect2: ld returned 1 exit status
gnatmake: gcc execution error
make[1]: *** [build] Fehler 4
make: *** [src_build] Fehler 2
Tillmann Eid at MENINGITIS /cygdrive/c/GNAT/AWS-gpl-2.5.0w
<<<<<<<<<<<<<
6) I found out that the function 'setsockopt' exists in
C:\windows\System32\wsock32.dll and it's on the PATH so it should be
found by the linker (but perhaps doesn't link to the DLL directly?)
Could please anybody help me.
Thanks a lot in advance!
Best regards,
Tillmann Eid
More information about the AWS
mailing list