libvgl.so.6: Undefined symbol "set2lines"

Sife Mailling sife.mailling at yahoo.com
Wed Jan 6 00:37:23 UTC 2010


Salamo Alikom
when i start VirtualBox i get this msg :
VirtualBox: supR3HardenedMainGetTrustedMain: dlopen("/usr/local/lib/virtualbox/VirtualBox.so",) failed: /usr/lib/libvgl.so.6: Undefined symbol "set2lines"
and if i build sdl from ports it is end with this :
checking for assert() use... enabled
checking for sdl-config... /usr/local/bin/sdl-config
checking for SDL - version >= 1.2.0... no
*** Could not run SDL test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means SDL was incorrectly installed
*** or that you have moved SDL since it was installed. In the latter case, you
*** may want to edit the sdl-config script: /usr/local/bin/sdl-config
configure: error: *** SDL version 1.2.0 or newer not found!
===>  Script "configure" failed unexpectedly.
Please report the problem to ports at FreeBSD.org [maintainer] and attach the
"/usr/ports/devel/sdlmm/work/SDLmm-0.1.8/config.log" including the output of
the failure of your make command. Also, it might be a good idea to provide
an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1
log file say this :

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:782: checking host system type
configure:803: checking target system type
configure:824: checking for Cygwin environment
configure:840: cc -c -pipe -march=pentium4  conftest.c 1>&5
configure: In function 'main':
configure:836: error: '__CYGWIN32__' undeclared (first use in this function)
configure:836: error: (Each undeclared identifier is reported only once
configure:836: error: for each function it appears in.)
configure: failed program was:
#line 829 "configure"
#include "confdefs.h"

int main() {

#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
configure:857: checking for mingw32 environment
configure:869: cc -c -pipe -march=pentium4  conftest.c 1>&5
configure: In function 'main':
configure:865: error: '__MINGW32__' undeclared (first use in this function)
configure:865: error: (Each undeclared identifier is reported only once
configure:865: error: for each function it appears in.)
configure: failed program was:
#line 862 "configure"
#include "confdefs.h"

int main() {
return __MINGW32__;
; return 0; }
configure:886: checking how to run the C preprocessor
configure:907: cc -E  conftest.c >/dev/null 2>conftest.out
configure:1035: checking build system type
configure:1055: checking for gcc
configure:1168: checking whether the C compiler (cc -pipe -march=pentium4 ) works
configure:1184: cc -o conftest -pipe -march=pentium4   conftest.c  1>&5
configure:1210: checking whether the C compiler (cc -pipe -march=pentium4 ) is a cross-compiler
configure:1215: checking whether we are using GNU C
configure:1224: cc -E conftest.c
configure:1243: checking whether cc accepts -g
configure:1286: checking for ld used by GCC
configure:1354: checking if the linker (/usr/bin/ld) is GNU ld
GNU ld version 2.15 [FreeBSD] 2004-05-23
configure:1371: checking for /usr/bin/ld option to reload object files
configure:1383: checking for BSD-compatible nm
configure:1421: checking whether ln -s works
configure:1442: checking how to recognise dependant libraries
configure:1615: checking for object suffix
configure:1621: cc -c -pipe -march=pentium4  conftest.c 1>&5
configure:1641: checking for executable suffix
configure:1651: cc -o conftest -pipe -march=pentium4   conftest.c  1>&5
configure:1682: checking command to parse /usr/bin/nm -B output
configure:1758: cc -c -pipe -march=pentium4  conftest.c 1>&5
configure:1761: /usr/bin/nm -B conftest.o | sed -n -e 's/^.*[ ]\([ABCDGISTW][ABCDGISTW]*\)[ ][ ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' > conftest.nm
configure:1812: cc -o conftest -pipe -march=pentium4   conftest.c conftstm.o 1>&5
configure:1858: checking for dlfcn.h
configure:1868: cc -E  conftest.c >/dev/null 2>conftest.out
configure:2036: checking for ranlib
configure:2103: checking for strip
configure:2611: checking for objdir
configure:2638: checking for cc option to produce PIC
configure:2790: checking if cc PIC flag -fPIC works
configure:2804: cc -c -pipe -march=pentium4 -fPIC -DPIC  conftest.c 1>&5
configure:2856: checking if cc static flag -static works
configure:2871: cc -o conftest -pipe -march=pentium4   -static conftest.c  1>&5
configure:2898: checking if cc supports -c -o file.o
configure:2917: cc -c -pipe -march=pentium4 -o out/conftest2.o  conftest.c 1>&5
configure:2946: checking if cc supports -c -o file.lo
configure:2962: cc -c -pipe -march=pentium4 -c -o conftest.lo  conftest.c 1>&5
configure:3011: checking if cc supports -fno-rtti -fno-exceptions
configure:3024: cc -c -pipe -march=pentium4 -fno-rtti -fno-exceptions -c conftest.c  conftest.c 1>&5
cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C
cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C
configure:3051: checking whether the linker (/usr/bin/ld) supports shared libraries
configure:3667: checking how to hardcode library paths into programs
configure:3695: checking whether stripping libraries is possible
configure:3709: checking dynamic linker characteristics
configure:4095: checking if libtool supports shared libraries
configure:4588: checking whether -lc should be explicitly linked in
configure:4595: cc -c -pipe -march=pentium4  conftest.c 1>&5
configure:4608: cc -shared conftest.o  -v -Wl,-soname -Wl,conftest -o conftest 2>&1 | grep  -lc  >/dev/null 2>&1
configure:5197: checking for a BSD compatible install
configure:5250: checking whether build environment is sane
configure:5307: checking whether make sets ${MAKE}
configure:5353: checking for working aclocal
configure:5366: checking for working autoconf
configure:5379: checking for working automake
configure:5392: checking for working autoheader
configure:5405: checking for working makeinfo
configure:5423: checking for c++
configure:5455: checking whether the C++ compiler (c++ -pipe -march=pentium4 ) works
configure:5471: c++ -o conftest -pipe -march=pentium4   conftest.C  1>&5
configure:5497: checking whether the C++ compiler (c++ -pipe -march=pentium4 ) is a cross-compiler
configure:5502: checking whether we are using GNU C++
configure:5511: c++ -E conftest.C
configure:5530: checking whether c++ accepts -g
configure:5564: checking for sqrt in -lm
configure:5583: cc -o conftest -pipe -march=pentium4   conftest.c -lm   1>&5
configure:5576: warning: conflicting types for built-in function 'sqrt'
configure:5611: checking for ANSI C header files
configure:5624: cc -E  conftest.c >/dev/null 2>conftest.out
configure:5691: cc -o conftest -pipe -march=pentium4   conftest.c -lm  1>&5
configure: In function 'main':
configure:5686: warning: incompatible implicit declaration of built-in function 'exit'
configure:5726: checking for cc option to accept ANSI C
configure:5779: c++ -c -pipe -march=pentium4  conftest.C 1>&5
configure:5750: error: 'p' was not declared in this scope
configure:5750: error: 'i' was not declared in this scope
configure:5750: error: initializer expression list treated as compound expression
configure:5751: error: expected ',' or ';' before 'char'
configure:5753: error: expected unqualified-id before '{' token
configure: In function 'int main()':
configure:5774: error: cannot convert 'char*' to 'char* (*)(char**, int)' for argument '1' to 'char* f(char* (*)(char**, int), char**, ...)'
configure:5774: error: cannot convert 'char*' to 'char* (*)(char**, int)' for argument '1' to 'char* f(char* (*)(char**, int), char**, ...)'
configure: failed program was:
#line 5742 "configure"
#include "confdefs.h"
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;

int main() {

return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];

; return 0; }
configure:5779: c++ -c -pipe -march=pentium4  conftest.C 1>&5
configure:5750: error: 'p' was not declared in this scope
configure:5750: error: 'i' was not declared in this scope
configure:5750: error: initializer expression list treated as compound expression
configure:5751: error: expected ',' or ';' before 'char'
configure:5753: error: expected unqualified-id before '{' token
configure: In function 'int main()':
configure:5774: error: cannot convert 'char*' to 'char* (*)(char**, int)' for argument '1' to 'char* f(char* (*)(char**, int), char**, ...)'
configure:5774: error: cannot convert 'char*' to 'char* (*)(char**, int)' for argument '1' to 'char* f(char* (*)(char**, int), char**, ...)'
configure: failed program was:
#line 5742 "configure"
#include "confdefs.h"
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;

int main() {

return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];

; return 0; }
configure:5779: c++ -c -pipe -march=pentium4  conftest.C 1>&5
configure:5750: error: 'p' was not declared in this scope
configure:5750: error: 'i' was not declared in this scope
configure:5750: error: initializer expression list treated as compound expression
configure:5751: error: expected ',' or ';' before 'char'
configure:5753: error: expected unqualified-id before '{' token
configure: In function 'int main()':
configure:5774: error: cannot convert 'char*' to 'char* (*)(char**, int)' for argument '1' to 'char* f(char* (*)(char**, int), char**, ...)'
configure:5774: error: cannot convert 'char*' to 'char* (*)(char**, int)' for argument '1' to 'char* f(char* (*)(char**, int), char**, ...)'
configure: failed program was:
#line 5742 "configure"
#include "confdefs.h"
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;

int main() {

return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];

; return 0; }
configure:5779: c++ -c -pipe -march=pentium4  conftest.C 1>&5
configure:5750: error: 'p' was not declared in this scope
configure:5750: error: 'i' was not declared in this scope
configure:5750: error: initializer expression list treated as compound expression
configure:5751: error: expected ',' or ';' before 'char'
configure:5753: error: expected unqualified-id before '{' token
configure: In function 'int main()':
configure:5774: error: cannot convert 'char*' to 'char* (*)(char**, int)' for argument '1' to 'char* f(char* (*)(char**, int), char**, ...)'
configure:5774: error: cannot convert 'char*' to 'char* (*)(char**, int)' for argument '1' to 'char* f(char* (*)(char**, int), char**, ...)'
configure: failed program was:
#line 5742 "configure"
#include "confdefs.h"
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;

