Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#error "SIZEOF_CURL_OFF_T not defined, Undeclared identifier CURL_MASK_SCOFFT #2124

Closed
aixtools opened this issue Nov 29, 2017 · 5 comments
Closed

Comments

@aixtools
Copy link
Contributor

Trying to build curl-7.57.0

Note: not included here are the issues with make (see issue #2076 )
This issue is similar to issue #1827

I did this

+ CPPFLAGS="-I/opt/include" CFLAGS="-I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5"\
        ../src/curl-7.57.0/configure\
                --prefix=/opt \
                --sysconfdir=/var/curl/etc\
                --sharedstatedir=/var/curl/com\
                --localstatedir=/var/curl\
                --mandir=/usr/share/man\
                --infodir=/opt/share/info/curl --with-ca-bundle=/var/ssl/cacert.pem

make -i
make -i

I got the following

Making all in lib
        make  all-am
  CC       libcurl_la-warnless.lo
"../../src/curl-7.57.0/lib/warnless.c", line 101.4: 1506-205 (S) #error "SIZEOF_CURL_OFF_T not defined"
"../../src/curl-7.57.0/lib/warnless.c", line 192.40: 1506-045 (S) Undeclared identifier CURL_MASK_SCOFFT.
make: The error code from the last command is 1.
make: Ignored error code 1 from last command.
  CCLD     libcurl.la
libtool:   error: 'libcurl_la-warnless.lo' is not a valid libtool object
make: The error code from the last command is 1.
make: Ignored error code 1 from last command.
Target "all-am" is up to date.
Making all in src
Making all in ../docs
Making all in .
Target "all-am" is up to date.
Making all in cmdline-opts
Target "all" is up to date.
Target "all" is up to date.
  CC       ../lib/curl-warnless.o
"../../src/curl-7.57.0/src/../lib/warnless.c", line 101.4: 1506-205 (S) #error "SIZEOF_CURL_OFF_T not defined"
"../../src/curl-7.57.0/src/../lib/warnless.c", line 192.40: 1506-045 (S) Undeclared identifier CURL_MASK_SCOFFT.
make: The error code from the last command is 1.
make: Ignored error code 1 from last command.
make: Cannot find a rule to create target ../lib/libcurl.la from dependencies.
Stop.
make: The error code from the last command is 1.
make: Ignored error code 1 from last command.
Target "all" is up to date.
Target "all-am" is up to date.
Target "all" is up to date.

operating system

AIX 5.3, xlc v11, patch 20

@aixtools
Copy link
Contributor Author

Well, surprise surprise - I got it to work.
a) I applied the PR #2125
b) I removed several packages:


aixtools.git.man.en_US      2.10.1.0        USR         DEINSTALL   SUCCESS
aixtools.git.rte            2.10.1.0        USR         DEINSTALL   SUCCESS
aixtools.gnu.grep.man.en_US 2.27.0.0        USR         DEINSTALL   SUCCESS
aixtools.gnu.grep.share     2.27.0.0        USR         DEINSTALL   SUCCESS
aixtools.gnu.make.man.en_US 4.1.0.0         USR         DEINSTALL   SUCCESS
aixtools.gnu.make.rte       4.1.0.0         USR         DEINSTALL   SUCCESS
aixtools.gnu.make.share     4.1.0.0         USR         DEINSTALL   SUCCESS
aixtools.pcre.man.en_US     8.39.0.0        USR         DEINSTALL   SUCCESS
aixtools.pcre.rte           8.39.0.0        USR         DEINSTALL   SUCCESS
aixtools.pcre.share         8.39.0.0        USR         DEINSTALL   SUCCESS
aixtools.curl.rte           7.54.1.0        USR         DEINSTALL   SUCCESS
aixtools.expat.rte          2.2.0.0         USR         DEINSTALL   SUCCESS
aixtools.git.share          2.10.1.0        USR         DEINSTALL   SUCCESS
aixtools.gnu.grep.rte       2.27.0.0        USR         DEINSTALL   SUCCESS
aixtools.zlib.rte           1.2.11.1        USR         DEINSTALL   SUCCESS
aixtools.gnu.gettext.rte    0.19.8.1        USR         DEINSTALL   SUCCESS
aixtools.gnu.gettext.share  0.19.8.1        USR         DEINSTALL   SUCCESS
aixtools.gnu.libiconv.rte   1.15.0.1        USR         DEINSTALL   SUCCESS
aixtools.gnu.libiconv.share 1.15.0.1        USR         DEINSTALL   SUCCESS

And now the configure and the make are successful (currently running make check).
So, I also do the 64-bit packaging and make a new version available - BUT - there seems to be a strange side-effect when something additional is installed.

Question: is there something embedded that is being built now that above is removed?

@bagder
Copy link
Member

bagder commented Nov 30, 2017

If SIZEOF_CURL_OFF_T is undefined in warnless.c then configure failed pretty miserably to detect that. See the AC_CHECK_SIZEOF(curl_off_t, ... check in configure.ac...

Question: is there something embedded that is being built now that above is removed?

If you elaborate a bit more what the "strange side-effect" is then maybe we can figure that out!

@aixtools
Copy link
Contributor Author

The strange side-effect is, after removing a lot of installed software (the list I appended) - the build succeeds. So, something that WAS installed was triggering logic in curl that could not be completed.

So, before I start adding software back to see what triggers the error - I was wondering if there is anything embedded you are using (e.g., zlib) that, when external, might be triggering this situation?

@bagder
Copy link
Member

bagder commented Nov 30, 2017

I can't think of any reason for any of those to affect the size-check, but out the things in that list, zlib is at least detected by configure. Maybe the gnu package provides some alternative version to existing AIX tools?

@aixtools
Copy link
Contributor Author

Well, looks like, after 4 attempts to re-create it (it was before the deinstall very consistent) - looks like it remains a mystery for now.

My apologies for the noise.

@lock lock bot locked as resolved and limited conversation to collaborators May 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants