Ada example problems

Joel Sherrill joel.sherrill at OARcorp.com
Wed Dec 24 15:24:22 UTC 2008


Dirk Heinrichs wrote:
> Am Dienstag, 23. Dezember 2008 19:38:09 schrieb Web.POP:
>
>   
>> dumpwebpage: linking fails with several errors
>>     
>
> I've got the same problem:
>   
For whatever reason, you don't have a network configuration but do
have a configuration for everything else.  The linker is pulling the 
default
network configuration out of the library.  Since that is currently in
the same file with a dummy configuration used to make autoconf probes
happy, you are getting conflicts between your partial configuration
and the complete one in dummy.o

Look at the examples and see how the network configuration
gets turned on. 

The exception on ping/pong is probably because the configuration
is wrong.  Loopback or something.
> i386-rtems4.9-gnatbind -I/opt/i386-rtems4.9/pc686/lib/include/adainclude -
> Mgnat_main -x dumpwebpage.ali
> i386-rtems4.9-gnatlink dumpwebpage.ali -o dumpwebpage.exe -B/opt/i386-
> rtems4.9/pc686/lib/ -specs=bsp_specs -qrtems -mtune=pentiumpro -
> DENABLE_UNTAR_ROOT_FILESYSTEM -I. -Dpc686 -Wl,-Ttext,0x00100000 rtems_init.o 
> FilesystemImage.o                      
> /opt/i386-rtems4.9/pc686/lib/librtemscpu.a(dummy.o):(.data+0x0): multiple 
> definition of `rtems_libio_number_iops'            
> rtems_init.o:(.data+0x70): first defined here                                                                                
> /opt/i386-rtems4.9/pc686/lib/librtemscpu.a(dummy.o):(.bss+0x0): multiple 
> definition of `rtems_telnetd_maximum_ptys'          
> rtems_init.o:(.bss+0x0): first defined here                                                                                  
> /opt/i386-rtems4.9/pc686/lib/librtemscpu.a(dummy.o):(.data+0x4): multiple 
> definition of `imfs_rq_memfile_bytes_per_block'    
> rtems_init.o:(.data+0x74): first defined here                                                                                
> /opt/i386-rtems4.9/pc686/lib/librtemscpu.a(dummy.o):(.rodata+0x0): multiple 
> definition of `configuration_mount_table'        
> rtems_init.o:(.rodata+0x40): first defined here                                                                              
> /opt/i386-rtems4.9/pc686/lib/librtemscpu.a(dummy.o):(.data+0x8): multiple 
> definition of `rtems_filesystem_mount_table'       
> rtems_init.o:(.data+0x78): first defined here                                                                                
> /opt/i386-rtems4.9/pc686/lib/librtemscpu.a(dummy.o):(.rodata+0x10): multiple 
> definition of `rtems_filesystem_mount_table_size'
> rtems_init.o:(.rodata+0x50): first defined here
> /opt/i386-rtems4.9/pc686/lib/librtemscpu.a(dummy.o):(.bss+0x4): multiple 
> definition of `rtems_malloc_statistics_helpers'
> rtems_init.o:(.bss+0x4): first defined here
> ...
>
> Bye...
>
> 	Dirk
>   


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985





More information about the users mailing list