Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Unresolved memcmp (Spotted)

Unresolved memcmp (Spotted)

From: Alex Gitelman <alex_at_fg-soup.com>
Date: Fri, 21 Jun 2002 10:04:59 -0700

It appears that gcc 3.1 uses inline for strncmp and it uses memcmp
internally. (I assume it's gcc 3.1 'cause nobody was getting this
problem). For that reason memcmp is put as a symbol in object file, so
having local strncmp version still leaves _memcmp symbols unresolved.

I will look into it latter tonight and over weekend, however if
somebody fixes it before or knows how to solve it with options (no
inline?) please post the message.

Example:

id3.c: (Stripped out) that causes the unresolved symbol problem:

#include <string.h>
#include <errno.h>
#include <stdbool.h>
#include "file.h"

#include "id3.h"

static void
setid3v2title(int fd, mp3entry *entry)
{
    char header[10];
    strncmp(header, "TP1", strlen("TP1"));
}


Best...
Alex Gitelman
Received on 2002-06-21

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy