This is an implementation of BSD sockets for Ada. Once again GNAE made it a mess to install.
Created attachment 14083 [details] dev-ada/adasockets-1.7
Hi David. I am testing this ebuild, but it fails during build while going through examples with: gnatbind -aO./ -aO../src -aO../src -I- -x tcprelay.ali gnatlink tcprelay.ali gnatlink listener.ali /usr/lib/gcc-lib/i686-pc-linux-gnu/2.8.1/libgthreads.a(opt.o)(.text+0x1)/usr/lib/gcc-lib/i686-pc-linux-gnu/2.8.1/libgthreads.a(opt.o)(.text+0x1): In function `: In function `pthread_cerror': : undefined reference to `errno' pthread_cerror': : undefined reference to `errno' gnatlink: cannot call /usr/bin/gnatgcc gnatmake: *** link failed. relevant parts of my emerge info: groug adasockets # emerge info Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1) ================================================================= System uname: 2.4.20-gaming-r3 i686 Pentium III (Coppermine) [skipped] USE="x86 oss apm avi crypt cups encode gif jpeg gnome libg++ mad mikmod mmx mpeg ncurses pdflib png quicktime spell truetype xml2 xmms xv zlib alsa gdbm berkdb readline arts tetex aalib nas svga tcltk java guile postgres X sdl gpm tcpd pam libwww ssl perl python imlib oggvorbis gtk qt kde motif opengl gphoto2 cdr scanner acpi acpi4linux dga directfb dvd fbcon fbdev flash gd ggi glide gpg imap jpilot maildir mcrypt moznocompose moznoirc moznomail nls oav pcmcia pda pic plotutils pnp rage128 samba slp sse tiff trusted usb vim-with-x wavelan wmf Xaw3d xinerama xml xosd -3dnow -gtkhtml -slang -bonobo -ruby -esd" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O2 -pipe -fforce-addr -fomit-frame-pointer -falign-functions=4 -fprefetch-loop-arrays -fexpensive-optimizations -mfpmath=sse" CXXFLAGS="-march=pentium3 -O2 -pipe -fforce-addr -fomit-frame-pointer -falign-functions=4 -fprefetch-loop-arrays -fexpensive-optimizations -mfpmath=sse" ACCEPT_KEYWORDS="~x86 x86" MAKEOPTS="-j2" AUTOCLEAN="yes" FEATURES="sandbox digest distcc ccache userpriv usersandbox noauto" George
I'm unable to reproduce this. I recompiled glibc 2.3.2-r1 with the same options you use but adasockets still compiles without a fuss. Which version of glibc do you have installed? Does "nm /usr/lib/libc.so|grep errno" return the errno symbol inside the lib?
Hi David. Tested this again, this time worked like a charm - no problems detected. I don't know what was up previously. I committed the package, please test. There were few touch-ups though: 1. doins copyes symlinks as regular files, I resorted to cp -d ... in ebuild 2. I removed S="${WORKDIR}/${P}" from the ebuild as it is not necessary - gets assigned automatically. George
I know why this failed for you the first time (I think). I had the exact same error when I tried to compile gnat 5.0 with FSU-threads as my default runtime. It seems to be linked against old libs, I've been trying to get FSU-threads to compile so we can install it separately instead of using the prebuilt version but I get lots of errors.
We're already at -r1 and that looks exactly like an FSU-threads bug (you need -lc when using FSU threads).
In portage since long