[comp.unix.i386] rename

small@quiche.cs.mcgill.ca (Alain PETIT) (07/16/90)

	Hi! I'm trying to use rename(2P) but 'ld' report an undefined
	symbol "Error" in /lib/libPW.a.  I 'ar t /lib/*.a
	/usr/lib/*.a', 'nm /lib/*.a /lib/*.o /usr/lib/*.a' and found
	no entry named 'Error', I check in the new man pages of R2.2
	and found no (char *) to a old bug in R2.0.2.  Same in
	release notes.

	I can't switch to R2.2 now because of my wild Disk System
	but if you have some old (working) patchs to propose. Thanks
	to you!

Nota: I already try to make a alternate Error() function but I don't
      know is true nature, and I got more core file than working
      softwares.
	
-- 
------------------------------------------------------------------
small@quiche.cs.mcgill.ca   | 
McGill University           | Life is the primary cause for Death.
Montreal, Quebec            |

cpcahil@virtech.uucp (Conor P. Cahill) (07/16/90)

In article <3698@calvin.cs.mcgill.ca> small@calvin.cs.mcgill.ca (Alain PETIT) writes:
>	Hi! I'm trying to use rename(2P) but 'ld' report an undefined
>	symbol "Error" in /lib/libPW.a.  I 'ar t /lib/*.a
>	/usr/lib/*.a', 'nm /lib/*.a /lib/*.o /usr/lib/*.a' and found
>	no entry named 'Error', I check in the new man pages of R2.2
>	and found no (char *) to a old bug in R2.0.2.  Same in
>	release notes.

To use any of the posix environment stuff you need to compile/link your 
program with the -Xp compiler directive (tells it to use posix stuff).

With that, the rename call will compile & link correctly.
-- 
Conor P. Cahill            (703)430-9247        Virtual Technologies, Inc.,
uunet!virtech!cpcahil                           46030 Manekin Plaza, Suite 160
                                                Sterling, VA 22170