int main() {

return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];

; return 0; }
configure:5779: c++ -c -pipe -march=pentium4  conftest.C 1>&5
configure:5750: error: 'p' was not declared in this scope
configure:5750: error: 'i' was not declared in this scope
configure:5750: error: initializer expression list treated as compound expression
configure:5751: error: expected ',' or ';' before 'char'
configure:5753: error: expected unqualified-id before '{' token
configure: In function 'int main()':
configure:5774: error: cannot convert 'char*' to 'char* (*)(char**, int)' for argument '1' to 'char* f(char* (*)(char**, int), char**, ...)'
configure:5774: error: cannot convert 'char*' to 'char* (*)(char**, int)' for argument '1' to 'char* f(char* (*)(char**, int), char**, ...)'
configure: failed program was:
#line 5742 "configure"
#include "confdefs.h"
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;

int main() {

return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];

; return 0; }
configure:5804: checking operating system
configure:5837: checking -pipe
configure:5855: c++ -o conftest -pipe -march=pentium4 -pipe   conftest.C -lm  1>&5
configure:5886: checking -O3
configure:5904: c++ -o conftest -pipe -march=pentium4 -pipe   conftest.C -lm  1>&5
configure:6026: checking -Woverloaded-virtual
configure:6044: c++ -o conftest -pipe -march=pentium4 -pipe -Woverloaded-virtual   conftest.C -lm  1>&5
configure:6071: checking -Wtemplate-debugging
configure:6089: c++ -o conftest -pipe -march=pentium4 -pipe -Wtemplate-debugging   conftest.C -lm  1>&5
cc1plus: error: unrecognized command line option "-Wtemplate-debugging"
configure: failed program was:
#line 6082 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit(int);
#endif
int main(){exit(0);}
configure:6116: checking -fno-exceptions
configure:6134: c++ -o conftest -pipe -march=pentium4 -pipe -fno-exceptions   conftest.C -lm  1>&5
configure:6161: checking -fno-rtti
configure:6179: c++ -o conftest -pipe -march=pentium4 -pipe -fno-rtti   conftest.C -lm  1>&5
configure:8106: checking for assert() use
configure:8194: checking for sdl-config
configure:8229: checking for SDL - version >= 1.2.0
configure:8314: cc -o conftest -pipe -march=pentium4 -I/usr/local/include/SDL -I/usr/local/include -D_GNU_SOURCE=1 -D_REENTRANT   conftest.c -lm  -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -pthread 1>&5
/usr/lib/libvgl.so.6: undefined reference to `set2lines'
/usr/lib/libvgl.so.6: undefined reference to `set4pixels'
configure: failed program was:
#line 8253 "configure"
#include "confdefs.h"

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "SDL.h"

char*
my_strdup (char *str)
{
  char *new_str;
  
  if (str)
    {
      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
      strcpy (new_str, str);
    }
  else
    new_str = NULL;
  
  return new_str;
}

int main (int argc, char *argv[])
{
  int major, minor, micro;
  char *tmp_version;

  /* This hangs on some systems (?)
  system ("touch conf.sdltest");
  */
  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }

  /* HP/UX 9 (%@#!) writes to sscanf strings */
  tmp_version = my_strdup("1.2.0");
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
     printf("%s, bad version string\n", "1.2.0");
     exit(1);
   }

   if ((1 > major) ||
      ((1 == major) && (2 > minor)) ||
      ((1 == major) && (2 == minor) && (13 >= micro)))
    {
      return 0;
    }
  else
    {
      printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", 1, 2, 13);
      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
      printf("*** best to upgrade to the required version.\n");
      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
      printf("*** to point to the correct copy of sdl-config, and remove the file\n");
      printf("*** config.cache before re-running configure\n");
      return 1;
    }
}


configure:8363: cc -o conftest -pipe -march=pentium4 -I/usr/local/include/SDL -I/usr/local/include -D_GNU_SOURCE=1 -D_REENTRANT   conftest.c -lm  -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -pthread 1>&5
/usr/lib/libvgl.so.6: undefined reference to `set2lines'
/usr/lib/libvgl.so.6: undefined reference to `set4pixels'
configure: failed program was:
#line 8348 "configure"
#include "confdefs.h"

#include <stdio.h>
#include "SDL.h"

int main(int argc, char *argv[])
{ return 0; }
#undef  main
#define main K_and_R_C_main

int main() {
 return 0; 
; return 0; }




Stop in /usr/ports/devel/sdlmm.



      


More information about the freebsd-stable mailing list