Build for profiling? Got //usr/lib/libc_p.a(sbrk.po): undefined reference to symbol '_end'
Marcin Cieslak
saper at saper.info
Tue Jun 30 08:19:03 UTC 2015
I am trying to compile https://github.com/sass/libsass instrumented
for profiling. As far as I understand this does not work with clang,
so I am trying with gcc version 4.8.5 20150212 (prerelease)
(FreeBSD Ports Collection).
This is a shared library in C++ that gets loaded by node (www/node).
I have a world built with profiling libraries, I have additionally
ran "make install INSTALL_PIC_ARCHIVE=yes" in lib/libc, lib/msun
and lib/libcxxrt directories (the latter probably not needed).
Here's config.log output:
configure:3344: checking whether the C++ compiler works
configure:3366: g++48 -pg -g conftest.cpp >&5
/usr/local/bin/ld: //usr/lib/libc_p.a(sbrk.po): undefined reference to symbol '_end'
//lib/libc.so.7: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
configure:3370: $? = 1
configure:3408: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libsass"
| #define PACKAGE_TARNAME "libsass"
| #define PACKAGE_VERSION "3.2.5-9-gbe07-dirty"
| #define PACKAGE_STRING "libsass 3.2.5-9-gbe07-dirty"
| #define PACKAGE_BUGREPORT "support at moovweb.com"
| #define PACKAGE_URL ""
| #define PACKAGE "libsass"
| #define VERSION "3.2.5-9-gbe07-dirty"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
~Marcin
More information about the freebsd-hackers
mailing list