Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23822 - adasockets 1.7
Summary: adasockets 1.7
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: George Shapovalov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-01 11:48 UTC by David Holm (RETIRED)
Modified: 2003-09-29 10:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-ada/adasockets-1.7 (adasockets-1.7.ebuild,1.17 KB, text/plain)
2003-07-01 11:50 UTC, David Holm (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Holm (RETIRED) gentoo-dev 2003-07-01 11:48:26 UTC
This is an implementation of BSD sockets for Ada. 
Once again GNAE made it a mess to install.
Comment 1 David Holm (RETIRED) gentoo-dev 2003-07-01 11:50:37 UTC
Created attachment 14083 [details]
dev-ada/adasockets-1.7
Comment 2 George Shapovalov (RETIRED) gentoo-dev 2003-07-13 21:35:16 UTC
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
Comment 3 David Holm (RETIRED) gentoo-dev 2003-07-22 07:24:56 UTC
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?
Comment 4 George Shapovalov (RETIRED) gentoo-dev 2003-08-12 21:53:47 UTC
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
Comment 5 David Holm (RETIRED) gentoo-dev 2003-08-15 10:02:50 UTC
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.
Comment 6 David Holm (RETIRED) gentoo-dev 2003-08-17 15:37:27 UTC
We're already at -r1 and that looks exactly like an FSU-threads bug (you need -lc when 
using FSU threads). 
Comment 7 David Holm (RETIRED) gentoo-dev 2003-09-29 10:49:47 UTC
In portage since long