-
-
Notifications
You must be signed in to change notification settings - Fork 257
Open
Description
I'm attempting to build PCP on Solaris 10.
Yes, I realize that this is potentially a complicated endeavor.
I have promising progress, however would like to add a local implementation of strcasestr(). Normally I would add a compat_strcasestr.c and compat_strcasestr.h file with a weak symbol for strcasestr(), however it's not obvious how to do this in the PCP build system.
bash ./Makepkgs CFLAGS='' CXXFLAGS='-std=gnu++11' AR='/usr/sfw/sparc-sun-solaris2.10/bin/ar'
== Cleaning build tree for packaging build
Wrote: /export/home/shared/src/pcp/build/tar/pcp-7.1.0.src.tar.gz
== Preparing fresh build tree for packaging build
== Configuring pcp, log is in /export/home/shared/src/pcp/Logs/pcp (--sysconfdir=/etc --localstatedir=/var --prefix=/usr --libdir=/usr/lib/64 CFLAGS= CXXFLAGS=-std=gnu++11 AR=/usr/sfw/sparc-sun-solaris2.10/bin/ar)
== Building pcp, log is in /export/home/shared/src/pcp/Logs/pcp
Make default_pcp failed, see log in /export/home/shared/src/pcp/Logs/pcp
/opt/csw/bin/gcc -D_POSIX_PTHREAD_SEMANTICS -I../../src/include -I../../src/include/pcp -DPCP_VERSION=\"7.1.0\" -fPIC -fno-strict-aliasing -D_XPG4_2 -D__EXTENSIONS__ -m64 -Wshadow -Wno-array-bounds -Wall -O2 -g -c -o pmnsutil.o pmnsutil.c
/opt/csw/bin/gcc -D_POSIX_PTHREAD_SEMANTICS -I../../src/include -I../../src/include/pcp -DPCP_VERSION=\"7.1.0\" -fPIC -fno-strict-aliasing -D_XPG4_2 -D__EXTENSIONS__ -m64 -Wshadow -Wno-array-bounds -Wall -O2 -g -o pmnsmerge -m64 -fPIC -Wall -L../../src/libpcp/src pmnsmerge.o pmnsutil.o -lpcp -lnsl -lsocket -lresolv -ldl -lposix4
Undefined first referenced
symbol in file
strcasestr ../../src/libpcp/src/libpcp.so
ld: fatal: symbol referencing errors. No output written to pmnsmerge
make[2]: *** [GNUmakefile:41: pmnsmerge] Error 1
make[1]: *** [GNUmakefile:163: default_pcp] Error 2
make[1]: Leaving directory '/export/home/shared/src/pcp/pcp-7.1.0/src'
make: *** [GNUmakefile:50: default_pcp] Error 2
Reinstate VERSION.pcp ...
Metadata
Metadata
Assignees
Labels
No labels