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

 
 

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

Submitter:  None
Submitted:  Tue 25 Feb 2014 11:41:05 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

No changes have been made to this item

Back to the top

Powered by Savane 3.14-8eb0.
Corresponding source code