[comp.unix.amiga] I get some white hairs with gcc and sockets

jmpor@dynam.UUCP (Jean-MarcPorchet) (05/24/91)

In article <3939@cbmehq.UUCP>, David Miller - CATS writes:

> 
> |2) About your documentation on your distribution tape:
> |   I tried to download from tape to disk the "Full SVR4 documentation set"
> |   of 15 Megs.... (yes, I did the uncompress | cpio of 3th part)
> |   Just one meg of nice garbage data for elm and other not usable
> |   things comes in my directory...
> |
> |   Where is this documentation? Was the European distribution of the
> |   tapes bad ?  Does it only exist in the manual ;) ?
> 
> It sounds like your tape is hosed.   Did you contact the vendor where
> you got the machine?  That should be your first step.
> 

I have the same problem, and I have try with two different tapes, with the
same result, maybe Commodore Switzerland have got a lot of bad tapes,
sound weird no ??

I have another problem with the 1.1 distribution, I can't reinstall the tape
on my systems. I have also try with two different tapes and two different A3000UX
and I go the same result : the system crash when it try to load the Kernel
with an errror : ERROR 8000 000B TASK: 07802E00.

Any advice,tips or help will be welcome.



> DavidM			CATS - Commodore Applications and Technical Support
> +1 215 431 9425		davidm@cbmvax.commodore.com
> "Commodore Amiga 3000UX - Born to Run UNIX SVR4"


--

PS : forget my bad English, I'm still trying to learn it
-----------------------------------------------------------------------------
Jean-Marc PORCHET                                    Phone : 41 22-754-1733
301 Mandement Road                                   ORG   : DYNAMIC COMPUTER
1281 RUSSIN
SWITZERLAND      UUCP :   ...{uunet,rutgers}!cbmvax!cbmehq!cbmswi!dynam!jmpor
					  or try   mcsun!cbmswi!dynam!jmpor		 
-----------------------------------------------------------------------------
'Simple things should be simple & complex things should be possible' Alan key

zofka@cernvax.cern.ch (milan zofka) (05/24/91)

Hi,

Two too bad things on my A3000 UXD for now.

1)

I just read few minutes before, how to link BSD applications with my
    3000UXD. (gcc -I/ucbinclude... all the files was *quiet* OK but
    now, no way to link my application).

libsocket.so is giving me white hairs...
Look:

	gcc -L/usr/ucblib -O -DTTY -DGRAPHICS -DAMIGA -DDEBUG -DLDEBUG
            -DFROMNET -DTONET -DDUMPSCREEN -DSHOWFIELDS
            -DLIBDIR=\"/cern/local/lib/3270/\"
            -DPROFILE=\"/cern/etc/map3270\"
            -o p3270 telnet.o 3270.o curscr.o globals.o iomodule.o sizer.o
               statusline.o parse.o finddef.o curses.o initscr.o cr_tty.o
            -ltermlib -lsocket -lucb

*** Error code 1 (bu21)

Undefined			first referenced
 symbol  			    in file

getnetconfig                        /usr/lib/libsocket.so
inet_ntoa                           /usr/lib/libsocket.so
endnetconfig                        /usr/lib/libsocket.so
setnetconfig                        /usr/lib/libsocket.so

ld: p3270: fatal error: Symbol referencing errors. No output written to p3270

make: fatal error.

NOTE: I dont make any call of any of theses functions...

Any proposition on how to link it
(CBM I just sent the sources to nick (and dick) at cbmnlux for the same
reason. If you want to look at the code, just ask them the sources, it's
a 3270 terminal emulator, just fine for connexions to IBM/VM machines)...


2) About your documentation on your distribution tape:
   I tried to download from tape to disk the "Full SVR4 documentation set"
   of 15 Megs.... (yes, I did the uncompress | cpio of 3th part)
   Just one meg of nice garbage data for elm and other not usable
   things comes in my directory...

   Where is this documentation? Was the European distribution of the
   tapes bad ?  Does it only exist in the manual ;) ?

