Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jun 2015 08:19:00 +0000
From:      Marcin Cieslak <saper@saper.info>
To:        freebsd-hackers@freebsd.org
Subject:   Build for profiling? Got //usr/lib/libc_p.a(sbrk.po): undefined reference to symbol '_end'
Message-ID:  <alpine.BSF.2.11.1506300812150.7491@z.fncre.vasb>

next in thread | raw e-mail | index | archive | help
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@moovweb.com"
| #define PACKAGE_URL ""
| #define PACKAGE "libsass"
| #define VERSION "3.2.5-9-gbe07-dirty"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }


~Marcin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.11.1506300812150.7491>