[gps-devel] (no subject)

alwyn lee alwynbjut at yahoo.com
Fri Nov 3 05:07:42 CET 2006


Hello,Arnaud

Here is a problem I want to trouble you , If you have time ,may you
give me a hand ,thanks .
I saw you message on the web that is 
-------------------------------------
[Ada] fix handling of fds in gnat.expect
(__gnat_set_close_on_exec): New routine to support
	GNAT.OS_Lib.Set_Close_On_Exec.

	* g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
	the parent side as close-on-exec so that they are not inherited by the
	child.

	* g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
	set or clear the FD_CLOEXEC flag on a file descriptor.
----------------------------------------------------------------
and when I  building the gps source , met a link err as  
/gps/gps-3.0.0/obj/g-expect.o(.text+0x27d8): In function
`gnat.expect.set_up_communications':
/gps/gps-3.0.0/gnat_src/g-expect.adb:1138: undefined reference to
`gnat__os_lib__set_close_on_exec'
/gps/gps-3.0.0/obj/g-expect.o(.text+0x27ea):/gps/gps-3.0.0/gnat_src/g-expect.adb:1140:
undefined reference to `gnat__os_lib__set_close_on_exec'
/gps/gps-3.0.0/obj/g-expect.o(.text+0x281b):/gps/gps-3.0.0/gnat_src/g-expect.adb:1160:
undefined reference to `gnat__os_lib__set_close_on_exec'
/gps/gps-3.0.0/obj/mlib.o(.text+0x7fc): In function
`mlib.copy_ali_files':
/gps/gps-3.0.0/gnat_src/mlib.adb:262: undefined reference to
`gnat__os_lib__set_read_only'
collect2: ld returned 1 exit status
gnatlink: cannot call ./gpslink
gnatmake: *** link failed.
make[1]: *** [internal-build] Error 4
-----------------------------------------------------------

I think the problem has some relations towards your message,does  it
care about the gnat version, I used the fc3-gcc-3.4.2,and where is the 
New subprogram Set_Close_On_Exec? so ,I think you are the just person I
needed, thanks :)











-----------------------------------------------------------------------------
     alwyn lee
alwyn116 at hotmail.com   (Messenger)
alwyn116 at yahoo.com.cn   (Mail)

-----------------------------------------------------------------------------


 
____________________________________________________________________________________
Want to start your own business? Learn how on Yahoo! Small Business 
(http://smallbusiness.yahoo.com) 



More information about the gps-devel mailing list