03-20-2007
Compiling in Solaris
Hi,
I'm new to Unix. I'm trying to compile a shared library in Solaris running on x86. I get "void value not ignored as it ought to be" error when trying "make". But it compiles fine in Fedora. How can this happen? I think both are using the same type of compiler. What can I do to get around this?
Thanks
I think its due to differences in the compilers. However I was able to resolve some of the errors by modifying the source. Now I get the following errors:
In file included from lm-socket.c:26:
/usr/include/arpa/nameser.h:124: error: syntax error before '*' token
/usr/include/arpa/nameser.h:126: error: syntax error before '*' token
/usr/include/arpa/nameser.h:129: error: syntax error before '*' token
/usr/include/arpa/nameser.h:130: error: syntax error before '}' token
/usr/include/arpa/nameser.h:148: error: syntax error before "uint16_t"
/usr/include/arpa/nameser.h:150: error: syntax error before "ttl"
/usr/include/arpa/nameser.h:151: error: syntax error before "rdlength"
/usr/include/arpa/nameser.h:152: error: syntax error before '*' token
/usr/include/arpa/nameser.h:153: error: syntax error before '}' token
/usr/include/arpa/nameser.h:233: error: syntax error before "uint8_t"
/usr/include/arpa/nameser.h:235: error: syntax error before "r_class"
/usr/include/arpa/nameser.h:236: error: syntax error before "r_type"
/usr/include/arpa/nameser.h:237: error: syntax error before "r_ttl"
/usr/include/arpa/nameser.h:238: error: syntax error before '*' token
/usr/include/arpa/nameser.h:239: error: syntax error before "r_size"
.
.
.
Is there a way to avoid the above errors?
Thanks
Last edited by runnerb; 03-22-2007 at 03:04 AM..
Reason: New errors
10 More Discussions You Might Find Interesting
1. Solaris
Hi everyone,
I have SUn E250 server running solaris 10. I have installed apache 2 + MySQL + PHP-5.1.4 following the guidelines on this website
http://meljr.com/~meljr/AMPSolaris10.html
Excellent document for first time installation. Now, because I wanted to use Coppermine Photo Gallery, I... (9 Replies)
Discussion started by: callingrohit
9 Replies
2. UNIX for Advanced & Expert Users
I'm trying to compile PHP5. I've installed mysql5 successfully and apache1.3 is working great, but I get the message
below when I compile PHP5. I double checked if I have libxml2 installed and I do. I installed libxml2 binary from
sunfreeware. Please see below for details:
./configure... (5 Replies)
Discussion started by: xnightcrawl
5 Replies
3. Solaris
Hello Guys,
I am using Solaris Developer Express Edition 9/07, I am a beginner. Please tell me how to compile and execute a C program. Please give me your answers clearly, for the compilers cc,c89,c99. please....... reply to me.
I not getting the answer anywhere..
Advance... (2 Replies)
Discussion started by: selva_ss
2 Replies
4. Solaris
How does one go aout compiling irssi locally on a fresh installation of Solaris 10,
Out put from ./configure m command
/download/1rss1-0.8.12
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking... (2 Replies)
Discussion started by: FloridaBSD
2 Replies
5. Infrastructure Monitoring
Hello all
Currently I am trying to install net-snmp-5.5 on a V480 Solaris 8 machine however things are hardly going smooth. I'm running configure will the following options.
./configure --prefix=/usr/local --with-mib-modules="smux ucd-snmp/diskio ucd-snmp/lmSensors host"... (2 Replies)
Discussion started by: krabu
2 Replies
6. Solaris
Hi
I'm trying to install apache 2.2.14 on Solaris with Openssl. I'm using following configure options:
./configure --prefix=/usr/local/apache2 --enable-ssl --enable-module=so --enable-proxy=shared --enable-proxy-http=shared --enable-proxy-ajp=shared --with-ssl=/usr/local/openssl
... (3 Replies)
Discussion started by: Aelfric
3 Replies
7. Programming
Hello. I'm using SunStudio 12 Update 1. When compiling for x86, everything works fine. When compiling for SPARC, I get the following errors. I linked libCstd.so.1 explicitly, but I get the same errors. Would anyone be kind enough to step me through resolving this? Thank you very much.
**... (2 Replies)
Discussion started by: acheong87
2 Replies
8. Solaris
Hi all,
I am getting the following error While installing Samba 3.4.1 on Solaris 10.
#./autogen.sh
./autogen.sh : autoheader : not found
./autogen.sh : test : argument expected
Please help me as I am in a critical state of the project.
Warm regards,
Sathya (10 Replies)
Discussion started by: sathya47
10 Replies
9. UNIX Benchmarks
anyone tried it , under Solaris 10 using make (part of SUNWsprot) and gcc 4.6 compiler..
got an error complaining about the Makefile script syntax...
I don't think that's compatible at all... (2 Replies)
Discussion started by: ppchu99
2 Replies
10. UNIX for Beginners Questions & Answers
Hi there.
I have unzipped automake-1.15.tar.gz into a directory on my HDD that has Solaris 10 SPARC OS installed inside a SUN/Oracle SPARC server.
I can configure automake-1.15 successfully but when I try to compile automake-1.15 using 'make command, I have the following error message..
... (4 Replies)
Discussion started by: alphatron150
4 Replies
LEARN ABOUT OSF1
dn_expand
dn_expand(3) Library Functions Manual dn_expand(3)
NAME
dn_expand - Expands a compressed domain name
LIBRARY
Standard C Library (libc.a, libc.so)
SYNOPSIS
#include <sys/types.h> #include <netinet/in.h> #include <arpa/nameser.h> #include <resolv.h>
int dn_expand (
const u_char *message_ptr,
const u_char *end_of_message,
const u_char *compressed_name,
char *expanded_name,
int length );
PARAMETERS
Specifies a pointer to the beginning of a message. Points to the end of the original message that contains the compressed domain name.
Specifies a pointer to a compressed domain name. Specifies a pointer to a buffer that holds the resulting expanded domain name. Specifies
the size of the buffer pointed to by the expanded_name parameter.
DESCRIPTION
The dn_expand() function expands a compressed domain name to a full domain name, converting the expanded names to uppercase.
The dn_expand() function is one of a set of subroutines that form the resolver, a set of functions that resolves domain names. Global
information that is used by the resolver functions is kept in the _res data structure. The /include/resolv.h file contains the _res
structure definition.
RETURN VALUES
Upon successful completion, the dn_expand() function returns the size of the compressed domain name. Otherwise, a value of -1 is returned.
ERRORS
If an error occurs during a resolver operation, the h_errno external variable is set. Error code values and reasons are defined in
<netdb.h>.
FILES
Defines name server and domain name constants, structures, and values.
RELATED INFORMATION
Functions: dn_comp(3), dn_find(3), dn_skipname(3), putshort(3), putlong(3), res_init(3), res_mkquery(3), res_query(3), res_search(3),
res_send(3), _getshort(3), _getlong(3). delim off
dn_expand(3)