expected identifier before numeric constant


 
Thread Tools Search this Thread
Operating Systems Solaris expected identifier before numeric constant
# 1  
Old 01-26-2011
expected identifier before numeric constant

Hi all,

While trying to compile a piece of code(Samba) I get this error..

Code:
In file included from dsdb/samdb/ldb_modules/samba3sam.c:11:
./lib/ldb/modules/ldb_map.h:62: error: expected identifier before numeric constant
dsdb/samdb/ldb_modules/samba3sam.c:322: error: 'MAP_GENERATE' undeclared here (not in a function)
dsdb/samdb/ldb_modules/samba3sam.c:396: error: 'MAP_CONVERT' undeclared here (not in a function)
The following command failed:
gcc  -Ilib/replace -Ilib/talloc -fvisibility=hidden  -Wall -g -O2 -I./include -I. -I./lib -I./lib/replace -D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H  -fPIC -c dsdb/samdb/ldb_modules/samba3sam.c -o dsdb/samdb/ldb_modules/samba3sam.o
make[1]: *** [dsdb/samdb/ldb_modules/samba3sam.o] Error 1

This is the first time I'm seeing an issue like this..
please take a look at it..

Thanks
# 2  
Old 01-26-2011
As a general comment - this kind of problem usually arises because .h (include files)
code uses "guard" define statments so that just the correct statements are actually included by cpp. So, I would guess that one of those define statements is at fault.

The configure utility usually sets these values correctly for you.

And there really is no way for us to "look" at it since the build is particular to your system.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Programming

String Constant C

I wonder string constant exists permanently or temporary. For example, printf("hello, world"); the function printf access to it is through a pointer. Does it mean storage is allocated for the string constant to exist permanently in memory? :confused: (4 Replies)
Discussion started by: kris26
4 Replies

2. Shell Programming and Scripting

is not an identifier

Hi Guys... I am using the following codes in my script: SID_L=`cat /var/opt/oracle/oratab|grep -v "^#"|cut -f1 -d: -s` SID_VAR=$SID_L for SID_RUN in $SID_VAR do ORACLE_HOME=`grep ^$SID_RUN /var/opt/oracle/oratab | \ awk -F: '{print $2}'` ;export ORACLE_HOME export... (2 Replies)
Discussion started by: Phuti
2 Replies

3. UNIX for Dummies Questions & Answers

Find and Replace random numeric value with non-numeric value

Can someone tell me how to change the first column in a very large 17k line file from a random 10 digit numeric value to a non numeric value. The format of lines in the file is: 1702938475,SNU022,201004 the first 10 numbers always begin with 170 (6 Replies)
Discussion started by: Bahf1s
6 Replies

4. Shell Programming and Scripting

not an identifier

Hi I have already gone through this topic on this forum, but still i am getting same problem. I am using solaris 10. my login shell is /usr/bash i have got a script as below /home/gyan> cat 3.cm #!/usr/bin/ksh export PROG_NAME=rpaa001 if i run this script as below , it works fine... (3 Replies)
Discussion started by: gyanibaba
3 Replies

5. Solaris

-sh: is not an identifier

Hi , I am getting the following message when log into my unix account in sun solaris (version5.9)server. -sh: ORACLE_HOME=/apps/oracle/product/10.2.0/client_1: is not an identifier The ORACLE_HOME is set in .profile file. Another thing is that SID is also set inside .profile like... (4 Replies)
Discussion started by: megh
4 Replies

6. Shell Programming and Scripting

Constant mirroring

I'm not sure how to best explain what I'd like to do, so let me give an example. I used to work in a department that deals with internet security. This department had an "internal" website (only people in the building can get on it) and an "external" website (anyone in the world can get on it --... (1 Reply)
Discussion started by: sstevens
1 Replies

7. Shell Programming and Scripting

Perl code to differentiate numeric and non-numeric input

Hi All, Is there any code in Perl which can differentiate between numeric and non-numeric input? (11 Replies)
Discussion started by: Raynon
11 Replies
Login or Register to Ask a Question