================================================================
Milan ZOFKA   zofka@cernvax.cern.ch  or mcsun!cernvax!zofka

Working at European Center for Nuclear Research
          (high energy physics, no atomic research)
But working for Physics Department of Geneva's University
================================================================

davidm@cbmvax.commodore.com (David Miller - CATS) (05/24/91)

In article <5399@cernvax.cern.ch> zofka@cernvax.cern.ch (milan zofka) writes:
|Hi,
|
|Two too bad things on my A3000 UXD for now.
|
|1)
|
|I just read few minutes before, how to link BSD applications with my
|    3000UXD. (gcc -I/ucbinclude... all the files was *quiet* OK but
|    now, no way to link my application).
|
|libsocket.so is giving me white hairs...
|Look:
|
|	gcc -L/usr/ucblib -O -DTTY -DGRAPHICS -DAMIGA -DDEBUG -DLDEBUG
|            -DFROMNET -DTONET -DDUMPSCREEN -DSHOWFIELDS
|            -DLIBDIR=\"/cern/local/lib/3270/\"
|            -DPROFILE=\"/cern/etc/map3270\"
|            -o p3270 telnet.o 3270.o curscr.o globals.o iomodule.o sizer.o
|               statusline.o parse.o finddef.o curses.o initscr.o cr_tty.o
|            -ltermlib -lsocket -lucb
|
|*** Error code 1 (bu21)
|
|Undefined			first referenced
| symbol  			    in file
|
|getnetconfig                        /usr/lib/libsocket.so
|inet_ntoa                           /usr/lib/libsocket.so
|endnetconfig                        /usr/lib/libsocket.so
|setnetconfig                        /usr/lib/libsocket.so
|
|ld: p3270: fatal error: Symbol referencing errors. No output written to p3270
|
|make: fatal error.
|
|NOTE: I dont make any call of any of theses functions...

No, these functions are called by routines in the socket library.
What you're missing is the Network Support Library (-lnsl).  Add that
and you should get a clean link.

|2) About your documentation on your distribution tape:
|   I tried to download from tape to disk the "Full SVR4 documentation set"
|   of 15 Megs.... (yes, I did the uncompress | cpio of 3th part)
|   Just one meg of nice garbage data for elm and other not usable
|   things comes in my directory...
|
|   Where is this documentation? Was the European distribution of the
|   tapes bad ?  Does it only exist in the manual ;) ?

It sounds like your tape is hosed.   Did you contact the vendor where
you got the machine?  That should be your first step.


|================================================================
|Milan ZOFKA   zofka@cernvax.cern.ch  or mcsun!cernvax!zofka
|
|Working at European Center for Nuclear Research
|          (high energy physics, no atomic research)
|But working for Physics Department of Geneva's University
|================================================================


DavidM

--

DavidM			CATS - Commodore Applications and Technical Support
+1 215 431 9425		davidm@cbmvax.commodore.com
"Commodore Amiga 3000UX - Born to Run UNIX SVR4"

rhealey@digibd.com (Rob Healey) (05/27/91)

In article <5399@cernvax.cern.ch> zofka@cernvax.cern.ch (milan zofka) writes:
>Two too bad things on my A3000 UXD for now.
>1)
>
>I just read few minutes before, how to link BSD applications with my
>    3000UXD. (gcc -I/ucbinclude... all the files was *quiet* OK but
>    now, no way to link my application).
>
	You can TRY to use the non-bsd route by linking
	-lsocket -lnsl

	-lgen and -lelf have other stuff BSD code might need.

	I've gotten alot of X toys to compile using the above
	4 librarys. You're milage will probably vary.

		-Rob
-- 

Rob Healey                                          rhealey@digibd.com
Digi International (DigiBoard)
Eden Prairie, MN                                    (612) 943-9020