bugTiny C Compiler - Bugs: bug #41687, Doesn't compile under FreeBSD 9 or...

 
 

bug #41687: Doesn't compile under FreeBSD 9 or 10

Submitted by:  None
Submitted on:  Tue 25 Feb 2014 11:41:05 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 25 Feb 2014 11:41:05 AM UTC, original submission:

I've tried this against gcc and clang. It looks like there are conditional. Looks like it is commits in december on/around line 1900 of tccelf.c:

(I hope this markup works... there is no help available)

```
776364f3 tccelf.c (Thomas Preud'homme 2010-09-10 21:09:07 +0200 1899) #if defined(_FreeBSD_) || defined(_FreeBSD_kernel_)
3d4b57ff tccelf.c (Thomas Preud'homme 2013-12-17 20:59:14 +0800 1900) if (!strcmp(strsec->data + s->sh_name, ".rel.got")) {
4aec2902 tccelf.c (Thomas Preud'homme 2013-12-18 11:17:17 +0800 1901) dyninf->rel_addr = addr;
4aec2902 tccelf.c (Thomas Preud'homme 2013-12-18 11:17:17 +0800 1902) dyninf->rel_size += s->sh_size; /* XXX only first rel. */
3d4b57ff tccelf.c (Thomas Preud'homme 2013-12-17 20:59:14 +0800 1903) }
3d4b57ff tccelf.c (Thomas Preud'homme 2013-12-17 20:59:14 +0800 1904) if (!strcmp(strsec->data + s->sh_name, ".rel.bss")) {
4aec2902 tccelf.c (Thomas Preud'homme 2013-12-18 11:17:17 +0800 1905) dyninf->bss_addr = addr;
4aec2902 tccelf.c (Thomas Preud'homme 2013-12-18 11:17:17 +0800 1906) dyninf->bss_size = s->sh_size; /* XXX only first rel. */
3d4b57ff tccelf.c (Thomas Preud'homme 2013-12-17 20:59:14 +0800 1907) }
55cb2170 tccelf.c (Luigi Rizzo 2009-11-29 03:25:29 +0100 1908) #else
4aec2902 tccelf.c (Thomas Preud'homme 2013-12-18 11:17:17 +0800 1909) if (dyninf->rel_size == 0)
4aec2902 tccelf.c (Thomas Preud'homme 2013-12-18 11:17:17 +0800 1910) dyninf->rel_addr = addr;
4aec2902 tccelf.c (Thomas Preud'homme 2013-12-18 11:17:17 +0800 1911) dyninf->rel_size += s->sh_size;
```

The error output is:

```
tccelf.c:1900:37: error: use of undeclared identifier 'strsec'; did you mean
'strsep'?
if (!strcmp(strsec->data + s->sh_name, ".rel.got")) {
^~~~~~
strsep
/usr/include/string.h:112:7: note: 'strsep' declared here
char strsep(char , const char );
^
tccelf.c:1900:43: error: member reference base type 'char (char *, const char
*)' is not a structure or union
if (!strcmp(strsec->data + s->sh_name, ".rel.got")) {
~~~~~~^ ~~~~
tccelf.c:1904:37: error: use of undeclared identifier 'strsec'; did you mean
'strsep'?
if (!strcmp(strsec->data + s->sh_name, ".rel.bss")) {
^~~~~~
strsep
/usr/include/string.h:112:7: note: 'strsep' declared here
char strsep(char , const char );
^
tccelf.c:1904:43: error: member reference base type 'char (char *, const char
*)' is not a structure or union
if (!strcmp(strsec->data + s->sh_name, ".rel.bss")) {
~~~~~~^ ~~~~
```

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

No Changes Have Been Made to This Item

Back to the top


Powered by Savane 3.1-cleanup