Skip to content

Instantly share code, notes, and snippets.

@alfredodeza
Last active March 25, 2017 15:11
Show Gist options
  • Save alfredodeza/5736054 to your computer and use it in GitHub Desktop.
Save alfredodeza/5736054 to your computer and use it in GitHub Desktop.
How I got netatalk 3.0.1 working in SmartOS
CFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib ./configure --with-bdb=/opt/local --with-init-style=solaris --without-pam --prefix=/opt/local --with-init-dir=/var/svc/manifest/network/ --with-ssl-dir=/opt/local --with-libgcrypt --prefix=/opt/local
LD_OPTIONS="-D libs,detail" CFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib make clean install
LD_OPTIONS="-D libs,detail" CC=gcc CFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib make clean install
ls /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.0/
ln -s /opt/local/lib/libiconv.so /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.0/
LD_OPTIONS="-D libs,detail" CC=gcc CFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib make clean install
ln -s /opt/local/lib/libwrap.so /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.0/
LD_OPTIONS="-D libs,detail" CC=gcc CFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib make clean install
@alfredodeza
Copy link
Author

Had to update the $PATH for the latest version (3.1.11) of netatalk to include gnu and gcc

PATH=$PATH:/opt/local/gcc47/bin/:/opt/local/gnu/bin LD_OPTIONS="-D libs,detail" CC=gcc CFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib make clean install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment